|
|
#include <RobotAPI/drivers/XsensIMU/IMU/Xsens/XsensMTiModule.h>
Public Member Functions | |
| void | calcChecksum (unsigned char *msgBuffer, const int msgBufferLength) |
| bool | checkChecksum (const unsigned char *msgBuffer, const int msgBufferLength) |
| clock_t | clockms () |
| short | close () |
| CXsensMTiModule () | |
| void | escape (unsigned long function) |
| void | flush () |
| short | getDeviceMode (unsigned short *numDevices=NULL) |
| short | getFileSize (unsigned long &fileSize) |
| short | getLastDeviceError () |
| short | getLastRetVal () |
| short | getMode (unsigned long &OutputMode, unsigned long &OutputSettings, unsigned short &dataLength, const unsigned char bid=BID_MASTER) |
| short | getValue (const unsigned long valueSpec, float value[], const unsigned char data[], const unsigned char bid=BID_MT) |
| short | getValue (const unsigned long valueSpec, unsigned short &value, const unsigned char data[], const unsigned char bid=BID_MT) |
| short | getValue (const unsigned long valueSpec, unsigned short value[], const unsigned char data[], const unsigned char bid=BID_MT) |
| bool | isFileOpen () |
| bool | isPortOpen () |
| short | openFile (const char *fileName, bool createAlways=false) |
| short | openPort (const char *portName, const unsigned long baudrate=PBR_115K2, const unsigned long inqueueSize=4096, const unsigned long outqueueSize=1024) |
| short | openPort (const int portNumber, const unsigned long baudrate=PBR_115K2, const unsigned long inqueueSize=4096, const unsigned long outqueueSize=1024) |
| int | readData (unsigned char *msgBuffer, const int nBytesToRead) |
| short | readDataMessage (unsigned char data[], short &dataLen) |
| short | readMessage (unsigned char &mid, unsigned char data[], short &dataLen, unsigned char *bid=NULL) |
| short | readMessageRaw (unsigned char *msgBuffer, short *msgBufferLength) |
| short | reqSetting (const unsigned char mid, const unsigned char param, float &value, const unsigned char bid=BID_MASTER) |
| short | reqSetting (const unsigned char mid, const unsigned char param, unsigned char data[], short &dataLen, const unsigned char bid=BID_MASTER) |
| short | reqSetting (const unsigned char mid, const unsigned char param, unsigned long &value, const unsigned char bid=BID_MASTER) |
| short | reqSetting (const unsigned char mid, float &value, const unsigned char bid=BID_MASTER) |
| short | reqSetting (const unsigned char mid, unsigned char data[], short &dataLen, const unsigned char bid=BID_MASTER) |
| short | reqSetting (const unsigned char mid, unsigned char dataIn[], short dataInLen, unsigned char dataOut[], short &dataOutLen, const unsigned char bid=BID_MASTER) |
| short | reqSetting (const unsigned char mid, unsigned long &value, const unsigned char bid=BID_MASTER) |
| short | setDeviceMode (unsigned long OutputMode, unsigned long OutputSettings, const unsigned char bid=BID_MASTER) |
| short | setFilePos (long relPos, unsigned long moveMethod=FILEPOS_BEGIN) |
| short | setMode (unsigned long OutputMode, unsigned long OutputSettings, const unsigned char bid=BID_MASTER) |
| void | setPortQueueSize (const unsigned long inqueueSize=4096, const unsigned long outqueueSize=1024) |
| short | setSetting (const unsigned char mid, const float value, const unsigned char bid=BID_MASTER) |
| short | setSetting (const unsigned char mid, const unsigned char param, const float value, const bool store, const unsigned char bid=BID_MASTER) |
| short | setSetting (const unsigned char mid, const unsigned char param, const float value, const unsigned char bid=BID_MASTER) |
| short | setSetting (const unsigned char mid, const unsigned char param, const unsigned long value, const unsigned short valuelen, const unsigned char bid=BID_MASTER) |
| short | setSetting (const unsigned char mid, const unsigned long value, const unsigned short valuelen, const unsigned char bid=BID_MASTER) |
| short | setTimeOut (short timeOutMs) |
| short | waitForMessage (const unsigned char mid, unsigned char data[]=NULL, short *dataLen=NULL, unsigned char *bid=NULL) |
| int | writeData (const unsigned char *msgBuffer, const int nBytesToWrite) |
| short | writeMessage (const unsigned char mid, const unsigned char data[], const unsigned short &dataLen, const unsigned char bid=BID_MASTER) |
| short | writeMessage (const unsigned char mid, const unsigned long dataValue=0, const unsigned char dataValueLen=0, const unsigned char bid=BID_MASTER) |
| virtual | ~CXsensMTiModule () |
Static Public Member Functions | |
| static void | swapEndian (const unsigned char input[], unsigned char output[], const int length) |
Protected Attributes | |
| clock_t | m_clkEnd |
| short | m_deviceError |
| bool | m_fileOpen |
| int | m_handle |
| int | m_nTempBufferLen |
| bool | m_portOpen |
| short | m_retVal |
| unsigned long | m_storedDataLength [MAXDEVICES+1] |
| unsigned long | m_storedOutputMode [MAXDEVICES+1] |
| unsigned long | m_storedOutputSettings [MAXDEVICES+1] |
| unsigned char | m_tempBuffer [MAXMSGLEN] |
| short | m_timeOut |
Definition at line 927 of file XsensMTiModule.h.
| CXsensMTiModule | ( | ) |
Definition at line 130 of file XsensMTiModule.cpp.
|
virtual |
| void calcChecksum | ( | unsigned char * | msgBuffer, |
| const int | msgBufferLength | ||
| ) |
| bool checkChecksum | ( | const unsigned char * | msgBuffer, |
| const int | msgBufferLength | ||
| ) |
Definition at line 3332 of file XsensMTiModule.cpp.
| clock_t clockms | ( | ) |
| short close | ( | ) |
Definition at line 840 of file XsensMTiModule.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void escape | ( | unsigned long | function | ) |
Definition at line 724 of file XsensMTiModule.cpp.
| void flush | ( | ) |
| short getDeviceMode | ( | unsigned short * | numDevices = NULL | ) |
| short getFileSize | ( | unsigned long & | fileSize | ) |
Definition at line 805 of file XsensMTiModule.cpp.
| short getLastDeviceError | ( | ) |
Definition at line 3219 of file XsensMTiModule.cpp.
| short getLastRetVal | ( | ) |
| short getMode | ( | unsigned long & | OutputMode, |
| unsigned long & | OutputSettings, | ||
| unsigned short & | dataLength, | ||
| const unsigned char | bid = BID_MASTER |
||
| ) |
Definition at line 2712 of file XsensMTiModule.cpp.
| short getValue | ( | const unsigned long | valueSpec, |
| unsigned short & | value, | ||
| const unsigned char | data[], | ||
| const unsigned char | bid = BID_MT |
||
| ) |
Definition at line 2859 of file XsensMTiModule.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| short getValue | ( | const unsigned long | valueSpec, |
| unsigned short | value[], | ||
| const unsigned char | data[], | ||
| const unsigned char | bid = BID_MT |
||
| ) |
| bool isFileOpen | ( | ) |
Definition at line 565 of file XsensMTiModule.cpp.
| bool isPortOpen | ( | ) |
Definition at line 554 of file XsensMTiModule.cpp.
| short openFile | ( | const char * | fileName, |
| bool | createAlways = false |
||
| ) |
Definition at line 502 of file XsensMTiModule.cpp.
| short openPort | ( | const char * | portName, |
| const unsigned long | baudrate = PBR_115K2, |
||
| const unsigned long | inqueueSize = 4096, |
||
| const unsigned long | outqueueSize = 1024 |
||
| ) |
Definition at line 353 of file XsensMTiModule.cpp.
| short openPort | ( | const int | portNumber, |
| const unsigned long | baudrate = PBR_115K2, |
||
| const unsigned long | inqueueSize = 4096, |
||
| const unsigned long | outqueueSize = 1024 |
||
| ) |
Definition at line 199 of file XsensMTiModule.cpp.
| int readData | ( | unsigned char * | msgBuffer, |
| const int | nBytesToRead | ||
| ) |
Definition at line 583 of file XsensMTiModule.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| short readDataMessage | ( | unsigned char | data[], |
| short & | dataLen | ||
| ) |
Definition at line 946 of file XsensMTiModule.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| short readMessage | ( | unsigned char & | mid, |
| unsigned char | data[], | ||
| short & | dataLen, | ||
| unsigned char * | bid = NULL |
||
| ) |
Definition at line 893 of file XsensMTiModule.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| short readMessageRaw | ( | unsigned char * | msgBuffer, |
| short * | msgBufferLength | ||
| ) |
Definition at line 999 of file XsensMTiModule.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| short reqSetting | ( | const unsigned char | mid, |
| const unsigned char | param, | ||
| float & | value, | ||
| const unsigned char | bid = BID_MASTER |
||
| ) |
| short reqSetting | ( | const unsigned char | mid, |
| const unsigned char | param, | ||
| unsigned char | data[], | ||
| short & | dataLen, | ||
| const unsigned char | bid = BID_MASTER |
||
| ) |
| short reqSetting | ( | const unsigned char | mid, |
| const unsigned char | param, | ||
| unsigned long & | value, | ||
| const unsigned char | bid = BID_MASTER |
||
| ) |
| short reqSetting | ( | const unsigned char | mid, |
| float & | value, | ||
| const unsigned char | bid = BID_MASTER |
||
| ) |
| short reqSetting | ( | const unsigned char | mid, |
| unsigned char | data[], | ||
| short & | dataLen, | ||
| const unsigned char | bid = BID_MASTER |
||
| ) |
| short reqSetting | ( | const unsigned char | mid, |
| unsigned char | dataIn[], | ||
| short | dataInLen, | ||
| unsigned char | dataOut[], | ||
| short & | dataOutLen, | ||
| const unsigned char | bid = BID_MASTER |
||
| ) |
| short reqSetting | ( | const unsigned char | mid, |
| unsigned long & | value, | ||
| const unsigned char | bid = BID_MASTER |
||
| ) |
Definition at line 1524 of file XsensMTiModule.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| short setDeviceMode | ( | unsigned long | OutputMode, |
| unsigned long | OutputSettings, | ||
| const unsigned char | bid = BID_MASTER |
||
| ) |
| short setFilePos | ( | long | relPos, |
| unsigned long | moveMethod = FILEPOS_BEGIN |
||
| ) |
| short setMode | ( | unsigned long | OutputMode, |
| unsigned long | OutputSettings, | ||
| const unsigned char | bid = BID_MASTER |
||
| ) |
Definition at line 2739 of file XsensMTiModule.cpp.
| void setPortQueueSize | ( | const unsigned long | inqueueSize = 4096, |
| const unsigned long | outqueueSize = 1024 |
||
| ) |
Definition at line 738 of file XsensMTiModule.cpp.
| short setSetting | ( | const unsigned char | mid, |
| const float | value, | ||
| const unsigned char | bid = BID_MASTER |
||
| ) |
| short setSetting | ( | const unsigned char | mid, |
| const unsigned char | param, | ||
| const float | value, | ||
| const bool | store, | ||
| const unsigned char | bid = BID_MASTER |
||
| ) |
| short setSetting | ( | const unsigned char | mid, |
| const unsigned char | param, | ||
| const float | value, | ||
| const unsigned char | bid = BID_MASTER |
||
| ) |
| short setSetting | ( | const unsigned char | mid, |
| const unsigned char | param, | ||
| const unsigned long | value, | ||
| const unsigned short | valuelen, | ||
| const unsigned char | bid = BID_MASTER |
||
| ) |
| short setSetting | ( | const unsigned char | mid, |
| const unsigned long | value, | ||
| const unsigned short | valuelen, | ||
| const unsigned char | bid = BID_MASTER |
||
| ) |
Definition at line 2120 of file XsensMTiModule.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| short setTimeOut | ( | short | timeOutMs | ) |
Definition at line 3246 of file XsensMTiModule.cpp.
|
static |
| short waitForMessage | ( | const unsigned char | mid, |
| unsigned char | data[] = NULL, |
||
| short * | dataLen = NULL, |
||
| unsigned char * | bid = NULL |
||
| ) |
| int writeData | ( | const unsigned char * | msgBuffer, |
| const int | nBytesToWrite | ||
| ) |
Definition at line 674 of file XsensMTiModule.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| short writeMessage | ( | const unsigned char | mid, |
| const unsigned char | data[], | ||
| const unsigned short & | dataLen, | ||
| const unsigned char | bid = BID_MASTER |
||
| ) |
| short writeMessage | ( | const unsigned char | mid, |
| const unsigned long | dataValue = 0, |
||
| const unsigned char | dataValueLen = 0, |
||
| const unsigned char | bid = BID_MASTER |
||
| ) |
|
protected |
Definition at line 1074 of file XsensMTiModule.h.
|
protected |
Definition at line 1071 of file XsensMTiModule.h.
|
protected |
Definition at line 1070 of file XsensMTiModule.h.
|
protected |
Definition at line 1067 of file XsensMTiModule.h.
|
protected |
Definition at line 1083 of file XsensMTiModule.h.
|
protected |
Definition at line 1069 of file XsensMTiModule.h.
|
protected |
Definition at line 1072 of file XsensMTiModule.h.
|
protected |
Definition at line 1079 of file XsensMTiModule.h.
|
protected |
Definition at line 1077 of file XsensMTiModule.h.
|
protected |
Definition at line 1078 of file XsensMTiModule.h.
|
protected |
Definition at line 1082 of file XsensMTiModule.h.
|
protected |
Definition at line 1073 of file XsensMTiModule.h.