DigitalOutput Class Reference

#include <DigitalOutput.h>

Inheritance diagram for DigitalOutput:

Inheritance graph
[legend]
Collaboration diagram for DigitalOutput:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 DigitalOutput (unsigned channel)
 DigitalOutput (unsigned slot, unsigned channel)
 ~DigitalOutput (void)
void Set (unsigned value)
void Pulse (unsigned uSec)
bool IsPulsing (void)


Detailed Description

Class to write to digital outputs. Write values to the digital output channels. Other devices implemented elsewhere will allocate channels automatically so for those devices it shouldn't be done here.

Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Parameters:
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.


The documentation for this class was generated from the following files:

Generated on Thu Oct 2 14:01:24 2008 for WPI Robotics Library by  doxygen 1.5.5