pwm.h File Reference

Pulse Width Modulation (PWM) driver. 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.
void 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

Pulse Width Modulation (PWM) driver.

Version:
Id
pwm.h 2541 2009-04-17 14:00:57Z batt

Version:
Id
pwm.h 2541 2009-04-17 14:00:57Z batt
Author:
Francesco Sacchi <batt@develer.com>

Daniele Basile <asterix@develer.com>

Definition in file pwm.h.


Function Documentation

void 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   ) 

Setup all needed to test PWM on AT91.

Definition at line 121 of file pwm_hwtest.c.

int pwm_testTearDown ( void   ) 

End a PWM Test.

(Unused)

Definition at line 212 of file pwm_hwtest.c.