DUAL TIMER Peripheral State functions.
More...
|
| hal_dual_timer_state_t | hal_dual_timer_get_state (dual_timer_handle_t *p_dual_timer) |
| | Return the DUAL TIMER handle state. More...
|
| |
| hal_status_t | hal_dual_timer_set_config (dual_timer_handle_t *p_dual_timer, dual_timer_init_t *p_structure) |
| | DUAL TIMER configuration. More...
|
| |
| hal_status_t | hal_dual_timer_set_background_reload (dual_timer_handle_t *p_dual_timer, uint32_t reload_value) |
| | DUAL TIMER set background reload value The background reload value contains the value from which the counter is to decrement. This is the value used to reload the counter when Periodic mode is enabled, and the current count reaches 0. The difference is that writes to background reload value do not cause the counter to immediately restart from the new value. More...
|
| |
| hal_status_t | hal_dual_timer_set_onetime_reload (dual_timer_handle_t *p_dual_timer, uint32_t reload_value) |
| | DUAL TIMER set one-time reload value The one-time reload value contains the value from which the counter is to decrement. This is the value used to reload the counter when Periodic mode is enabled, and the current count reaches 0. The difference is that writes to one-time reload value do not cause the counter to immediately restart from the new value. The one-time reload value only takes effect in the next cycle. It has higher priority than background reload. More...
|
| |
| hal_status_t | hal_dual_timer_set_period_count (dual_timer_handle_t *p_dual_timer, uint32_t count_value) |
| | DUAL TIMER set period count value The value is valid when the value is greater than 1. This fucntion is only avaliable in Period/Loop mode with IO control. This function call must be after hal_dual_timer_io_crtl_config. This function will force the stop action interrupt to be turned on. If the current count value of the dual timer is not the period value, it may cause the first period to be shortened. More...
|
| |
| hal_status_t | hal_dual_timer_io_crtl_config (dual_timer_handle_t *p_dual_timer, dual_timer_io_ctrl_cfg_t *p_structure) |
| | DUAL TIMER io ctrl configuration This function call must be after hal_dual_timer_base_init. More...
|
| |
| hal_status_t | hal_dual_timer_set_reload_background_reload (dual_timer_handle_t *p_dual_timer, uint32_t reload_value, uint32_t bg_reload_value) |
| | DUAL TIMER reload value and bg reload value set. More...
|
| |
| uint32_t | hal_dual_timer_get_counter_value (dual_timer_handle_t *p_dual_timer) |
| | DUAL TIMER get current counter. More...
|
| |
DUAL TIMER Peripheral State functions.
==============================================================================
##### Peripheral Control and State functions #####
==============================================================================
[..]
This subsection provides functions allowing to :
(+) Return the DUAL TIMER handle state.
(+) Configure the DUAL TIMER.
◆ hal_dual_timer_get_counter_value()
DUAL TIMER get current counter.
- Parameters
-
| [in] | p_dual_timer | Pointer to a DUAL_TIMER handle which contains the configuration information for the specified DUAL TIMER. |
- Returns
- Dual Timer counter.
◆ hal_dual_timer_get_state()
Return the DUAL TIMER handle state.
- Parameters
-
| [in] | p_dual_timer | Pointer to a DUAL_TIMER handle which contains the configuration information for the specified DUAL TIMER. |
- Return values
-
◆ hal_dual_timer_io_crtl_config()
DUAL TIMER io ctrl configuration This function call must be after hal_dual_timer_base_init.
- Parameters
-
| [in] | p_dual_timer | Pointer to a DUAL_TIMER handle which contains the configuration information for the specified DUAL TIMER. |
| [in] | p_structure | The DUAL TIMER io crtl configuration structure |
- Return values
-
◆ hal_dual_timer_set_background_reload()
DUAL TIMER set background reload value The background reload value contains the value from which the counter is to decrement. This is the value used to reload the counter when Periodic mode is enabled, and the current count reaches 0. The difference is that writes to background reload value do not cause the counter to immediately restart from the new value.
- Parameters
-
| [in] | p_dual_timer | Pointer to a DUAL_TIMER handle which contains the configuration information for the specified DUAL TIMER. |
| [in] | reload_value | Background reload value |
- Return values
-
◆ hal_dual_timer_set_config()
DUAL TIMER configuration.
- Parameters
-
| [in] | p_dual_timer | Pointer to a DUAL_TIMER handle which contains the configuration information for the specified DUAL TIMER. |
| [in] | p_structure | The DUAL TIMER configuration structure |
- Return values
-
◆ hal_dual_timer_set_onetime_reload()
DUAL TIMER set one-time reload value The one-time reload value contains the value from which the counter is to decrement. This is the value used to reload the counter when Periodic mode is enabled, and the current count reaches 0. The difference is that writes to one-time reload value do not cause the counter to immediately restart from the new value. The one-time reload value only takes effect in the next cycle. It has higher priority than background reload.
- Parameters
-
| [in] | p_dual_timer | Pointer to a DUAL_TIMER handle which contains the configuration information for the specified DUAL TIMER. |
| [in] | reload_value | One-time reload value |
- Return values
-
◆ hal_dual_timer_set_period_count()
DUAL TIMER set period count value The value is valid when the value is greater than 1. This fucntion is only avaliable in Period/Loop mode with IO control. This function call must be after hal_dual_timer_io_crtl_config. This function will force the stop action interrupt to be turned on. If the current count value of the dual timer is not the period value, it may cause the first period to be shortened.
- Parameters
-
| [in] | p_dual_timer | Pointer to a DUAL_TIMER handle which contains the configuration information for the specified DUAL TIMER. |
| [in] | count_value | period count value |
- Return values
-
◆ hal_dual_timer_set_reload_background_reload()
DUAL TIMER reload value and bg reload value set.
- Parameters
-
| [in] | p_dual_timer | Pointer to a DUAL_TIMER handle which contains the configuration information for the specified DUAL TIMER. |
| [in] | reload_value | The DUAL TIMER reload value |
| [in] | bg_reload_value | The DUAL TIMER bg reload value |
- Return values
-