55 #include "rnr/rnrconfig.h" 86 virtual int open(uint_t uHekHwVer,
216 int sendCommand(
char *buf,
size_t nBytes, uint_t timeout=50000);
227 int recvResponse(
char buf[],
size_t count, uint_t timeout=100000);
int m_fd
open arduino file descriptor
int sendCommand(char *buf, size_t nBytes, uint_t timeout=50000)
Send command to Arduino.
virtual ~HekUno()
Destructor.
virtual byte_t cmdReadLimits()
Command to read limit bit state.
virtual int cmdSetAlarmLED(int val)
Command to set Alarm LED.
HekUno()
Default constructor.
virtual int cmdSetHaltedState()
Command to set monitoring state to halted.
<b><i>Hekateros</i></b> optical limit switches.
virtual int cmdConfigPin(int id, char dir)
Command to configure direction of an I/O pin.
int m_nFwSeqNum
expected test sequence number modulo 256
virtual int scan()
Scan and initialize hardware.
virtual int cmdNull()
Null command.
virtual int cmdSetStatusLED(int val)
Command to set Status LED.
virtual int close()
Close all interfaces to monitoring hardware.
Top-level package include file.
virtual int cmdWritePin(int id, int val)
Command to write value to an I/O pin.
virtual byte_t cmdReadAux()
Command to read auxilliary bit state.
virtual int open(uint_t uHekHwVer, const std::string &dev=HekDevArduino, int baud=HekBaudRateArduino)
Open all interfaces monitoring hardware.
virtual int cmdTestInterface()
Test serial interface command.
uint_t m_uHekHwVer
hekateros hardware version
int recvResponse(char buf[], size_t count, uint_t timeout=100000)
Receive response from Arduino.
const int HekBaudRateArduino
arduino baudrate
int m_nFwOpState
firmware operational state
const char *const HekDevArduino
arduino device name
byte_t unpackHex(char buf[])
Unpack hex characters to byte.
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 cmdReadFwVersion(int &ver)
Command to read firmware version.
int m_nFwVer
arduino firmware version