Functions | |
uint16_t | app_pwm_init (app_pwm_params_t *p_params) |
Initialize the pwm peripheral. More... | |
uint16_t | app_pwm_deinit (app_pwm_id_t id) |
De-initialize the pwm peripheral. More... | |
uint16_t | app_pwm_start (app_pwm_id_t id) |
Starts the PWM signal generation on the output. More... | |
uint16_t | app_pwm_stop (app_pwm_id_t id) |
Stops the PWM signal generation on the output. More... | |
uint16_t | app_pwm_update_freq (app_pwm_id_t id, uint32_t freq) |
Update the PWM frequency on the output. More... | |
uint16_t | app_pwm_config_channel (app_pwm_id_t id, app_pwm_active_channel_t channel, app_pwm_channel_init_t *p_config) |
Initialize the PWM channels according to the specified parameters. More... | |
uint16_t app_pwm_config_channel | ( | app_pwm_id_t | id, |
app_pwm_active_channel_t | channel, | ||
app_pwm_channel_init_t * | p_config | ||
) |
Initialize the PWM channels according to the specified parameters.
[in] | id | which PWM module want to config. |
[in] | channel | PWM Channels to be configured. |
[in] | p_config | PWM Channels configuration structure. |
uint16_t app_pwm_deinit | ( | app_pwm_id_t | id | ) |
De-initialize the pwm peripheral.
[in] | id | De-initialize for a specific ID. |
uint16_t app_pwm_init | ( | app_pwm_params_t * | p_params | ) |
Initialize the pwm peripheral.
[in] | p_params | Pointer to app_pwm_params_t parameter which contains the configuration information for the specified PWM module. |
uint16_t app_pwm_start | ( | app_pwm_id_t | id | ) |
Starts the PWM signal generation on the output.
[in] | id | which PWM module want to output. |
uint16_t app_pwm_stop | ( | app_pwm_id_t | id | ) |
Stops the PWM signal generation on the output.
[in] | id | which PWM module want to stop output. |
uint16_t app_pwm_update_freq | ( | app_pwm_id_t | id, |
uint32_t | freq | ||
) |
Update the PWM frequency on the output.
[in] | id | which PWM module want to config. |
[in] | freq | This parameter ranges between min = 0 and max = SystemFreq / 2. |