A type of I/O point that a driver supports.
More...
#include <io/IoClass.hpp>
A type of I/O point that a driver supports.
- See also
- xentara::io::Io
-
I/O Point Classes
◆ ~IoClass()
xentara::io::IoClass::~IoClass |
( |
| ) |
|
|
pure virtualdefault |
◆ config()
Gets the array object used for the configuration attributes.
This function returns the object that the framework will be using to allocate the memory block that contains the configuration attributes. You can call this function in the constructor to add confioguration attributes of your own.
You do not need to add the entire configuration of the I/O points to this array, only the configuration parameters you intend to publish as Xentara attributes.
- See also
- Publishing Config Parameters as Xentara Attributes
◆ name()
Gets the name of the I/O point class.
To keep naming conventions as consistent as possible between drivers, Xentara provides a set of predefined type names. All things being equal, you should prefer using one of the predefines names. If the documentation, the specification, or common usage for your I/O method use different nomenclature, however, you should prefer that over the standard names.
- Returns
- The name of the class, in UTF-8 encoding.
◆ nameHandle()
Gets an array handle to the name of an I/O point.
- Note
- Since the name of the I/O point is part of its configuration, the returned handle should only be used once the I/O point’s configuration has been fully loaded.
- Returns
- A handle to the I/O point’s name in UTF-8 encoding.
◆ primaryKeyHandle()
Gets an array handle to the primary key of an I/O point.
- Note
- Since the primary key is only fully known once the configuration has been completely loaded, the returned handle should not be used to get the I/O point’s key during loading. Specifically, the returned handle should not be used from within loadConfig().
- Returns
- A handle to the I/O point’s primary key in UTF-8 encoding.
◆ uuid()
Gets the UUID of the I/O type.
◆ uuidHandle()
Gets an array handle to the UUID of an I/O point.
- Note
- Since the UUID of the I/O point is part of its configuration, this function should only be called once the I/O point’s configuration has been fully loaded.
◆ kAnalogInput
The standard name for an analog input.
◆ kAnalogIo
The standard name for an analog I/O point.
◆ kAnalogOutput
The standard name for an analog output.
◆ kBit
The standard name for a bit.
◆ kChannel
The standard name for a channel.
◆ kDigitalInput
The standard name for a digital input.
◆ kDigitalIo
The standard name for a digital I/O point.
◆ kDigitalOutput
The standard name for a digital output.
◆ kInput
The standard name for a generic input.
◆ kIo
The standard name for a generic I/O point.
◆ kOutput
The standard name for a generic output.
◆ kPin
The standard name for a pin.
◆ kRegister
The standard name for a register.
◆ kVariable
The standard name for a variable.