pwm.h File Reference
PWM driver (interface). More...
#include "hw/pwm_map.h"
#include <cpu/attr.h>
#include <CPU_HEADER(pwm)>
#include <cfg/compiler.h>
Go to the source code of this file.
Typedefs | |
| typedef uint16_t | pwm_duty_t |
| PWM type define. | |
Functions | |
| void | pwm_setPolarity (PwmDev dev, bool pol) |
Set PWM polarity of pwm dev. | |
| 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 in Hz. | |
| void | pwm_enable (PwmDev dev, bool state) |
Set duty of pwm channel dev. | |
| void | pwm_init (void) |
| Initialize PWM hw. | |
| int | pwm_testRun (void) |
| Test function prototypes. | |
| int | pwm_testSetUp (void) |
| Setup all needed to test PWM on AT91. | |
| int | pwm_testTearDown (void) |
| End a PWM Test. | |
Detailed Description
PWM driver (interface).
- Version:
- Id
- pwm.h 1450 2008-06-11 17:19:00Z asterix
- Version:
- Id
- pwm.h 1450 2008-06-11 17:19:00Z asterix
Definition in file pwm.h.
Function Documentation
| int pwm_testRun | ( | void | ) |
Test function prototypes.
See pwm_test.c for implemntation of these functions.
Definition at line 135 of file pwm_hwtest.c.
| int pwm_testSetUp | ( | void | ) |
| int pwm_testTearDown | ( | void | ) |
