![]() |
Hekateros
3.4.3
RoadNarrows Robotics Robot Arm Project
|
Public Member Functions | |
| HekSysBoard () | |
| Default constructor. | |
| virtual | ~HekSysBoard () |
| Destructor. | |
| virtual int | open (const std::string &dev=HekI2CDevice) |
| Open all interfaces monitoring hardware. More... | |
| virtual int | close () |
| Close all interfaces to monitoring hardware. More... | |
| virtual int | scan () |
| Scan and initialize hardware. More... | |
| virtual int | cmdReadFwVersion (int &ver) |
| Command to read firmware version. More... | |
| virtual byte_t | cmdReadLimits () |
| Command to read limit bit state. More... | |
| virtual byte_t | cmdReadAux () |
| Command to read auxilliary bit state. More... | |
| virtual int | cmdReadPin (int id) |
| Command to read one I/O pin. More... | |
| virtual int | cmdWritePin (int id, int val) |
| Command to write value to an I/O pin. More... | |
| virtual int | cmdConfigPin (int id, char dir) |
| Command to configure direction of an I/O pin. More... | |
| virtual int | cmdSetAlarmLED (int val) |
| Command to set Alarm LED. More... | |
| virtual int | cmdSetStatusLED (int val) |
| Command to set Status LED. More... | |
| virtual int | cmdSetHaltingState () |
| Command to set monitoring state to halting. More... | |
Protected Member Functions | |
| byte_t | readIOExp (byte_t byCmd) |
| Read I/O expander byte. More... | |
| byte_t | readIOExpPort0 () |
| Read I/O expander port 0. More... | |
| byte_t | readIOExpPort1 () |
| Read I/O expander port 1. More... | |
| int | writeIOExp (byte_t byCmd, byte_t byVal) |
| Write byte to I/O expander. More... | |
Protected Attributes | |
| i2c_struct | m_i2c |
| i2c bus | |
Definition at line 67 of file hekSysBoard.h.
|
virtual |
Close all interfaces to monitoring hardware.
Definition at line 122 of file hekSysBoard.cxx.
Referenced by ~HekSysBoard().
|
virtual |
Command to configure direction of an I/O pin.
| id | Pin identifier. |
| dir | Pin direction 'i' or 'o'. |
Definition at line 254 of file hekSysBoard.cxx.
Referenced by ~HekSysBoard().
|
virtual |
Command to read auxilliary bit state.
Auxillary bits are usually End Effector GPIO, but allows room for additional bits.
Definition at line 162 of file hekSysBoard.cxx.
Referenced by ~HekSysBoard().
|
virtual |
Command to read firmware version.
param [out] ver Version number.
Definition at line 139 of file hekSysBoard.cxx.
Referenced by ~HekSysBoard().
|
virtual |
Command to read limit bit state.
Definition at line 146 of file hekSysBoard.cxx.
Referenced by ~HekSysBoard().
|
virtual |
Command to read one I/O pin.
| id | Pin identifier. |
Definition at line 178 of file hekSysBoard.cxx.
Referenced by ~HekSysBoard().
|
virtual |
Command to set Alarm LED.
| val | LED 0==off or 1==on value. |
Definition at line 260 of file hekSysBoard.cxx.
Referenced by ~HekSysBoard().
|
virtual |
Command to set monitoring state to halting.
Definition at line 272 of file hekSysBoard.cxx.
Referenced by ~HekSysBoard().
|
virtual |
Command to set Status LED.
| val | LED 0==off or 1==on value. |
Definition at line 266 of file hekSysBoard.cxx.
Referenced by ~HekSysBoard().
|
virtual |
Command to write value to an I/O pin.
| id | Pin identifier. |
| val | Pin state 0 or 1. |
Definition at line 214 of file hekSysBoard.cxx.
Referenced by ~HekSysBoard().
|
virtual |
Open all interfaces monitoring hardware.
< off hekateros target
| dev | I2C device. |
Definition at line 72 of file hekSysBoard.cxx.
Referenced by ~HekSysBoard().
|
protected |
Read I/O expander byte.
| byCmd | I/O expander command. |
Definition at line 278 of file hekSysBoard.cxx.
Referenced by readIOExpPort0(), and readIOExpPort1().
|
inlineprotected |
Read I/O expander port 0.
All optical limit switches are tied to port 0.
Definition at line 210 of file hekSysBoard.h.
References hekateros::HekIOExpCmdInput0, and readIOExp().
|
inlineprotected |
Read I/O expander port 1.
All end effector i/o are tied to port 1.
Definition at line 222 of file hekSysBoard.h.
References hekateros::HekIOExpCmdInput1, readIOExp(), and writeIOExp().
|
virtual |
Scan and initialize hardware.
Definition at line 134 of file hekSysBoard.cxx.
Referenced by ~HekSysBoard().
|
protected |
Write byte to I/O expander.
| byCmd | I/O expander command. |
| Byte | value. |
Definition at line 293 of file hekSysBoard.cxx.
Referenced by readIOExpPort1().