#include <DigitalOutput.h>
Public Member Functions | |
DigitalOutput (unsigned channel) | |
DigitalOutput (unsigned slot, unsigned channel) | |
~DigitalOutput (void) | |
void | Set (unsigned value) |
void | Pulse (unsigned uSec) |
bool | IsPulsing (void) |
DigitalOutput::DigitalOutput | ( | unsigned | channel | ) |
Create an instance of a digital output. Create a digital output given a channel. The default module is used.
DigitalOutput::DigitalOutput | ( | unsigned | slot, | |
unsigned | channel | |||
) |
Create an instance of a digital output. Create an instance of a digital output given a slot and channel.
DigitalOutput::~DigitalOutput | ( | void | ) |
Free the resources associated with a digital output.
void DigitalOutput::Set | ( | unsigned | value | ) |
Set the value of a digital output. Set the value of a digital output to either one (true) or zero (false).
void DigitalOutput::Pulse | ( | unsigned | uSec | ) |
Output a single pulse on the digital output line. Send a single pulse on the digital output line where the pulse diration is specified in uSec.
uSec | The pulsewidth in microseconds |
bool DigitalOutput::IsPulsing | ( | void | ) |
Determine if the pulse is still going. Determine if a previously started pulse is still going.