| BlueNRG-1 Peripherals drivers APIs

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

Classes | Macros | Functions
BlueNRG1_rtc.h File Reference

This file contains all the functions prototypes for the RTC firmware library. More...

`#include "BlueNRG1.h"`

Go to the source code of this file.

## Classes

struct | RTC_InitType
| Structure definition of RTC initialization. More...
struct | RTC_DateTimeType
| Structure definition of RTC DateTime. More...

## Macros

#define | RTC_Month_January ((uint8_t)0x01)
#define | RTC_Month_February ((uint8_t)0x02)
#define | RTC_Month_March ((uint8_t)0x03)
#define | RTC_Month_April ((uint8_t)0x04)
#define | RTC_Month_May ((uint8_t)0x05)
#define | RTC_Month_June ((uint8_t)0x06)
#define | RTC_Month_July ((uint8_t)0x07)
#define | RTC_Month_August ((uint8_t)0x08)
#define | RTC_Month_September ((uint8_t)0x09)
#define | RTC_Month_October ((uint8_t)0x10)
#define | RTC_Month_November ((uint8_t)0x11)
#define | RTC_Month_December ((uint8_t)0x12)
#define | RTC_Weekday_Monday ((uint8_t)0x01)
#define | RTC_Weekday_Tuesday ((uint8_t)0x02)
#define | RTC_Weekday_Wednesday ((uint8_t)0x03)
#define | RTC_Weekday_Thursday ((uint8_t)0x04)
#define | RTC_Weekday_Friday ((uint8_t)0x05)
#define | RTC_Weekday_Saturday ((uint8_t)0x06)
#define | RTC_Weekday_Sunday ((uint8_t)0x07)
#define | IS_SECOND(N) ((N) < 60)
#define | IS_MINUTE(N) ((N) < 60)
#define | IS_HOUR(N) ((N) < 24)
#define | IS_WEEKDAY(N) (((N) > 0) && ((N) < 8))
#define | IS_MONTHDAY(N) (((N) > 0) && ((N) < 32))
#define | IS_MONTH(N) (((N) > 0) && ((N) < 13))
#define | IS_YEAR(N) (((N) > 0) && ((N) < 4000))
#define | IS_MATCH_WEEKDAY(N) ((N) < 8)
#define | IS_MATCH_MONTHDAY(N) ((N) < 32)
#define | IS_MATCH_MONTH(N) ((N) < 13)
#define | IS_MATCH_YEAR(N) ((N) < 4000)
#define | RTC_IT_CLOCKWATCH ((uint8_t)1)
#define | RTC_IT_TIMER ((uint8_t)2)
#define | IS_RTC_IT(IT)
#define | RTC_TIMER_PERIODIC ((uint8_t)0)
#define | RTC_TIMER_ONESHOT ((uint8_t)1)
#define | IS_RTC_TIMER_MODE(IT)
#define | IS_PATTERN(N) ((N) < 0x80)

## Functions

void | RTC_Init (RTC_InitType *RTC_InitStruct)
| Initializes the RTC peripheral according to the specified parameters in the RTC_InitStruct. More...
void | RTC_Cmd (FunctionalState NewState)
| Enables or disables selected RTC peripheral. More...
void | RTC_IT_Config (uint8_t RTC_IT, FunctionalState NewState)
| Enables or disables selected RTC interrupt. More...
ITStatus | RTC_IT_Status (uint8_t RTC_IT)
| Return the RTC interrupt status for the specified IT. More...
void | RTC_IT_Clear (uint8_t RTC_IT)
| Clear selected RTC interrupt. More...
void | RTC_ClockwatchCmd (FunctionalState NewState)
| Enables or disables selected RTC clockwatch. More...
void | RTC_SetTimeDate (RTC_DateTimeType *RTC_DateTime)
| Initialize the RTC clockwatch with present time and date. More...
void | RTC_SetMatchTimeDate (RTC_DateTimeType *RTC_MatchDataTime)
| Set the RTC clockwatch match date and time registers. More...
void | RTC_GetTimeDate (RTC_DateTimeType *RTC_DataTime)
| Set the RTC clockwatch match date and time registers. More...
uint32_t | RTC_GetTimerValue (void)
| Return the actual timer counter. More...
void | RTC_AutoStart (FunctionalState NewState)
| Enables or disables the auto start on load register or pattern register write operation. More...
void | RTC_SelectTrimmedClock (FunctionalState NewState)
| Enables or disables the use of the trimmed 32 kHz clock. More...
uint32_t | RTC_GetNumberIrqGenerated (void)
| Return the actual number of interrupt generated by RTC. More...

## Detailed Description

This file contains all the functions prototypes for the RTC firmware library.

Author
  VMA Application Team

Version
  V2.0.0

Date
  21-March-2016

Attention

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

##
© COPYRIGHT 2016 STMicroelectronics

Definition in file BlueNRG1_rtc.h.