IO operation functions.
More...
IO operation functions.
==============================================================================
##### IO operation functions #####
==============================================================================
[..]
This section provides functions allowing to:
(+) Start the PWM.
(+) Stop the PWM.
(+) Configure the specified PWM channel.
◆ hal_pwm_config_channel()
Initialize the PWM channels according to the specified parameters in the pwm_init_t.
- Parameters
-
[in] | p_pwm | Pointer to a PWM handle that contains the configuration information for the specified PWM module. |
[in] | p_config | PWM Channels configuration structure. |
[in] | channel | PWM Channels to be configured. This parameter can be one of the following values:
|
- Return values
-
◆ hal_pwm_resume_reg()
Restore some registers related to PWM configuration after sleep. This function must be used in conjunction with the hal_pwm_suspend_reg().
- Parameters
-
[in] | p_pwm | Pointer to a PWM handle which contains the configuration information for the specified PWM module. |
- Return values
-
◆ hal_pwm_start()
Starts the PWM signal generation on the output.
- Parameters
-
[in] | p_pwm | Pointer to a PWM handle that contains the configuration information for the specified PWM module. |
- Return values
-
◆ hal_pwm_stop()
Stops the PWM signal generation on the output.
- Parameters
-
[in] | p_pwm | Pointer to a PWM handle that contains the configuration information for the specified PWM module. |
- Return values
-
◆ hal_pwm_suspend_reg()
Suspend some registers related to PWM configuration before sleep.
- Parameters
-
[in] | p_pwm | Pointer to a PWM handle which contains the configuration information for the specified PWM module. |
- Return values
-
◆ hal_pwm_update_freq()
Update the PWM frequency on the output.
- Parameters
-
[in] | p_pwm | Pointer to a PWM handle that contains the configuration information for the specified PWM module. |
[in] | freq | This parameter ranges between min = 0 and max = SystemFreq / 2. |
- Return values
-