Main Page   Modules   Data Structures   File List   Data Fields   Globals  

pwmsw.h File Reference

Software interrupt-driven multi-output PWM function library. More...

#include "global.h"
#include "timer.h"

Go to the source code of this file.

Data Structures

struct  struct_SwPwmChannel

Defines

#define SWPWM_NUM_CHANNELS   3
#define SWPWMPORT   PORTB
#define SWPWMDDR   DDRB

Typedefs

typedef struct_SwPwmChannel SwPwmChannelType

Functions

void pwmswInit (u16 periodTics)
 initializes software PWM system

void pwmswOff (void)
 turns off software PWM system

void pwmswPWMSet (u08 channel, u16 duty)
 set duty on channel

void pwmswService (void)
 software PWM interrupt service routine


Detailed Description

Software interrupt-driven multi-output PWM function library.

Definition in file pwmsw.h.


Generated on Sun Feb 22 19:12:31 2004 for Procyon AVRlib by doxygen1.3-rc2