#include <DigitalInput.h>
Public Member Functions | |
DigitalInput (unsigned channel) | |
DigitalInput (unsigned slot, unsigned channel) | |
~DigitalInput (void) | |
unsigned | GetChannel (void) |
virtual unsigned | GetChannelForRouting (void) |
virtual unsigned | GetModuleForRouting (void) |
virtual bool | GetAnalogTriggerForRouting (void) |
virtual void | RequestInterrupts (tInterruptHandler handler) |
Asynchronus handler version. | |
virtual void | RequestInterrupts (void) |
Synchronus Wait version. |
DigitalInput::DigitalInput | ( | unsigned | channel | ) |
Create an instance of a Digital Input class. Creates a digital input given a channel and uses the default module.
DigitalInput::DigitalInput | ( | unsigned | slot, | |
unsigned | channel | |||
) |
Create an instance of a Digital Input class. Creates a digital input given an channel and module.
DigitalInput::~DigitalInput | ( | void | ) |
Free resources associated with the Digital Input class.
unsigned DigitalInput::GetChannel | ( | void | ) |
unsigned DigitalInput::GetChannelForRouting | ( | void | ) | [virtual] |
unsigned DigitalInput::GetModuleForRouting | ( | void | ) | [virtual] |
bool DigitalInput::GetAnalogTriggerForRouting | ( | void | ) | [virtual] |
Implements DigitalSource.
void DigitalInput::RequestInterrupts | ( | tInterruptHandler | handler | ) | [virtual] |
Asynchronus handler version.
Request interrupts asynchronously on this digital input.
handler | The address of the interrupt handler function of type tInterruptHandler that will be called whenever there is an interrupt on the digitial input port. Request interrupts in synchronus mode where the user program interrupt handler will be called when an interrupt occurs. The default is interrupt on rising edges only. |
Implements DigitalSource.
void DigitalInput::RequestInterrupts | ( | void | ) | [virtual] |
Synchronus Wait version.
Request interrupts synchronously on this digital input. Request interrupts in synchronus mode where the user program will have to explicitly wait for the interrupt to occur. The default is interrupt on rising edges only.
Implements DigitalSource.