ChibiOS/RT Architecture - Reference Manual - Guides |
PWM Driver macros and structures. More...
#include "pwm_lld.h"
Go to the source code of this file.
Defines | |
#define | pwmEnableChannelI(pwmp, channel, width) pwm_lld_enable_channel(pwmp, channel, width) |
Enables a PWM channel. | |
#define | pwmDisableChannelI(pwmp, channel) pwm_lld_disable_channel(pwmp, channel) |
Disables a PWM channel. | |
Enumerations | |
enum | pwmstate_t { PWM_UNINIT = 0, PWM_STOP = 1, PWM_READY = 2 } |
Driver state machine possible states. More... | |
enum | pwmmode_t { PWM_OUTPUT_DISABLED = 0, PWM_OUTPUT_ACTIVE_HIGH = 1, PWM_OUTPUT_ACTIVE_LOW = 2 } |
PWM logic mode. More... | |
Functions | |
void | pwmInit (void) |
PWM Driver initialization. | |
void | pwmObjectInit (PWMDriver *pwmp) |
Initializes the standard part of a PWMDriver structure. | |
void | pwmStart (PWMDriver *pwmp, const PWMConfig *config) |
Configures and activates the PWM peripheral. | |
void | pwmStop (PWMDriver *pwmp) |
Deactivates the PWM peripheral. | |
void | pwmEnableChannel (PWMDriver *pwmp, pwmchannel_t channel, pwmcnt_t width) |
Enables a PWM channel. | |
void | pwmDisableChannel (PWMDriver *pwmp, pwmchannel_t channel) |
Disables a PWM channel. |
PWM Driver macros and structures.
Definition in file pwm.h.