#include <DigitalIOSubsystem.hpp>
Public Member Functions | |
DigitalIOSubsystem (USBDevice &parent) | |
virtual | ~DigitalIOSubsystem () |
virtual std::ostream & | print (std::ostream &out) |
int | getNumPorts () const |
int | getNumChannels () const |
int | getNumTristateGroups () const |
int | getNumTristates () const |
DigitalIOSubsystem & | configure (bool tristate, const BoolArray &outputs, const BoolArray &values) |
DigitalIOSubsystem & | configure (const BoolArray &tristates, const BoolArray &outputs, const BoolArray &values) |
DigitalIOSubsystem & | getConfiguration (BoolArray &tristates, BoolArray &outputs) |
bool | read (int channel) |
BoolArray | read (int startChannel, int numChannels) |
DigitalIOSubsystem & | write (int channel, bool value) |
DigitalIOSubsystem & | write (int startChannel, const BoolArray &values) |
Protected Member Functions | |
UCharArray & | bitsToBytes (UCharArray &dest, int bit, const BoolArray &src) |
BoolArray & | bytesToBits (BoolArray &dest, const UCharArray &src, int bit) |
Protected Attributes | |
int | numPorts |
int | numChannels |
int | numTristateGroups |
int | numTristates |
UCharArray | writeValues |
AIOUSB::DigitalIOSubsystem::DigitalIOSubsystem | ( | USBDevice & | parent | ) |
AIOUSB::DigitalIOSubsystem::~DigitalIOSubsystem | ( | ) | [virtual] |
UCharArray & AIOUSB::DigitalIOSubsystem::bitsToBytes | ( | UCharArray & | dest, | |
int | bit, | |||
const BoolArray & | src | |||
) | [protected] |
BoolArray & AIOUSB::DigitalIOSubsystem::bytesToBits | ( | BoolArray & | dest, | |
const UCharArray & | src, | |||
int | bit | |||
) | [protected] |
virtual std::ostream& AIOUSB::DigitalIOSubsystem::print | ( | std::ostream & | out | ) | [virtual] |
Implements AIOUSB::DeviceSubsystem.
int AIOUSB::DigitalIOSubsystem::getNumPorts | ( | ) | const [inline] |
int AIOUSB::DigitalIOSubsystem::getNumChannels | ( | ) | const [inline] |
int AIOUSB::DigitalIOSubsystem::getNumTristateGroups | ( | ) | const [inline] |
int AIOUSB::DigitalIOSubsystem::getNumTristates | ( | ) | const [inline] |
DigitalIOSubsystem & AIOUSB::DigitalIOSubsystem::configure | ( | bool | tristate, | |
const BoolArray & | outputs, | |||
const BoolArray & | values | |||
) |
DigitalIOSubsystem & AIOUSB::DigitalIOSubsystem::configure | ( | const BoolArray & | tristates, | |
const BoolArray & | outputs, | |||
const BoolArray & | values | |||
) |
DigitalIOSubsystem & AIOUSB::DigitalIOSubsystem::getConfiguration | ( | BoolArray & | tristates, | |
BoolArray & | outputs | |||
) |
bool AIOUSB::DigitalIOSubsystem::read | ( | int | channel | ) |
BoolArray AIOUSB::DigitalIOSubsystem::read | ( | int | startChannel, | |
int | numChannels | |||
) |
DigitalIOSubsystem & AIOUSB::DigitalIOSubsystem::write | ( | int | channel, | |
bool | value | |||
) |
DigitalIOSubsystem & AIOUSB::DigitalIOSubsystem::write | ( | int | startChannel, | |
const BoolArray & | values | |||
) |
int AIOUSB::DigitalIOSubsystem::numPorts [protected] |
int AIOUSB::DigitalIOSubsystem::numChannels [protected] |
int AIOUSB::DigitalIOSubsystem::numTristateGroups [protected] |
int AIOUSB::DigitalIOSubsystem::numTristates [protected] |
UCharArray AIOUSB::DigitalIOSubsystem::writeValues [protected] |