|
VMX-pi C++ HAL Library for Raspberry Pi
VMX-pi Robotics Controller & Vision/Motion Processor
|
Contains the configuration data for a VMXResource whose VMXResourceType is DigitalIO. More...
#include <VMXResourceConfig.h>
Public Types | |
| enum | OutputMode { PUSHPULL, OPENDRAIN } |
| Specifies the electrical behavior of a DigitalIO in output mode. | |
| enum | InputMode { PULLUP, PULLDOWN, NONE } |
| Specifies the default signal state of a floating DigitalIO in input mode. | |
Public Member Functions | |
| DIOConfig () | |
| DIOConfig default constructor; sets all values to defaults. More... | |
| DIOConfig (InputMode inputmode) | |
| DIOConfig constructor; initializes values with the provided parameters *. More... | |
| DIOConfig (OutputMode outputmode) | |
| DIOConfig constructor; initializes values with the provided parameters *. More... | |
| bool | GetInput () |
| returns true if the DigitalIO should be configured in inputmode; returns false if the DigitalIO should be configured as an output | |
| OutputMode | GetOutputMode () |
| Returns output mode; only valid if this DIOConfig represents a DigitalIO in output mode. | |
| InputMode | GetInputMode () |
| Returns input mode; only valid if this DIOConfig represents a DigitalIO in input mode. | |
| void | SetInput (bool input) |
| Specifies whether this DIOConfig represents an input or output mode configuration. More... | |
| void | SetInputMode (InputMode inputmode) |
| Specifies the input mode. | |
| void | SetOutputMode (OutputMode outputmode) |
| Specifies the output mode. | |
| virtual VMXResourceConfig * | GetCopy () const |
| Instantiates a copy of the configuration data. More... | |
| virtual bool | Copy (const VMXResourceConfig *p_config) |
| Copies the contents of the source VMXResourceConfig object into this object. More... | |
Public Member Functions inherited from VMXResourceConfig | |
| VMXResourceConfig (VMXResourceType res_type) | |
| VMXResourceType | GetResourceType () const |
| VMXResourceType which this configuration applies to. | |
Public Attributes | |
| bool | input |
| OutputMode | outputmode |
| InputMode | inputmode |
Public Attributes inherited from VMXResourceConfig | |
| VMXResourceType | res_type |
Contains the configuration data for a VMXResource whose VMXResourceType is DigitalIO.
|
inline |
DIOConfig default constructor; sets all values to defaults.
|
inline |
DIOConfig constructor; initializes values with the provided parameters *.
| inputmode | Specifies the default pull resistor state of a DigitalIO in input mode |
|
inline |
DIOConfig constructor; initializes values with the provided parameters *.
| outputmode | Specifies the default electrical behavior of a DigitalIO in output mode |
|
inlinevirtual |
Copies the contents of the source VMXResourceConfig object into this object.
NOTE: The source object's VMXResourceType must match this object's VMXResourceType.
| [in] | p_config | The source VMXResourceConfig object from which to copy configuration data into this object. |
Implements VMXResourceConfig.
|
inlinevirtual |
Instantiates a copy of the configuration data.
NOTE: The caller is responsible to delete the object returned from this method.
Implements VMXResourceConfig.
|
inline |
1.8.13