#include <RelayBoardV2.h>
Classes | |
| struct | Motor |
| struct | Recived_MSG |
| struct | Send_MSG |
Public Types | |
| enum | RelBoardReturns { NO_ERROR = 0, NOT_INITIALIZED = 1, GENERAL_SENDING_ERROR = 2, TOO_LESS_BYTES_IN_QUEUE = 3, NO_MESSAGES = 4, CHECKSUM_ERROR = 5, MSG_CONFIG = 6, MSG_DATA = 7 } |
Public Member Functions | |
| int | convDataToSendMsg (unsigned char cMsg[]) |
| void | convRecMsgToData (unsigned char cMsg[]) |
| void | disable_logging () |
| void | enable_logging () |
| int | evalRxBuffer () |
| void | getBattVoltage (int *battvolt) |
| void | getChargingCurrent (int *current) |
| void | getChargingState (int *state) |
| void | getIOBoardAnalogIn (int *iAnalogIn) |
| void | getIOBoardDigIn (int *DigIn) |
| void | getIOBoardDigOut (int *DigOut) |
| void | getKeyPad (int *keypad) |
| void | getMotorEnc (int imotor_nr, long *lmotorEnc) |
| void | getMotorEncS (int imotor_nr, long *lmotorEncS) |
| void | getMotorState (int imotor_nr, int *lmotorStatus) |
| void | getRelayBoardDigOut (int *DigOut) |
| void | getRelayBoardState (int *State) |
| void | getTemperature (int *temp) |
| void | getUSBoardAnalogIn (int *piAnalogIn) |
| void | getUSBoardData1To8 (int *piUSDistMM) |
| void | getUSBoardData9To16 (int *piUSDistMM) |
| int | init (const char *device_name, int iactive_motors, int ihoming_motors, int iext_hardware, long lModulo0, long lModulo1, long lModulo2, long lModulo3, long lModulo4, long lModulo5, long lModulo6, long lModulo7) |
| bool | isEMStop () |
| bool | isScannerStop () |
| void | log_to_file (int direction, unsigned char cMsg[]) |
| int | openSerial (const char *device, int baudrate) |
| RelayBoardV2 () | |
| void | resetEMStop () |
| int | sendDataToRelayBoard () |
| void | setEMStop () |
| void | setIOBoardDigOut (int iChannel, bool bVal) |
| void | setMotorDesiredEncS (int motor_nr, long dVel) |
| void | setRelayBoardDigOut (int iChannel, bool bOn) |
| bool | shutdownPltf () |
| void | startCharging () |
| void | startUSBoard (int iChannelActive) |
| void | stopCharging () |
| void | stopUSBoard () |
| void | writeLCD (const std::string &sText) |
| ~RelayBoardV2 () | |
Private Attributes | |
| bool | m_blogging |
| int | m_iChargeState |
| int | m_iConfigured |
| int | m_iFoundExtHardware |
| int | m_iFoundMotors |
| int | m_ihas_LCD_DATA |
| int | m_iHasIOBoard |
| int | m_ihasRelayData |
| int | m_iHasSpeakerData |
| int | m_iHasUSBoard |
| int | m_iHomedMotors |
| int | m_iNumBytesRec |
| int | m_iNumBytesSend |
| Motor | m_Motor [8] |
| Mutex | m_Mutex |
| Recived_MSG | m_REC_MSG |
| Send_MSG | m_S_MSG |
| SerialIO | m_SerIO |
Message handler class for communication with a Neobotix RelayBoardV2.
Definition at line 57 of file RelayBoardV2.h.
| NO_ERROR | |
| NOT_INITIALIZED | |
| GENERAL_SENDING_ERROR | |
| TOO_LESS_BYTES_IN_QUEUE | |
| NO_MESSAGES | |
| CHECKSUM_ERROR | |
| MSG_CONFIG | |
| MSG_DATA |
Definition at line 134 of file RelayBoardV2.h.
Definition at line 51 of file RelayBoardV2.cpp.
Definition at line 95 of file RelayBoardV2.cpp.
| int RelayBoardV2::convDataToSendMsg | ( | unsigned char | cMsg[] | ) |
Definition at line 957 of file RelayBoardV2.cpp.
| void RelayBoardV2::convRecMsgToData | ( | unsigned char | cMsg[] | ) |
Definition at line 793 of file RelayBoardV2.cpp.
| void RelayBoardV2::disable_logging | ( | ) |
Definition at line 755 of file RelayBoardV2.cpp.
| void RelayBoardV2::enable_logging | ( | ) |
Definition at line 750 of file RelayBoardV2.cpp.
| int RelayBoardV2::evalRxBuffer | ( | ) |
Definition at line 100 of file RelayBoardV2.cpp.
| void RelayBoardV2::getBattVoltage | ( | int * | battvolt | ) |
Definition at line 569 of file RelayBoardV2.cpp.
| void RelayBoardV2::getChargingCurrent | ( | int * | current | ) |
Definition at line 578 of file RelayBoardV2.cpp.
| void RelayBoardV2::getChargingState | ( | int * | state | ) |
Definition at line 587 of file RelayBoardV2.cpp.
| void RelayBoardV2::getIOBoardAnalogIn | ( | int * | iAnalogIn | ) |
Definition at line 674 of file RelayBoardV2.cpp.
| void RelayBoardV2::getIOBoardDigIn | ( | int * | DigIn | ) |
Definition at line 643 of file RelayBoardV2.cpp.
| void RelayBoardV2::getIOBoardDigOut | ( | int * | DigOut | ) |
Definition at line 650 of file RelayBoardV2.cpp.
| void RelayBoardV2::getKeyPad | ( | int * | keypad | ) |
Definition at line 618 of file RelayBoardV2.cpp.
| void RelayBoardV2::getMotorEnc | ( | int | imotor_nr, |
| long * | lmotorEnc | ||
| ) |
Definition at line 472 of file RelayBoardV2.cpp.
| void RelayBoardV2::getMotorEncS | ( | int | imotor_nr, |
| long * | lmotorEncS | ||
| ) |
Definition at line 482 of file RelayBoardV2.cpp.
| void RelayBoardV2::getMotorState | ( | int | imotor_nr, |
| int * | lmotorStatus | ||
| ) |
Definition at line 491 of file RelayBoardV2.cpp.
| void RelayBoardV2::getRelayBoardDigOut | ( | int * | DigOut | ) |
Definition at line 509 of file RelayBoardV2.cpp.
| void RelayBoardV2::getRelayBoardState | ( | int * | State | ) |
Definition at line 502 of file RelayBoardV2.cpp.
| void RelayBoardV2::getTemperature | ( | int * | temp | ) |
Definition at line 560 of file RelayBoardV2.cpp.
| void RelayBoardV2::getUSBoardAnalogIn | ( | int * | piAnalogIn | ) |
Definition at line 734 of file RelayBoardV2.cpp.
| void RelayBoardV2::getUSBoardData1To8 | ( | int * | piUSDistMM | ) |
Definition at line 706 of file RelayBoardV2.cpp.
| void RelayBoardV2::getUSBoardData9To16 | ( | int * | piUSDistMM | ) |
Definition at line 720 of file RelayBoardV2.cpp.
| int RelayBoardV2::init | ( | const char * | device_name, |
| int | iactive_motors, | ||
| int | ihoming_motors, | ||
| int | iext_hardware, | ||
| long | lModulo0, | ||
| long | lModulo1, | ||
| long | lModulo2, | ||
| long | lModulo3, | ||
| long | lModulo4, | ||
| long | lModulo5, | ||
| long | lModulo6, | ||
| long | lModulo7 | ||
| ) |
Definition at line 244 of file RelayBoardV2.cpp.
| bool RelayBoardV2::isEMStop | ( | ) |
Definition at line 394 of file RelayBoardV2.cpp.
| bool RelayBoardV2::isScannerStop | ( | ) |
Definition at line 419 of file RelayBoardV2.cpp.
| void RelayBoardV2::log_to_file | ( | int | direction, |
| unsigned char | cMsg[] | ||
| ) |
Definition at line 760 of file RelayBoardV2.cpp.
| int RelayBoardV2::openSerial | ( | const char * | device, |
| int | baudrate | ||
| ) |
| void RelayBoardV2::resetEMStop | ( | ) |
Definition at line 413 of file RelayBoardV2.cpp.
Definition at line 431 of file RelayBoardV2.cpp.
| void RelayBoardV2::setEMStop | ( | ) |
Definition at line 406 of file RelayBoardV2.cpp.
| void RelayBoardV2::setIOBoardDigOut | ( | int | iChannel, |
| bool | bVal | ||
| ) |
Definition at line 657 of file RelayBoardV2.cpp.
| void RelayBoardV2::setMotorDesiredEncS | ( | int | motor_nr, |
| long | dVel | ||
| ) |
Definition at line 463 of file RelayBoardV2.cpp.
| void RelayBoardV2::setRelayBoardDigOut | ( | int | iChannel, |
| bool | bOn | ||
| ) |
Definition at line 516 of file RelayBoardV2.cpp.
| bool RelayBoardV2::shutdownPltf | ( | ) |
Definition at line 388 of file RelayBoardV2.cpp.
| void RelayBoardV2::startCharging | ( | ) |
Definition at line 625 of file RelayBoardV2.cpp.
| void RelayBoardV2::startUSBoard | ( | int | iChannelActive | ) |
Definition at line 690 of file RelayBoardV2.cpp.
| void RelayBoardV2::stopCharging | ( | ) |
Definition at line 633 of file RelayBoardV2.cpp.
| void RelayBoardV2::stopUSBoard | ( | ) |
Definition at line 698 of file RelayBoardV2.cpp.
| void RelayBoardV2::writeLCD | ( | const std::string & | sText | ) |
Definition at line 596 of file RelayBoardV2.cpp.
bool RelayBoardV2::m_blogging [private] |
Definition at line 212 of file RelayBoardV2.h.
int RelayBoardV2::m_iChargeState [private] |
Definition at line 165 of file RelayBoardV2.h.
int RelayBoardV2::m_iConfigured [private] |
Definition at line 155 of file RelayBoardV2.h.
int RelayBoardV2::m_iFoundExtHardware [private] |
Definition at line 154 of file RelayBoardV2.h.
int RelayBoardV2::m_iFoundMotors [private] |
Definition at line 152 of file RelayBoardV2.h.
int RelayBoardV2::m_ihas_LCD_DATA [private] |
Definition at line 161 of file RelayBoardV2.h.
int RelayBoardV2::m_iHasIOBoard [private] |
Definition at line 162 of file RelayBoardV2.h.
int RelayBoardV2::m_ihasRelayData [private] |
Definition at line 160 of file RelayBoardV2.h.
int RelayBoardV2::m_iHasSpeakerData [private] |
Definition at line 164 of file RelayBoardV2.h.
int RelayBoardV2::m_iHasUSBoard [private] |
Definition at line 163 of file RelayBoardV2.h.
int RelayBoardV2::m_iHomedMotors [private] |
Definition at line 153 of file RelayBoardV2.h.
int RelayBoardV2::m_iNumBytesRec [private] |
Definition at line 156 of file RelayBoardV2.h.
int RelayBoardV2::m_iNumBytesSend [private] |
Definition at line 157 of file RelayBoardV2.h.
Motor RelayBoardV2::m_Motor[8] [private] |
Definition at line 175 of file RelayBoardV2.h.
Mutex RelayBoardV2::m_Mutex [private] |
Definition at line 149 of file RelayBoardV2.h.
Recived_MSG RelayBoardV2::m_REC_MSG [private] |
Definition at line 210 of file RelayBoardV2.h.
Send_MSG RelayBoardV2::m_S_MSG [private] |
Definition at line 187 of file RelayBoardV2.h.
SerialIO RelayBoardV2::m_SerIO [private] |
Definition at line 147 of file RelayBoardV2.h.