#include <DIO.h>
Inheritance diagram for OSCAR::DIO:

Public Types | |
| enum | PortDirection { Input, Output } |
Public Methods | |
| DIO (const String &name=String(), OSCARError &err=DUMMY_ERROR(noError)) | |
| virtual | ~DIO () |
| bool | SetPortDirection (DIO::PortDirection direction) |
| DIO::PortDirection | GetPortDirection () const |
| virtual bool | ReadDI (unsigned int channel, bool &state)=0 |
| virtual bool | WriteDI (unsigned int channel, bool state)=0 |
Protected Attributes | |
| PortDirection | direction |
|
|
|
|
||||||||||||
|
First Constructor for DIO Use this to create a DIO object. By default the port direction for the digital port is set to PortDirection::Output.
|
|
|
Destructor for DIO.
|
|
|
|
|
||||||||||||
|
Read digital input. Use this method to read a digital input from the DAQ board.
Implemented in OSCAR::MCDIO, and OSCAR::NIDIO. |
|
|
Reimplemented in OSCAR::MCDIO, and OSCAR::NIDIO. |
|
||||||||||||
|
Write digital input. Use this method to set the state of a digital line on a DAQ board.
Implemented in OSCAR::MCDIO, and OSCAR::NIDIO. |
|
|
|
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |