Go to the documentation of this file.
225 #define __HAL_TIMER_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->state = HAL_TIMER_STATE_RESET)
231 #define __HAL_TIMER_ENABLE(__HANDLE__) SET_BITS((__HANDLE__)->p_instance->CTRL, TIMER_CTRL_EN)
237 #define __HAL_TIMER_DISABLE(__HANDLE__) CLEAR_BITS((__HANDLE__)->p_instance->CTRL, TIMER_CTRL_EN)
243 #define __HAL_TIMER_ENABLE_ALL_IT(__HANDLE__) ll_timer_enable_all_it((__HANDLE__)->p_instance)
249 #define __HAL_TIMER_DISABLE_ALL_IT(__HANDLE__) ll_timer_disable_all_it((__HANDLE__)->p_instance)
255 #define __HAL_TIMER_GET_FLAG_IT(__HANDLE__) ll_timer_is_active_flag_it(__HANDLE__->p_instance)
@ HAL_TIMER_CAPTURE_GPIO_PIN_5
@ HAL_TIMER_CAPTURE_GPIO_PIN_4
void hal_timer_blepulse1_event_callback(timer_handle_t *p_timer)
ble pulse 1 event callback in non-blocking mode.
@ HAL_TIMER_CAPTURE_MSIO_PIN_5
@ HAL_TIMER_CAPTURE_MSIO_PIN_2
hal_status_t hal_timer_stop(timer_handle_t *p_timer)
Stops the TIMER counter.
@ HAL_TIMER_CAPTURE_MSIO_PIN_7
@ HAL_TIMER_CAPTURE_GPIO_PIN_1
@ HAL_TIMER_CAPTURE_GPIO_PIN_2
struct _timer_handle timer_handle_t
TIMER handle Structure definition.
@ HAL_TIMER_CAPTURE_MSIO_PIN_1
@ HAL_TIMER_CAPTURE_AON_GPIO_PIN_7
@ HAL_TIMER_CAPTURE_GPIO_PIN_9
@ HAL_TIMER_CAPTURE_GPIO_PIN_7
@ HAL_TIMER_CAPTURE_RISING
timer_regs_t * p_instance
hal_status_t hal_timer_stop_it(timer_handle_t *p_timer)
Stops the TIMER counter in interrupt mode.
uint32_t hal_timer_get_channel1_val(const timer_handle_t *p_timer)
Get current value of channel1.
@ HAL_TIMER_CAPTURE_MSIO_PIN_6
@ HAL_TIMER_CAPTURE_AON_GPIO_PIN_3
void hal_timer_channel3_event_callback(timer_handle_t *p_timer)
channel3 event callback in non-blocking mode.
hal_timer_capture_channel_init_t capture_channel3
struct _hal_timer_capture_channel_init hal_timer_capture_channel_init_t
TIMER capture channel Structure definition.
void hal_timer_channel2_event_callback(timer_handle_t *p_timer)
channel2 event callback in non-blocking mode.
@ HAL_TIMER_CAPTURE_FALLING
hal_timer_capture_type_t
HAL TIMER capture type Enumerations definition.
@ HAL_TIMER_CAPTURE_MSIO_PIN_8
@ HAL_TIMER_CAPTURE_AON_GPIO_PIN_6
hal_timer_capture_pin_t capture_pin
hal_timer_capture_channel_init_t capture_channel1
HAL_TIMER Callback function definition.
hal_timer_capture_type_t edge_capture
uint32_t hal_timer_get_channel2_val(const timer_handle_t *p_timer)
Get current value of channel2.
__IO hal_timer_state_t state
@ HAL_TIMER_CAPTURE_GPIO_PIN_13
void hal_timer_channel0_event_callback(timer_handle_t *p_timer)
channel0 event callback in non-blocking mode.
@ HAL_TIMER_CAPTURE_GPIO_PIN_3
TIMER capture channel Structure definition.
hal_status_t hal_timer_set_config(const timer_handle_t *p_timer, const timer_init_t *p_structure)
TIMER configuration.
@ HAL_TIMER_CAPTURE_AON_GPIO_PIN_2
TIMER init Structure definition.
Header file containing functions prototypes of TIMER LL library.
@ HAL_TIMER_CAPTURE_MSIO_PIN_0
@ HAL_TIMER_CAPTURE_MSIO_PIN_4
void hal_timer_blepulse2_event_callback(timer_handle_t *p_timer)
ble pulse 2 event callback in non-blocking mode.
struct _hal_timer_base_callback hal_timer_base_callback_t
HAL_TIMER Callback function definition.
hal_timer_state_t hal_timer_get_state(const timer_handle_t *p_timer)
Return the TIMER handle state.
void hal_timer_channel1_event_callback(timer_handle_t *p_timer)
channel1 event callback in non-blocking mode.
@ HAL_TIMER_CAPTURE_AON_GPIO_PIN_5
@ HAL_TIMER_CAPTURE_GPIO_PIN_10
@ HAL_TIMER_CAPTURE_AON_GPIO_PIN_1
@ HAL_TIMER_CAPTURE_GPIO_PIN_12
void(* timer_msp_deinit)(timer_handle_t *p_timer)
@ HAL_TIMER_CAPTURE_GPIO_PIN_11
void(* timer_period_elapsed_callback)(timer_handle_t *p_timer)
hal_status_t
HAL Status structures definition.
@ HAL_TIMER_CAPTURE_GPIO_PIN_0
@ HAL_TIMER_CAPTURE_MSIO_PIN_9
uint32_t hal_timer_get_channel0_val(const timer_handle_t *p_timer)
Get current value of channel0.
This file contains HAL common definitions, enumeration, macros and structures definitions.
hal_status_t hal_timer_deinit(timer_handle_t *p_timer)
De-initialize the TIMER peripheral.
@ HAL_TIMER_CAPTURE_AON_GPIO_PIN_4
void hal_timer_irq_handler(timer_handle_t *p_timer)
Handle TIMER interrupt request.
TIMER handle Structure definition.
void hal_timer_period_elapsed_callback(timer_handle_t *p_timer)
Period elapsed callback in non-blocking mode.
@ HAL_TIMER_CAPTURE_AON_GPIO_PIN_0
hal_timer_capture_channel_init_t capture_channel0
hal_status_t hal_timer_start(timer_handle_t *p_timer)
Starts the TIMER counter.
@ HAL_TIMER_CAPTURE_GPIO_PIN_8
hal_status_t hal_timer_start_it(timer_handle_t *p_timer)
Starts the TIMER counter in interrupt mode.
struct _timer_init timer_init_t
TIMER init Structure definition.
hal_timer_capture_pin_t
HAL TIMER capture pin Enumerations definition.
void hal_timer_msp_init(timer_handle_t *p_timer)
Initialize the TIMER MSP.
void hal_timer_msp_deinit(timer_handle_t *p_timer)
De-initialize the TIMER MSP.
hal_timer_state_t
HAL TIMER State Enumerations definition.
@ HAL_TIMER_CAPTURE_MSIO_PIN_3
void(* timer_msp_init)(timer_handle_t *p_timer)
hal_timer_capture_channel_init_t capture_channel2
uint32_t hal_timer_get_channel3_val(const timer_handle_t *p_timer)
Get current value of channel3.
hal_status_t hal_timer_init(timer_handle_t *p_timer)
Initialize the TIMER according to the specified parameters in the timer_init_t and initialize the ass...
@ HAL_TIMER_CAPTURE_GPIO_PIN_6