Functions | |
uint16_t | app_rtc_init (app_rtc_evt_handler_t evt_handler) |
Initialize the APP RTC DRIVER. More... | |
uint16_t | app_rtc_deinit (void) |
De-initialize the app rtc. More... | |
uint16_t | app_rtc_init_time (app_rtc_time_t *p_time) |
Initialize the rtc time. More... | |
uint16_t | app_rtc_get_time (app_rtc_time_t *p_time) |
Get current rtc time. More... | |
uint16_t | app_rtc_setup_alarm (app_rtc_alarm_t *p_alarm) |
Set a rtc date alarm. More... | |
uint16_t | app_rtc_setup_tick (uint32_t interval) |
Set a rtc tick alarm. More... | |
uint16_t | app_rtc_disable_event (uint32_t disable_mode) |
Disable rtc alarm event. More... | |
uint16_t app_rtc_deinit | ( | void | ) |
De-initialize the app rtc.
uint16_t app_rtc_disable_event | ( | uint32_t | disable_mode | ) |
Disable rtc alarm event.
[in] | disable_mode | Disable specified CALENDAR alarm mode. This parameter can be the following values: |
uint16_t app_rtc_get_time | ( | app_rtc_time_t * | p_time | ) |
Get current rtc time.
[in] | p_time | Pointer to a app_rtc_time_t time struction. |
uint16_t app_rtc_init | ( | app_rtc_evt_handler_t | evt_handler | ) |
Initialize the APP RTC DRIVER.
[in] | evt_handler | RTC user callback function. |
uint16_t app_rtc_init_time | ( | app_rtc_time_t * | p_time | ) |
Initialize the rtc time.
[in] | p_time | Pointer to a app_rtc_time_t time struction. |
uint16_t app_rtc_setup_alarm | ( | app_rtc_alarm_t * | p_alarm | ) |
Set a rtc date alarm.
[in] | p_alarm | After seconds will generate an date alarm interrupt. |
uint16_t app_rtc_setup_tick | ( | uint32_t | interval | ) |
Set a rtc tick alarm.
[in] | interval | After milliseconds will generate an tick alarm interrupt. The value of interval is greater than or equal to 10ms. |