Impact Acquire SDK C++
|
A base class to handle the digital inputs and outputs for devices (Device specific interface layout only). More...
#include <mvIMPACT_acquire.h>
Public Member Functions | |
unsigned int | getInputCount (void) const |
Returns the number of mvIMPACT::acquire::DigitalInput s available for the mvIMPACT::acquire::Device associated with this object. | |
unsigned int | getOutputCount (void) const |
Returns the number of digital outputs available for the mvIMPACT::acquire::Device associated with this object. | |
PulseStartConfiguration * | getPulseStartConfiguration (unsigned int nr) const |
Returns a pointer to a mvIMPACT::acquire::PulseStartConfiguration associated with this device. | |
unsigned int | getPulseStartConfigurationCount (void) const |
Returns the number of mvIMPACT::acquire::PulseStartConfiguration objects available for the mvIMPACT::acquire::Device associated with this object. | |
RTCtrProgram * | getRTCtrProgram (unsigned int nr) const |
Returns a pointer to a mvIMPACT::acquire::RTCtrProgram associated with this device. | |
const DigitalInput * | input (unsigned int nr) const |
Returns a const pointer to a mvIMPACT::acquire::DigitalInput object. | |
IOSubSystemCommon (Device *pDev) | |
Constructs a new mvIMPACT::acquire::IOSubSystemCommon object. | |
DigitalOutput * | output (unsigned int nr) const |
Returns a pointer to a mvIMPACT::acquire::DigitalOutput object. | |
virtual unsigned int | readInputRegister (void) const |
Returns the current state of the digital input register. | |
virtual unsigned int | readOutputRegister (void) const |
Returns the current state of the digital output register. | |
unsigned int | RTCtrProgramCount (void) const |
Returns the number of mvIMPACT::acquire::RTCtrProgram s available for the mvIMPACT::acquire::Device associated with this object. | |
void | writeOutputRegister (unsigned int value, unsigned int mask=UINT_MAX) |
Alters the state of the digital output register. | |
A base class to handle the digital inputs and outputs for devices (Device specific interface layout only).
This class provides a convenient basic access to the digital inputs and outputs of almost every device supported by this interface.
|
inlineexplicit |
Constructs a new mvIMPACT::acquire::IOSubSystemCommon object.
[in] | pDev | A pointer to a mvIMPACT::acquire::Device object obtained from a mvIMPACT::acquire::DeviceManager object. |
|
inlineinherited |
Returns the number of mvIMPACT::acquire::DigitalInput s available for the mvIMPACT::acquire::Device associated with this object.
|
inlineinherited |
Returns the number of digital outputs available for the mvIMPACT::acquire::Device associated with this object.
|
inlineinherited |
Returns a pointer to a mvIMPACT::acquire::PulseStartConfiguration associated with this device.
If nr is invalid(too large) an STL out_of_range exception will be thrown.
[in] | nr | The number of the pulse start configuration to return |
|
inlineinherited |
Returns the number of mvIMPACT::acquire::PulseStartConfiguration objects available for the mvIMPACT::acquire::Device associated with this object.
|
inlineinherited |
Returns a pointer to a mvIMPACT::acquire::RTCtrProgram associated with this device.
If nr is invalid(too large) an STL out_of_range exception will be thrown.
[in] | nr | The number of the real time controller program to return |
|
inlineinherited |
Returns a const pointer to a mvIMPACT::acquire::DigitalInput object.
If nr references an invalid pin an STL out_of_range exception will be thrown.
[in] | nr | The number of the digital input. |
|
inlineinherited |
Returns a pointer to a mvIMPACT::acquire::DigitalOutput object.
If nr references an invalid pin an STL out_of_range exception will be thrown.
[in] | nr | The number of the digital output. |
|
inlinevirtual |
Returns the current state of the digital input register.
This function can be used to read all digital inputs as a single value. Each bit represents the status of one digital output pin.
EXAMPLE
A value of '3' returned by this function means that digital inputs 0 and 1 are currently have a voltage considered as logical '1' applied to them.
Implements IOSubSystem.
|
inlinevirtual |
Returns the current state of the digital output register.
This function can be used to read all digital outputs as a single value. Each bit represents the status of one digital output pin.
EXAMPLE
A value of '3' returned by this function means that digital output 0 and 1 are currently set to high.
Implements IOSubSystem.
|
inlineinherited |
Returns the number of mvIMPACT::acquire::RTCtrProgram s available for the mvIMPACT::acquire::Device associated with this object.
|
inlinevirtual |
Alters the state of the digital output register.
This function can be used to alter the state of certain (or all) digital outputs with a single function call. By working with the parameter mask certain bits can remain unaffected.
EXAMPLE
If the previous state of a digital output register was '5', which means that outputs 0 and 2 are set to high a call to mvIMPACT::acquire::IOSubSystem::writeOutputRegister with value set to 2 and mask set to 3 would result in '6' as the new value for the output register. Pin 2 will remain unaffected, as mask states just to modify pin 0 and 1 ( 3 = 00000011 binary ).
[in] | value | The value to be applied to the output register |
[in] | mask | The mask to specify which pins to modify. A bit set to '1' in this parameter means that the state of this output has to adopt its style according to the value in value. |
Implements IOSubSystem.