AIROC™ BTSDK v4.9 - Documentation | ||||
This file lists the API's and structs required to access the Pulse-Width Modulation (PWM) driver. More...
Data Structures | |
struct | wiced_pwm_config_t |
init count and toggle count for the PWM counters More... | |
Typedefs | |
typedef wiced_pwm_config_t | pwm_config_t |
Enumerations | |
enum | PwmChannels { PWM0 = 0, PWM1 = 1, PWM2 = 2, PWM3 = 3, PWM4 = 4, PWM5 = 5, MAX_PWMS = 6 } |
PWM HW block has 6 PWM channels each with its own 16 bit counter. More... | |
enum | PwmClockType { LHL_CLK, PMU_CLK } |
Clock used for PWM. More... | |
Functions | |
wiced_bool_t | wiced_hal_pwm_start (uint8_t channel, PwmClockType clk, uint32_t toggleCount, uint32_t initCount, wiced_bool_t invert) |
Configures, enables, and starts the PWM to be active on a preconfigured GPIO pin. More... | |
wiced_bool_t | wiced_hal_pwm_change_values (uint8_t channel, uint32_t toggleCount, uint32_t initCount) |
Changes the PWM settings after the PWM HW has already been started. More... | |
uint32_t | wiced_hal_pwm_get_toggle_count (uint8_t channel) |
Returns the current toggle count setting for the corresponding PWM channel. More... | |
uint32_t | wiced_hal_pwm_get_init_value (uint8_t channel) |
Returns the current initial count setting for the corresponding PWM channel. More... | |
void | wiced_hal_pwm_disable (uint8_t channel) |
Disables the PWM channel. More... | |
void | wiced_hal_pwm_enable (uint8_t channel) |
Enables the PWM channel which is already preconfigured. More... | |
void | wiced_hal_pwm_configure_pin (uint8_t pin, uint8_t PWM) |
Configure any GPIO as any PWM port. More... | |
void | wiced_hal_pwm_get_params (uint32_t clock_frequency_in, uint32_t duty_cycle, uint32_t pwm_frequency_out, wiced_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.