AIROC™ BTSDK v4.7 - Documentation | ||||
This file lists the API's and structs required to access the Pulse-Width Modulation (PWM) driver. More...
Data Structures | |
struct | pwm_config_t |
init count and toggle count for the PWM counters More... | |
Enumerations | |
enum | pwm_channel_t { PWM0 = 0, PWM1 = 1, PWM2 = 2, PWM3 = 3, MAX_PWMS = 4 } |
PWM HW block has 4 PWM channels each with its own 10 bit counter. More... | |
enum | pwm_clk_t { LHL_CLK, PMU_CLK } |
Clock used for PWM. More... | |
Functions | |
BOOL32 | wiced_hal_pwm_start (UINT8 channel, pwm_clk_t clk, UINT32 toggleCount, UINT32 initCount, BOOL32 invert) |
Configures, enables, and starts the PWM to be active on a preconfigured GPIO pin. More... | |
BOOL32 | wiced_hal_pwm_change_values (UINT8 channel, UINT32 toggleCount, UINT32 initCount) |
Changes the PWM settings after the PWM HW has already been started. More... | |
UINT32 | wiced_hal_pwm_get_toggle_count (UINT8 channel) |
Returns the current toggle count setting for the corresponding PWM channel. More... | |
UINT32 | wiced_hal_pwm_get_init_value (UINT8 channel) |
Returns the current initial count setting for the corresponding PWM channel. More... | |
void | wiced_hal_pwm_disable (UINT8 channel) |
Disables the PWM channel. More... | |
void | wiced_hal_pwm_enable (UINT8 channel) |
Enables the PWM channel which is already preconfigured. More... | |
void | wiced_hal_pwm_get_params (UINT32 clock_frequency_in, UINT32 duty_cycle, UINT32 pwm_frequency_out, pwm_config_t *params_out) |
Calculate PWM parameters. More... | |
This file lists the API's and structs required to access the Pulse-Width Modulation (PWM) driver.