|
#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 925 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 3165 of file XsensMTiModule.cpp.
clock_t clockms | ( | ) |
short close | ( | ) |
Definition at line 817 of file XsensMTiModule.cpp.
void escape | ( | unsigned long | function | ) |
Definition at line 706 of file XsensMTiModule.cpp.
void flush | ( | ) |
short getDeviceMode | ( | unsigned short * | numDevices = NULL | ) |
short getFileSize | ( | unsigned long & | fileSize | ) |
Definition at line 783 of file XsensMTiModule.cpp.
short getLastDeviceError | ( | ) |
Definition at line 3059 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 2606 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 2743 of file XsensMTiModule.cpp.
short getValue | ( | const unsigned long | valueSpec, |
unsigned short | value[], | ||
const unsigned char | data[], | ||
const unsigned char | bid = BID_MT |
||
) |
bool isFileOpen | ( | ) |
Definition at line 551 of file XsensMTiModule.cpp.
bool isPortOpen | ( | ) |
Definition at line 541 of file XsensMTiModule.cpp.
short openFile | ( | const char * | fileName, |
bool | createAlways = false |
||
) |
Definition at line 490 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 346 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 197 of file XsensMTiModule.cpp.
int readData | ( | unsigned char * | msgBuffer, |
const int | nBytesToRead | ||
) |
Definition at line 568 of file XsensMTiModule.cpp.
short readDataMessage | ( | unsigned char | data[], |
short & | dataLen | ||
) |
Definition at line 918 of file XsensMTiModule.cpp.
short readMessage | ( | unsigned char & | mid, |
unsigned char | data[], | ||
short & | dataLen, | ||
unsigned char * | bid = NULL |
||
) |
Definition at line 869 of file XsensMTiModule.cpp.
short readMessageRaw | ( | unsigned char * | msgBuffer, |
short * | msgBufferLength | ||
) |
Definition at line 970 of file XsensMTiModule.cpp.
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 1478 of file XsensMTiModule.cpp.
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 2629 of file XsensMTiModule.cpp.
void setPortQueueSize | ( | const unsigned long | inqueueSize = 4096 , |
const unsigned long | outqueueSize = 1024 |
||
) |
Definition at line 719 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 2047 of file XsensMTiModule.cpp.
short setTimeOut | ( | short | timeOutMs | ) |
Definition at line 3084 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 658 of file XsensMTiModule.cpp.
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 998 of file XsensMTiModule.h.
|
protected |
Definition at line 995 of file XsensMTiModule.h.
|
protected |
Definition at line 994 of file XsensMTiModule.h.
|
protected |
Definition at line 991 of file XsensMTiModule.h.
|
protected |
Definition at line 1007 of file XsensMTiModule.h.
|
protected |
Definition at line 993 of file XsensMTiModule.h.
|
protected |
Definition at line 996 of file XsensMTiModule.h.
|
protected |
Definition at line 1003 of file XsensMTiModule.h.
|
protected |
Definition at line 1001 of file XsensMTiModule.h.
|
protected |
Definition at line 1002 of file XsensMTiModule.h.
|
protected |
Definition at line 1006 of file XsensMTiModule.h.
|
protected |
Definition at line 997 of file XsensMTiModule.h.