Peripheral Control and State functions

TIMER Peripheral State functions. More...

Functions

hal_timer_state_t hal_timer_get_state (timer_handle_t *p_timer)
 Return the TIMER handle state. More...
 
hal_status_t hal_timer_set_config (timer_handle_t *p_timer, timer_init_t *p_structure)
 TIMER configuration. More...
 

Detailed Description

TIMER Peripheral State functions.

  ==============================================================================
            ##### Peripheral Control and State functions #####
  ==============================================================================
    [..]
    This subsection provides functions allowing to :
      (+) Return the TIMER handle state.
      (+) Configure the TIMER.

Function Documentation

◆ hal_timer_get_state()

hal_timer_state_t hal_timer_get_state ( timer_handle_t p_timer)

Return the TIMER handle state.

Parameters
[in]p_timerPointer to a TIMER handle which contains the configuration information for the specified TIMER module.
Return values
HAL_TIMER_STATE_RESETPeripheral not yet initialized or disabled.
HAL_TIMER_STATE_READYPeripheral Initialized and ready for use.
HAL_TIMER_STATE_BUSYAn internal process is ongoing.
HAL_TIMER_STATE_ERRORReception process is ongoing.

◆ hal_timer_set_config()

hal_status_t hal_timer_set_config ( timer_handle_t p_timer,
timer_init_t p_structure 
)

TIMER configuration.

Parameters
[in]p_timerPointer to a TIMER handle which contains the configuration information for the specified TIMER module.
[in]p_structureThe TIMER configuration structure
Return values
HAL_OKOperation is OK.
HAL_ERRORParameter error or operation not supported.
HAL_BUSYDriver is busy.
HAL_TIMEOUTTimeout occurred.