pwm.c File Reference
PWM driver (implementation). More...
#include "cfg/cfg_pwm.h"#include <cfg/macros.h>#include <cfg/module.h>#include <cfg/log.h>#include <cfg/debug.h>#include <drv/pwm.h>#include "drv/PP_CAT3(pwm, _, CPU_ID).h"#include <cpu/types.h>#include <cpu/irq.h>#include <string.h>Go to the source code of this file.
Functions | |
| void | pwm_setDuty (PwmDev dev, pwm_duty_t duty) |
Set duty of PWM channel dev. | |
| void | pwm_setFrequency (PwmDev dev, pwm_freq_t freq) |
Set frequency of PWM channel dev at freq. | |
| void | pwm_enable (PwmDev dev, bool state) |
Enable/Disable PWM channel dev. | |
| void | pwm_init (void) |
| Initialize the PWM driver. | |
| void | pwm_setDuty (Pwm *ctx, pwm_duty_t duty) |
Set the duty cycle of the PWM channel linked to ctx. | |
| void | pwm_setFrequency (Pwm *ctx, pwm_freq_t freq) |
Set PWM frequency of channel linked to ctx. | |
| void | pwm_setPolarity (Pwm *ctx, PwmPolarity pol) |
Set PWM polarity of pwm channel linked to ctx. | |
| void | pwm_enable (Pwm *ctx, bool enable) |
Enable/Disable the pwm channel linked to ctx. | |
| void | pwm_init (Pwm *ctx, unsigned channel) |
| Initialize PWM driver. | |
Detailed Description
PWM driver (implementation).
Definition in file pwm.c.
