Goodix
GR551x API Reference  V1_6_06_B5676
Peripheral Control and State functions

DUAL TIMER Peripheral State functions. More...

+ Collaboration diagram for Peripheral Control and State functions:

Functions

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...
 

Detailed Description

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.

Function Documentation

◆ hal_dual_timer_get_state()

hal_dual_timer_state_t hal_dual_timer_get_state ( dual_timer_handle_t p_dual_timer)

Return the DUAL TIMER handle state.

Parameters
[in]p_dual_timerPointer to a DUAL_TIMER handle which contains the configuration information for the specified DUAL TIMER.
Return values
HAL_DUAL_TIMER_STATE_RESETPeripheral not yet initialized or disabled.
HAL_DUAL_TIMER_STATE_READYPeripheral Initialized and ready for use.
HAL_DUAL_TIMER_STATE_BUSYAn internal process is ongoing.
HAL_DUAL_TIMER_STATE_ERRORReception process is ongoing.

◆ hal_dual_timer_set_config()

hal_status_t hal_dual_timer_set_config ( dual_timer_handle_t p_dual_timer,
dual_timer_init_t p_structure 
)

DUAL TIMER configuration.

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