#include <RelayBoard_v2.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 RelayBoard_v2.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 RelayBoard_v2.h.
Definition at line 51 of file RelayBoard_v2.cpp.
Definition at line 95 of file RelayBoard_v2.cpp.
int RelayBoardV2::convDataToSendMsg | ( | unsigned char | cMsg[] | ) |
Definition at line 959 of file RelayBoard_v2.cpp.
void RelayBoardV2::convRecMsgToData | ( | unsigned char | cMsg[] | ) |
Definition at line 795 of file RelayBoard_v2.cpp.
void RelayBoardV2::disable_logging | ( | ) |
Definition at line 757 of file RelayBoard_v2.cpp.
void RelayBoardV2::enable_logging | ( | ) |
Definition at line 752 of file RelayBoard_v2.cpp.
int RelayBoardV2::evalRxBuffer | ( | ) |
Definition at line 100 of file RelayBoard_v2.cpp.
void RelayBoardV2::getBattVoltage | ( | int * | battvolt | ) |
Definition at line 571 of file RelayBoard_v2.cpp.
void RelayBoardV2::getChargingCurrent | ( | int * | current | ) |
Definition at line 580 of file RelayBoard_v2.cpp.
void RelayBoardV2::getChargingState | ( | int * | state | ) |
Definition at line 589 of file RelayBoard_v2.cpp.
void RelayBoardV2::getIOBoardAnalogIn | ( | int * | iAnalogIn | ) |
Definition at line 676 of file RelayBoard_v2.cpp.
void RelayBoardV2::getIOBoardDigIn | ( | int * | DigIn | ) |
Definition at line 645 of file RelayBoard_v2.cpp.
void RelayBoardV2::getIOBoardDigOut | ( | int * | DigOut | ) |
Definition at line 652 of file RelayBoard_v2.cpp.
void RelayBoardV2::getKeyPad | ( | int * | keypad | ) |
Definition at line 620 of file RelayBoard_v2.cpp.
void RelayBoardV2::getMotorEnc | ( | int | imotor_nr, |
long * | lmotorEnc | ||
) |
Definition at line 474 of file RelayBoard_v2.cpp.
void RelayBoardV2::getMotorEncS | ( | int | imotor_nr, |
long * | lmotorEncS | ||
) |
Definition at line 484 of file RelayBoard_v2.cpp.
void RelayBoardV2::getMotorState | ( | int | imotor_nr, |
int * | lmotorStatus | ||
) |
Definition at line 493 of file RelayBoard_v2.cpp.
void RelayBoardV2::getRelayBoardDigOut | ( | int * | DigOut | ) |
Definition at line 511 of file RelayBoard_v2.cpp.
void RelayBoardV2::getRelayBoardState | ( | int * | State | ) |
Definition at line 504 of file RelayBoard_v2.cpp.
void RelayBoardV2::getTemperature | ( | int * | temp | ) |
Definition at line 562 of file RelayBoard_v2.cpp.
void RelayBoardV2::getUSBoardAnalogIn | ( | int * | piAnalogIn | ) |
Definition at line 736 of file RelayBoard_v2.cpp.
void RelayBoardV2::getUSBoardData1To8 | ( | int * | piUSDistMM | ) |
Definition at line 708 of file RelayBoard_v2.cpp.
void RelayBoardV2::getUSBoardData9To16 | ( | int * | piUSDistMM | ) |
Definition at line 722 of file RelayBoard_v2.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 RelayBoard_v2.cpp.
bool RelayBoardV2::isEMStop | ( | ) |
Definition at line 396 of file RelayBoard_v2.cpp.
bool RelayBoardV2::isScannerStop | ( | ) |
Definition at line 421 of file RelayBoard_v2.cpp.
void RelayBoardV2::log_to_file | ( | int | direction, |
unsigned char | cMsg[] | ||
) |
Definition at line 762 of file RelayBoard_v2.cpp.
int RelayBoardV2::openSerial | ( | const char * | device, |
int | baudrate | ||
) |
void RelayBoardV2::resetEMStop | ( | ) |
Definition at line 415 of file RelayBoard_v2.cpp.
Definition at line 433 of file RelayBoard_v2.cpp.
void RelayBoardV2::setEMStop | ( | ) |
Definition at line 408 of file RelayBoard_v2.cpp.
void RelayBoardV2::setIOBoardDigOut | ( | int | iChannel, |
bool | bVal | ||
) |
Definition at line 659 of file RelayBoard_v2.cpp.
void RelayBoardV2::setMotorDesiredEncS | ( | int | motor_nr, |
long | dVel | ||
) |
Definition at line 465 of file RelayBoard_v2.cpp.
void RelayBoardV2::setRelayBoardDigOut | ( | int | iChannel, |
bool | bOn | ||
) |
Definition at line 518 of file RelayBoard_v2.cpp.
bool RelayBoardV2::shutdownPltf | ( | ) |
Definition at line 390 of file RelayBoard_v2.cpp.
void RelayBoardV2::startCharging | ( | ) |
Definition at line 627 of file RelayBoard_v2.cpp.
void RelayBoardV2::startUSBoard | ( | int | iChannelActive | ) |
Definition at line 692 of file RelayBoard_v2.cpp.
void RelayBoardV2::stopCharging | ( | ) |
Definition at line 635 of file RelayBoard_v2.cpp.
void RelayBoardV2::stopUSBoard | ( | ) |
Definition at line 700 of file RelayBoard_v2.cpp.
void RelayBoardV2::writeLCD | ( | const std::string & | sText | ) |
Definition at line 598 of file RelayBoard_v2.cpp.
bool RelayBoardV2::m_blogging [private] |
Definition at line 212 of file RelayBoard_v2.h.
int RelayBoardV2::m_iChargeState [private] |
Definition at line 165 of file RelayBoard_v2.h.
int RelayBoardV2::m_iConfigured [private] |
Definition at line 155 of file RelayBoard_v2.h.
int RelayBoardV2::m_iFoundExtHardware [private] |
Definition at line 154 of file RelayBoard_v2.h.
int RelayBoardV2::m_iFoundMotors [private] |
Definition at line 152 of file RelayBoard_v2.h.
int RelayBoardV2::m_ihas_LCD_DATA [private] |
Definition at line 161 of file RelayBoard_v2.h.
int RelayBoardV2::m_iHasIOBoard [private] |
Definition at line 162 of file RelayBoard_v2.h.
int RelayBoardV2::m_ihasRelayData [private] |
Definition at line 160 of file RelayBoard_v2.h.
int RelayBoardV2::m_iHasSpeakerData [private] |
Definition at line 164 of file RelayBoard_v2.h.
int RelayBoardV2::m_iHasUSBoard [private] |
Definition at line 163 of file RelayBoard_v2.h.
int RelayBoardV2::m_iHomedMotors [private] |
Definition at line 153 of file RelayBoard_v2.h.
int RelayBoardV2::m_iNumBytesRec [private] |
Definition at line 156 of file RelayBoard_v2.h.
int RelayBoardV2::m_iNumBytesSend [private] |
Definition at line 157 of file RelayBoard_v2.h.
Motor RelayBoardV2::m_Motor[8] [private] |
Definition at line 175 of file RelayBoard_v2.h.
Mutex RelayBoardV2::m_Mutex [private] |
Definition at line 149 of file RelayBoard_v2.h.
Recived_MSG RelayBoardV2::m_REC_MSG [private] |
Definition at line 210 of file RelayBoard_v2.h.
Send_MSG RelayBoardV2::m_S_MSG [private] |
Definition at line 187 of file RelayBoard_v2.h.
SerialIO RelayBoardV2::m_SerIO [private] |
Definition at line 147 of file RelayBoard_v2.h.