ChibiOS/RT Architecture - Reference Manual - Guides |
PWM Driver subsystem low level driver header template. More...
Go to the source code of this file.
Data Structures | |
struct | PWMConfig |
Driver configuration structure. More... | |
struct | PWMDriver |
Structure representing an PWM driver. More... | |
Defines | |
#define | PWM_CHANNELS 1 |
Number of PWM channels per PWM driver. | |
Typedefs | |
typedef uint8_t | pwmchannel_t |
PWM channel type. | |
typedef uint16_t | pwmcnt_t |
PWM counter type. | |
Functions | |
void | pwm_lld_init (void) |
Low level PWM driver initialization. | |
void | pwm_lld_start (PWMDriver *pwmp) |
Configures and activates the PWM peripheral. | |
void | pwm_lld_stop (PWMDriver *pwmp) |
Deactivates the PWM peripheral. | |
bool_t | pwm_lld_is_enabled (PWMDriver *pwmp, pwmchannel_t channel) |
Determines whatever the PWM channel is already enabled. | |
void | pwm_lld_set_callback (PWMDriver *pwmp, pwmchannel_t channel, pwmedge_t edge, pwmcallback_t callback) |
Enables a callback mode for the specified PWM channel. | |
void | pwm_lld_enable_channel (PWMDriver *pwmp, pwmchannel_t channel, pwmcnt_t width) |
Enables a PWM channel. | |
void | pwm_lld_disable_channel (PWMDriver *pwmp, pwmchannel_t channel) |
Disables a PWM channel. |
PWM Driver subsystem low level driver header template.
Definition in file templates/pwm_lld.h.