Peripheral Control and State functions

PWM Peripheral State functions. More...

Functions

hal_pwm_state_t hal_pwm_get_state (pwm_handle_t *p_pwm)
 Return the PWM handle state. More...
 

Detailed Description

PWM Peripheral State functions.

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

Function Documentation

◆ hal_pwm_get_state()

hal_pwm_state_t hal_pwm_get_state ( pwm_handle_t p_pwm)

Return the PWM handle state.

Parameters
[in]p_pwmPointer to a PWM handle that contains the configuration information for the specified PWM module.
Return values
HAL_PWM_STATE_RESETPeripheral is not initialized or disabled.
HAL_PWM_STATE_READYPeripheral is initialized and ready for use.
HAL_PWM_STATE_BUSYAn internal process is ongoing.
HAL_PWM_STATE_ERRORReception process is ongoing.