Functions
Peripheral Control and State functions
Peripheral Driver » HAL Driver » PWM » 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_pwm | Pointer to a PWM handle that contains the configuration information for the specified PWM module.

Return values

  HAL_PWM_STATE_RESET | Peripheral is not initialized or disabled.
  HAL_PWM_STATE_READY | Peripheral is initialized and ready for use.
  HAL_PWM_STATE_BUSY | An internal process is ongoing.
  HAL_PWM_STATE_ERROR | Reception process is ongoing.