Initialization and Configuration functions.
More...
Initialization and Configuration functions.
◆ hal_rtc_clear_wrap()
Clear wrap count.
- Parameters
-
[in] | p_rtc | Pointer to a RTC handle which contains the configuration information for the specified RTC module. |
- Return values
-
◆ hal_rtc_deinit()
DeInitialize the RTC according to the specified parameters in the rtc_init_t of associated handle.counter stop after hal_rtc_deinit.
- Parameters
-
[in] | p_rtc | Pointer to a RTC handle which contains the configuration information for the specified RTC module. |
- Return values
-
◆ hal_rtc_get_alarm_value()
uint32_t hal_rtc_get_alarm_value |
( |
const rtc_handle_t * |
p_rtc | ) |
|
Get_alarm_value.
- Parameters
-
[in] | p_rtc | Pointer to a RTC handle which contains the configuration information for the specified RTC module. |
- Return values
-
◆ hal_rtc_get_cur_count()
uint32_t hal_rtc_get_cur_count |
( |
const rtc_handle_t * |
p_rtc | ) |
|
Get_cur_count_value.
- Parameters
-
[in] | p_rtc | Pointer to a RTC handle which contains the configuration information for the specified RTC module. |
- Return values
-
◆ hal_rtc_get_cur_tick()
Get_cur_tick_value.
- Parameters
-
[in] | p_rtc | Pointer to a RTC handle which contains the configuration information for the specified RTC module. |
- Return values
-
◆ hal_rtc_get_state()
Get_cur_rtc_state.
- Parameters
-
[in] | p_rtc | Pointer to a RTC handle which contains the configuration information for the specified RTC module. |
- Return values
-
◆ hal_rtc_get_wrap_count()
uint32_t hal_rtc_get_wrap_count |
( |
const rtc_handle_t * |
p_rtc | ) |
|
Get the times of overflow.
- Parameters
-
[in] | p_rtc | Pointer to a RTC handle which contains the configuration information for the specified RTC module. |
- Return values
-
◆ hal_rtc_init()
Initialize the RTC according to the specified parameters in the rtc_init_t of associated handle.counter start after hal_rtc_init.
- Parameters
-
[in] | p_rtc | Pointer to a RTC handle which contains the configuration information for the specified RTC module. |
- Return values
-
◆ hal_rtc_restart_tick()
Restart tick module and continue run with the previous settings. This function need be called after hal_rtc_stop_tick.
- Parameters
-
[in] | p_rtc | Pointer to a RTC handle which contains the configuration information for the specified RTC module. |
- Return values
-
◆ hal_rtc_set_alarm()
Compare counter with alarm_value for alarm module.
- Parameters
-
[in] | p_rtc | Pointer to a RTC handle which contains the configuration information for the specified RTC module. |
[in] | value | set alarm_value |
- Return values
-
◆ hal_rtc_set_tick_and_start()
Start counting down for tick module.
- Parameters
-
[in] | p_rtc | Pointer to a RTC handle which contains the configuration information for the specified RTC module. |
[in] | mode | ONE_TIME/AUTO_RELOAD |
[in] | value | the tick start which start counting down |
- Return values
-
◆ hal_rtc_stop_alarm()
Stop counting up and compare with alarm_value for alarm module.
- Parameters
-
[in] | p_rtc | Pointer to a RTC handle which contains the configuration information for the specified RTC module. |
- Return values
-
◆ hal_rtc_stop_tick()
Stop counting down for tick module.
- Parameters
-
[in] | p_rtc | Pointer to a RTC handle which contains the configuration information for the specified RTC module. |
- Return values
-