1#ifndef Driver_DIO_InOut_h_
2#define Driver_DIO_InOut_h_
55 static bool start( uint8_t numInputs,
75 static bool getOutput( uint8_t outputIndex,
bool& assertedOut );
82 static bool setOutput( uint8_t outputIndex,
bool asserted );
105 static bool getInput( uint8_t inputIndex,
bool& assertedOut );
This class defines a generic interface for controlling N Digital inputs and M Digital outputs.
Definition InOut.h:36
static bool start(uint8_t numInputs, const Config_T inputCfg[], uint8_t numOutputs, const Config_T outputCfg[])
Starts the driver actively sampling and outputting signals.
static bool setOutput(uint8_t outputIndex, bool asserted)
Sets the state of the specified DO signal.
static bool getOutput(uint8_t outputIndex, bool &assertedOut)
Returns (via the 'assertedOut' argument) the current commanded state of the specified DO signal.
static bool deassertOutput(uint8_t outputIndex)
Convenience method.
Definition InOut.h:91
static bool assertOutput(uint8_t outputIndex)
Convenience method.
Definition InOut.h:85
static bool getInput(uint8_t inputIndex, bool &assertedOut)
Returns (via the 'assertedOut' argument) the current DI signal state.
size_t blob
Additional Platform specific options.
Definition InOut.h:42
size_t pin
GPIO pin identifier.
Definition InOut.h:41
static void stop()
Stops the driver from sampling inputs, and places all of the output into their de-asserted state.
Configuration Options.
Definition InOut.h:40