53 #ifndef _HEK_SYS_BOARD_H 54 #define _HEK_SYS_BOARD_H 58 #include "rnr/rnrconfig.h" 241 #endif // _HEK_SYS_BOARD_H virtual int close()
Close all interfaces to monitoring hardware.
byte_t readIOExpPort1()
Read I/O expander port 1.
<b><i>Hekateros</i></b> optical limit switches.
byte_t readIOExpPort0()
Read I/O expander port 0.
virtual int cmdWritePin(int id, int val)
Command to write value to an I/O pin.
virtual int cmdSetAlarmLED(int val)
Command to set Alarm LED.
const char *const HekI2CDevice
i2c device name
virtual byte_t cmdReadLimits()
Command to read limit bit state.
virtual ~HekSysBoard()
Destructor.
virtual int scan()
Scan and initialize hardware.
virtual byte_t cmdReadAux()
Command to read auxilliary bit state.
virtual int cmdReadFwVersion(int &ver)
Command to read firmware version.
virtual int cmdSetStatusLED(int val)
Command to set Status LED.
static const byte_t HekIOExpCmdInput0
read port 0 command
Top-level package include file.
HekSysBoard()
Default constructor.
static const byte_t HekIOExpCmdInput1
read port 1 command
virtual int open(const std::string &dev=HekI2CDevice)
Open all interfaces monitoring hardware.
byte_t readIOExp(byte_t byCmd)
Read I/O expander byte.
int writeIOExp(byte_t byCmd, byte_t byVal)
Write byte to I/O expander.
virtual int cmdConfigPin(int id, char dir)
Command to configure direction of an I/O pin.
virtual int cmdReadPin(int id)
Command to read one I/O pin.
The <b><i>Hekateros</i></b> namespace encapsulates all <b><i>Hekateros</i></b> related constructs...
virtual int cmdSetHaltingState()
Command to set monitoring state to halting.