 |
Fraise
2.1
FRAmework for Interfacing Software and Electronics
|
Go to the documentation of this file.
59 #define SOFTPWM_TIMER 5
62 #ifndef SOFTPWM_MAX_VALUE
63 #define SOFTPWM_MAX_VALUE 1023
66 #ifndef SOFTPWM_TICK_US
67 #define SOFTPWM_TICK_US 5
70 #ifndef SOFTPWM_INTPRI
71 #define SOFTPWM_INTPRI 1
92 void softpwmSet(
unsigned char chan,
unsigned int val);
unsigned int softpwmGet(unsigned char chan)
Get the current value of a channel.
void softpwmInit()
Init the module in setup()
void softpwmLowInterrupt(void)
Module low interrupt routine, must be called by the lowInterrupts() user defined function.
void softpwmHighInterrupt(void)
Module high interrupt routine, must be called by the highInterrupts() user defined function.
void softpwmReceive()
Module receive function, to be called by the fraiseReceive() user defined function.
void softpwmSet(unsigned char chan, unsigned int val)
Set the value of a channel.