PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
Functions for up to 2 channels per cog of PWM signals. More than one cog may be launched, so for example, if 5 signals are desired, use 3 cogs for up to 6 channels. More...
#include "simpletools.h"
Go to the source code of this file.
Classes | |
struct | pwm2ch_st |
Typedefs | |
typedef struct pwm2ch_st | pwm2ch_t |
typedef pwm2ch_t | pwm2ch |
Functions | |
pwm2ch * | pwm2ch_start (unsigned int cycleMicroseconds) |
Start PWM process in another cog. More... | |
void | pwm2ch_set (pwm2ch *device, int pin, int channel, int tHigh) |
Set a PWM signal's high time. More... | |
void | pwm2ch_stop (pwm2ch *device) |
Shut down pwm2ch process and reclaim cog and I/O pins for other uses. More... | |
Functions for up to 2 channels per cog of PWM signals. More than one cog may be launched, so for example, if 5 signals are desired, use 3 cogs for up to 6 channels.
Definition in file pwm2ch.h.
struct pwm2ch_st |
void pwm2ch_set | ( | pwm2ch * | device, |
int | pin, | ||
int | channel, | ||
int | tHigh | ||
) |
pwm2ch* pwm2ch_start | ( | unsigned int | cycleMicroseconds | ) |
Start PWM process in another cog.
cycleMicroseconds | The number of microseconds each cycle lasts. |
Definition at line 26 of file pwm2ch.c.