|
|
#include <stdio.h>#include <string.h>#include <fcntl.h>#include <sys/stat.h>#include <sys/time.h>#include <termios.h>#include <unistd.h>#include "../Includes.h"Classes | |
| class | CXsensMTiModule |
Namespaces | |
| namespace | IMU |
| namespace | IMU::Xsens |
Macros | |
| #define | AMDSETTING_DISABLED 0x0000 |
| #define | AMDSETTING_ENABLED 0x0001 |
| #define | BAUDRATE_115K2 0x02 |
| #define | BAUDRATE_14K4 0x08 |
| #define | BAUDRATE_19K2 0x07 |
| #define | BAUDRATE_230K4 0x01 |
| #define | BAUDRATE_28K8 0x06 |
| #define | BAUDRATE_38K4 0x05 |
| #define | BAUDRATE_460K8 0x00 |
| #define | BAUDRATE_57K6 0x04 |
| #define | BAUDRATE_76K8 0x03 |
| #define | BAUDRATE_921K6 0x80 |
| #define | BAUDRATE_9K6 0x09 |
| #define | BID_MASTER (unsigned char)0xFF |
| #define | BID_MT (unsigned char)0x01 |
| #define | CONF_BLOCKLEN 20 |
| #define | CONF_DATALENGTH 102 |
| #define | CONF_DATALENGTHLEN 2 |
| #define | CONF_DATE 16 |
| #define | CONF_DATELEN 8 |
| #define | CONF_DID 98 |
| #define | CONF_DIDLEN 4 |
| #define | CONF_MASTERDID 0 |
| #define | CONF_MASTERDIDLEN 4 |
| #define | CONF_NUMDEVICES 96 |
| #define | CONF_NUMDEVICESLEN 2 |
| #define | CONF_OUTPUTMODE 104 |
| #define | CONF_OUTPUTMODELEN 2 |
| #define | CONF_OUTPUTSETTINGS 106 |
| #define | CONF_OUTPUTSETTINGSLEN 4 |
| #define | CONF_OUTPUTSKIPFACTOR 6 |
| #define | CONF_OUTPUTSKIPFACTORLEN 2 |
| #define | CONF_PERIOD 4 |
| #define | CONF_PERIODLEN 2 |
| #define | CONF_RESERVED_CLIENTLEN 32 |
| #define | CONF_RESERVED_HOSTLEN 32 |
| #define | CONF_SYNCIN_MODE 8 |
| #define | CONF_SYNCIN_MODELEN 2 |
| #define | CONF_SYNCIN_OFFSET 12 |
| #define | CONF_SYNCIN_OFFSETLEN 4 |
| #define | CONF_SYNCIN_SKIPFACTOR 10 |
| #define | CONF_SYNCIN_SKIPFACTORLEN 2 |
| #define | CONF_TIME 24 |
| #define | CONF_TIMELEN 8 |
| #define | DID_TYPEH_MASK (unsigned long)0x00F00000 |
| #define | DID_TYPEH_MT (unsigned long)0x00000000 |
| #define | DID_TYPEH_MTI_MTX (unsigned long)0x00300000 |
| #define | DID_TYPEH_XM (unsigned long)0x00100000 |
| #define | DONOTSTORE 0x00 |
| #define | ERROR_BAUDRATEINVALID 0x20 |
| #define | ERROR_BUSNOTREADY 0x02 |
| #define | ERROR_INITOFBUSFAILED1 0x10 |
| #define | ERROR_INITOFBUSFAILED2 0x11 |
| #define | ERROR_INITOFBUSFAILED3 0x12 |
| #define | ERROR_MEASUREMENTFAILED1 0x18 |
| #define | ERROR_MEASUREMENTFAILED2 0x19 |
| #define | ERROR_MEASUREMENTFAILED3 0x1A |
| #define | ERROR_MEASUREMENTFAILED4 0x1B |
| #define | ERROR_MEASUREMENTFAILED5 0x1C |
| #define | ERROR_MEASUREMENTFAILED6 0x1D |
| #define | ERROR_MEASUREMENTFAILED7 0x23 |
| #define | ERROR_MESSAGEINVALID 0x04 |
| #define | ERROR_NOBUSCOMM 0x01 |
| #define | ERROR_PARAMETERINVALID 0x21 |
| #define | ERROR_PERIODINVALID 0x03 |
| #define | ERROR_SETBIDPROCFAILED1 0x14 |
| #define | ERROR_SETBIDPROCFAILED2 0x15 |
| #define | ERROR_TIMEROVERFLOW 0x1E |
| #define | ERRORMODE_IGNORE 0x0000 |
| #define | ERRORMODE_INCSAMPLECNT 0x0001 |
| #define | ERRORMODE_INCSAMPLECNT_SENDERROR 0x0002 |
| #define | ERRORMODE_SENDERROR_GOTOCONFIG 0x0003 |
| #define | EXTLENCODE 0xFF |
| #define | EXTOUTPUTMODE_DISABLED 0x0000 |
| #define | EXTOUTPUTMODE_EULER 0x0001 |
| #define | FACTORYOUTPUTMODE_CUSTOM 0x0002 |
| #define | FACTORYOUTPUTMODE_DEFAULT 0x0001 |
| #define | FACTORYOUTPUTMODE_DISABLE 0x0000 |
| #define | FILEPOS_BEGIN SEEK_SET |
| #define | FILEPOS_CURRENT SEEK_CUR |
| #define | FILEPOS_END SEEK_END |
| #define | FLDNUM_CALIB_ACCX 0 |
| #define | FLDNUM_CALIB_ACCY 1 |
| #define | FLDNUM_CALIB_ACCZ 2 |
| #define | FLDNUM_CALIB_GYRX 3 |
| #define | FLDNUM_CALIB_GYRY 4 |
| #define | FLDNUM_CALIB_GYRZ 5 |
| #define | FLDNUM_CALIB_MAGX 6 |
| #define | FLDNUM_CALIB_MAGY 7 |
| #define | FLDNUM_CALIB_MAGZ 8 |
| #define | FLDNUM_ORIENT_A 0 |
| #define | FLDNUM_ORIENT_B 1 |
| #define | FLDNUM_ORIENT_C 2 |
| #define | FLDNUM_ORIENT_D 3 |
| #define | FLDNUM_ORIENT_E 4 |
| #define | FLDNUM_ORIENT_F 5 |
| #define | FLDNUM_ORIENT_G 6 |
| #define | FLDNUM_ORIENT_H 7 |
| #define | FLDNUM_ORIENT_I 8 |
| #define | FLDNUM_ORIENT_PITCH 1 |
| #define | FLDNUM_ORIENT_Q0 0 |
| #define | FLDNUM_ORIENT_Q1 1 |
| #define | FLDNUM_ORIENT_Q2 2 |
| #define | FLDNUM_ORIENT_Q3 3 |
| #define | FLDNUM_ORIENT_ROLL 0 |
| #define | FLDNUM_ORIENT_YAW 2 |
| #define | FLDNUM_RAW_ACCX 0 |
| #define | FLDNUM_RAW_ACCY 1 |
| #define | FLDNUM_RAW_ACCZ 2 |
| #define | FLDNUM_RAW_GYRX 3 |
| #define | FLDNUM_RAW_GYRY 4 |
| #define | FLDNUM_RAW_GYRZ 5 |
| #define | FLDNUM_RAW_MAGX 6 |
| #define | FLDNUM_RAW_MAGY 7 |
| #define | FLDNUM_RAW_MAGZ 8 |
| #define | FLDNUM_RAW_TEMP 9 |
| #define | IND_BID 1 |
| #define | IND_CALIB_ACCX 0 |
| #define | IND_CALIB_ACCY 4 |
| #define | IND_CALIB_ACCZ 8 |
| #define | IND_CALIB_GYRX 12 |
| #define | IND_CALIB_GYRY 16 |
| #define | IND_CALIB_GYRZ 20 |
| #define | IND_CALIB_MAGX 24 |
| #define | IND_CALIB_MAGY 28 |
| #define | IND_CALIB_MAGZ 32 |
| #define | IND_DATA0 4 |
| #define | IND_DATAEXT0 6 |
| #define | IND_LEN 3 |
| #define | IND_LENEXTH 4 |
| #define | IND_LENEXTL 5 |
| #define | IND_MID 2 |
| #define | IND_ORIENT_A 0 |
| #define | IND_ORIENT_B 4 |
| #define | IND_ORIENT_C 8 |
| #define | IND_ORIENT_D 12 |
| #define | IND_ORIENT_E 16 |
| #define | IND_ORIENT_F 20 |
| #define | IND_ORIENT_G 24 |
| #define | IND_ORIENT_H 28 |
| #define | IND_ORIENT_I 32 |
| #define | IND_ORIENT_PITCH 4 |
| #define | IND_ORIENT_Q0 0 |
| #define | IND_ORIENT_Q1 4 |
| #define | IND_ORIENT_Q2 8 |
| #define | IND_ORIENT_Q3 12 |
| #define | IND_ORIENT_ROLL 0 |
| #define | IND_ORIENT_YAW 8 |
| #define | IND_PREAMBLE 0 |
| #define | IND_RAW_ACCX 0 |
| #define | IND_RAW_ACCY 2 |
| #define | IND_RAW_ACCZ 4 |
| #define | IND_RAW_GYRX 6 |
| #define | IND_RAW_GYRY 8 |
| #define | IND_RAW_GYRZ 10 |
| #define | IND_RAW_MAGX 12 |
| #define | IND_RAW_MAGY 14 |
| #define | IND_RAW_MAGZ 16 |
| #define | IND_RAW_TEMP 18 |
| #define | IND_SAMPLECNTH 0 |
| #define | IND_SAMPLECNTL 1 |
| #define | INITTRACKMODE_DISABLED 0x0000 |
| #define | INITTRACKMODE_ENABLED 0x0001 |
| #define | INVALID_SET_FILE_POINTER ((DWORD)(-1)) |
| #define | INVALIDSETTINGVALUE 0xFFFFFFFF |
| #define | LEN_AMD (unsigned short)2 |
| #define | LEN_BAUDRATE (unsigned short)1 |
| #define | LEN_BUFFERSIZE (unsigned short)2 |
| #define | LEN_CALIB_ACCDATA (unsigned short)12 |
| #define | LEN_CALIB_ACCX 4 |
| #define | LEN_CALIB_ACCY 4 |
| #define | LEN_CALIB_ACCZ 4 |
| #define | LEN_CALIB_GYRDATA (unsigned short)12 |
| #define | LEN_CALIB_GYRX 4 |
| #define | LEN_CALIB_GYRY 4 |
| #define | LEN_CALIB_GYRZ 4 |
| #define | LEN_CALIB_MAGDATA (unsigned short)12 |
| #define | LEN_CALIB_MAGX 4 |
| #define | LEN_CALIB_MAGY 4 |
| #define | LEN_CALIB_MAGZ 4 |
| #define | LEN_CALIBDATA (unsigned short)36 |
| #define | LEN_CALIBDATA_FLT (unsigned short)9 |
| #define | LEN_CHECKSUM (unsigned short)1 |
| #define | LEN_CONFIGURATION (unsigned short)118 |
| #define | LEN_DATALENGTH (unsigned short)2 |
| #define | LEN_DEVICEID (unsigned short)4 |
| #define | LEN_ERROR (unsigned short)1 |
| #define | LEN_ERRORMODE (unsigned short)2 |
| #define | LEN_EXTOUTPUTMODE (unsigned short)2 |
| #define | LEN_FILTERSETTINGS (unsigned short)4 |
| #define | LEN_FIRMWAREREV (unsigned short)3 |
| #define | LEN_FLOAT (unsigned short)4 |
| #define | LEN_HEADING (unsigned short)4 |
| #define | LEN_INITBUSRESULTS (unsigned short)4 |
| #define | LEN_INITTRACKMODE (unsigned short)2 |
| #define | LEN_LOCATIONID (unsigned short)2 |
| #define | LEN_MSGEXTHEADER (unsigned short)6 |
| #define | LEN_MSGEXTHEADERCS (unsigned short)7 |
| #define | LEN_MSGHEADER (unsigned short)4 |
| #define | LEN_MSGHEADERCS (unsigned short)5 |
| #define | LEN_ORIENT_A 4 |
| #define | LEN_ORIENT_B 4 |
| #define | LEN_ORIENT_C 4 |
| #define | LEN_ORIENT_D 4 |
| #define | LEN_ORIENT_E 4 |
| #define | LEN_ORIENT_EULERDATA (unsigned short)12 |
| #define | LEN_ORIENT_EULERDATA_FLT (unsigned short)3 |
| #define | LEN_ORIENT_F 4 |
| #define | LEN_ORIENT_G 4 |
| #define | LEN_ORIENT_H 4 |
| #define | LEN_ORIENT_I 4 |
| #define | LEN_ORIENT_MATRIXDATA (unsigned short)36 |
| #define | LEN_ORIENT_MATRIXDATA_FLT (unsigned short)9 |
| #define | LEN_ORIENT_PITCH 4 |
| #define | LEN_ORIENT_Q0 4 |
| #define | LEN_ORIENT_Q1 4 |
| #define | LEN_ORIENT_Q2 4 |
| #define | LEN_ORIENT_Q3 4 |
| #define | LEN_ORIENT_QUATDATA (unsigned short)16 |
| #define | LEN_ORIENT_QUATDATA_FLT (unsigned short)4 |
| #define | LEN_ORIENT_ROLL 4 |
| #define | LEN_ORIENT_YAW 4 |
| #define | LEN_OUTPUTMODE (unsigned short)2 |
| #define | LEN_OUTPUTSETTINGS (unsigned short)4 |
| #define | LEN_OUTPUTSKIPFACTOR (unsigned short)2 |
| #define | LEN_PERIOD (unsigned short)2 |
| #define | LEN_RAW_ACCX 2 |
| #define | LEN_RAW_ACCY 2 |
| #define | LEN_RAW_ACCZ 2 |
| #define | LEN_RAW_GYRX 2 |
| #define | LEN_RAW_GYRY 2 |
| #define | LEN_RAW_GYRZ 2 |
| #define | LEN_RAW_MAGX 2 |
| #define | LEN_RAW_MAGY 2 |
| #define | LEN_RAW_MAGZ 2 |
| #define | LEN_RAW_TEMP 2 |
| #define | LEN_RAWDATA (unsigned short)20 |
| #define | LEN_RESETORIENTATION (unsigned short)2 |
| #define | LEN_SAMPLECNT (unsigned short)2 |
| #define | LEN_SYNCINMODE (unsigned short)2 |
| #define | LEN_SYNCINOFFSET (unsigned short)4 |
| #define | LEN_SYNCINSKIPFACTOR (unsigned short)2 |
| #define | LEN_SYNCOUTMODE (unsigned short)2 |
| #define | LEN_SYNCOUTOFFSET (unsigned short)4 |
| #define | LEN_SYNCOUTPULSEWIDTH (unsigned short)4 |
| #define | LEN_SYNCOUTSKIPFACTOR (unsigned short)2 |
| #define | LEN_TEMPDATA (unsigned short)4 |
| #define | LEN_TRANSMITDELAY (unsigned short)2 |
| #define | LEN_UNSIGINT (unsigned short)4 |
| #define | LEN_UNSIGSHORT (unsigned short)2 |
| #define | LEN_XMERRORMODE (unsigned short)2 |
| #define | MAXDATALEN (unsigned short)2048 |
| #define | MAXDEVICES 20 |
| #define | MAXMSGLEN (unsigned short)(MAXDATALEN + 7) |
| #define | MAXSHORTDATALEN (unsigned short)254 |
| #define | MAXSHORTMSGLEN (unsigned short)(MAXSHORTDATALEN + 5) |
| #define | MID_AUTOSTART (unsigned char)0x06 |
| #define | MID_AUTOSTARTACK (unsigned char)0x07 |
| #define | MID_BATLEVEL (unsigned char)0x89 |
| #define | MID_BUSDATA (unsigned char)0x32 |
| #define | MID_BUSPWROFF (unsigned char)0x08 |
| #define | MID_BUSPWROFFACK (unsigned char)0x09 |
| #define | MID_CONFIGURATION (unsigned char)0x0D |
| #define | MID_DATALENGTH (unsigned char)0x0B |
| #define | MID_DEVICEID (unsigned char)0x01 |
| #define | MID_DISABLEBT (unsigned char)0x14 |
| #define | MID_DISABLEBTACK (unsigned char)0x15 |
| #define | MID_ERROR (unsigned char)0x42 |
| #define | MID_FIRMWAREREV (unsigned char)0x13 |
| #define | MID_GOTOCONFIG (unsigned char)0x30 |
| #define | MID_GOTOCONFIGACK (unsigned char)0x31 |
| #define | MID_GOTOMEASUREMENT (unsigned char)0x10 |
| #define | MID_GOTOMEASUREMENTACK (unsigned char)0x11 |
| #define | MID_INITBUS (unsigned char)0x02 |
| #define | MID_INITBUSRESULTS (unsigned char)0x03 |
| #define | MID_MTDATA (unsigned char)0x32 |
| #define | MID_PREPAREDATA (unsigned char)0x32 |
| #define | MID_PRODUCTCODE (unsigned char)0x1D |
| #define | MID_REQAMD (unsigned char)0xA2 |
| #define | MID_REQAMDACK (unsigned char)0xA3 |
| #define | MID_REQBATLEVEL (unsigned char)0x88 |
| #define | MID_REQBAUDRATE (unsigned char)0x18 |
| #define | MID_REQBAUDRATEACK (unsigned char)0x19 |
| #define | MID_REQBTDISABLE (unsigned char)0x14 |
| #define | MID_REQBTDISABLEACK (unsigned char)0x15 |
| #define | MID_REQBUFFERSIZE (unsigned char)0x84 |
| #define | MID_REQBUFFERSIZEACK (unsigned char)0x85 |
| #define | MID_REQCONFIGURATION (unsigned char)0x0C |
| #define | MID_REQDATA (unsigned char)0x34 |
| #define | MID_REQDATAACK (unsigned char)0x35 |
| #define | MID_REQDATALENGTH (unsigned char)0x0A |
| #define | MID_REQDID (unsigned char)0x00 |
| #define | MID_REQERRORMODE (unsigned char)0xDA |
| #define | MID_REQERRORMODEACK (unsigned char)0xDB |
| #define | MID_REQEXTOUTPUTMODE (unsigned char)0x86 |
| #define | MID_REQEXTOUTPUTMODEACK (unsigned char)0x87 |
| #define | MID_REQFILTERSETTINGS (unsigned char)0xA0 |
| #define | MID_REQFILTERSETTINGSACK (unsigned char)0xA1 |
| #define | MID_REQFWREV (unsigned char)0x12 |
| #define | MID_REQHEADING (unsigned char)0x82 |
| #define | MID_REQHEADINGACK (unsigned char)0x83 |
| #define | MID_REQINITTRACKMODE (unsigned char)0x88 |
| #define | MID_REQINITTRACKMODEACK (unsigned char)0x89 |
| #define | MID_REQLOCATIONID (unsigned char)0x84 |
| #define | MID_REQLOCATIONIDACK (unsigned char)0x85 |
| #define | MID_REQOPMODE (unsigned char)0x16 |
| #define | MID_REQOPMODEACK (unsigned char)0x17 |
| #define | MID_REQOUTPUTMODE (unsigned char)0xD0 |
| #define | MID_REQOUTPUTMODEACK (unsigned char)0xD1 |
| #define | MID_REQOUTPUTSETTINGS (unsigned char)0xD2 |
| #define | MID_REQOUTPUTSETTINGSACK (unsigned char)0xD3 |
| #define | MID_REQOUTPUTSKIPFACTOR (unsigned char)0xD4 |
| #define | MID_REQOUTPUTSKIPFACTORACK (unsigned char)0xD5 |
| #define | MID_REQPERIOD (unsigned char)0x04 |
| #define | MID_REQPERIODACK (unsigned char)0x05 |
| #define | MID_REQPRODUCTCODE (unsigned char)0x1C |
| #define | MID_REQSYNCINSETTINGS (unsigned char)0xD6 |
| #define | MID_REQSYNCINSETTINGSACK (unsigned char)0xD7 |
| #define | MID_REQSYNCMODE (unsigned char)0x1A |
| #define | MID_REQSYNCMODEACK (unsigned char)0x1B |
| #define | MID_REQSYNCOUTSETTINGS (unsigned char)0xD8 |
| #define | MID_REQSYNCOUTSETTINGSACK (unsigned char)0xD9 |
| #define | MID_REQTRANSMITDELAY (unsigned char)0xDC |
| #define | MID_REQTRANSMITDELAYACK (unsigned char)0xDD |
| #define | MID_REQXMERRORMODE (unsigned char)0x82 |
| #define | MID_REQXMERRORMODEACK (unsigned char)0x83 |
| #define | MID_RESET (unsigned char)0x40 |
| #define | MID_RESETACK (unsigned char)0x41 |
| #define | MID_RESETORIENTATION (unsigned char)0xA4 |
| #define | MID_RESETORIENTATIONACK (unsigned char)0xA5 |
| #define | MID_RESTOREFACTORYDEF (unsigned char)0x0E |
| #define | MID_RESTOREFACTORYDEFACK (unsigned char)0x0F |
| #define | MID_SETAMD (unsigned char)0xA2 |
| #define | MID_SETAMDACK (unsigned char)0xA3 |
| #define | MID_SETBAUDRATE (unsigned char)0x18 |
| #define | MID_SETBAUDRATEACK (unsigned char)0x19 |
| #define | MID_SETBID (unsigned char)0x06 |
| #define | MID_SETBIDACK (unsigned char)0x07 |
| #define | MID_SETBUFFERSIZE (unsigned char)0x84 |
| #define | MID_SETBUFFERSIZEACK (unsigned char)0x85 |
| #define | MID_SETERRORMODE (unsigned char)0xDA |
| #define | MID_SETERRORMODEACK (unsigned char)0xDB |
| #define | MID_SETEXTOUTPUTMODE (unsigned char)0x86 |
| #define | MID_SETEXTOUTPUTMODEACK (unsigned char)0x87 |
| #define | MID_SETFILTERSETTINGS (unsigned char)0xA0 |
| #define | MID_SETFILTERSETTINGSACK (unsigned char)0xA1 |
| #define | MID_SETHEADING (unsigned char)0x82 |
| #define | MID_SETHEADINGACK (unsigned char)0x83 |
| #define | MID_SETINITTRACKMODE (unsigned char)0x88 |
| #define | MID_SETINITTRACKMODEACK (unsigned char)0x89 |
| #define | MID_SETLOCATIONID (unsigned char)0x84 |
| #define | MID_SETLOCATIONIDACK (unsigned char)0x85 |
| #define | MID_SETOPMODE (unsigned char)0x16 |
| #define | MID_SETOPMODEACK (unsigned char)0x17 |
| #define | MID_SETOUTPUTMODE (unsigned char)0xD0 |
| #define | MID_SETOUTPUTMODEACK (unsigned char)0xD1 |
| #define | MID_SETOUTPUTSETTINGS (unsigned char)0xD2 |
| #define | MID_SETOUTPUTSETTINGSACK (unsigned char)0xD3 |
| #define | MID_SETOUTPUTSKIPFACTOR (unsigned char)0xD4 |
| #define | MID_SETOUTPUTSKIPFACTORACK (unsigned char)0xD5 |
| #define | MID_SETPERIOD (unsigned char)0x04 |
| #define | MID_SETPERIODACK (unsigned char)0x05 |
| #define | MID_SETSYNCINSETTINGS (unsigned char)0xD6 |
| #define | MID_SETSYNCINSETTINGSACK (unsigned char)0xD7 |
| #define | MID_SETSYNCMODE (unsigned char)0x1A |
| #define | MID_SETSYNCMODEACK (unsigned char)0x1B |
| #define | MID_SETSYNCOUTSETTINGS (unsigned char)0xD8 |
| #define | MID_SETSYNCOUTSETTINGSACK (unsigned char)0xD9 |
| #define | MID_SETTRANSMITDELAY (unsigned char)0xDC |
| #define | MID_SETTRANSMITDELAYACK (unsigned char)0xDD |
| #define | MID_SETXMERRORMODE (unsigned char)0x82 |
| #define | MID_SETXMERRORMODEACK (unsigned char)0x83 |
| #define | MID_STOREFILTERSTATE (unsigned char)0x8A |
| #define | MID_STOREFILTERSTATEACK (unsigned char)0x8B |
| #define | MID_WAKEUP (unsigned char)0x3E |
| #define | MID_WAKEUPACK (unsigned char)0x3F |
| #define | MID_XMPWROFF (unsigned char)0x44 |
| #define | MSG_AUTOSTART (const unsigned char*)"\xFA\xFF\x06\x00" |
| #define | MSG_AUTOSTARTACKLEN 5 |
| #define | MSG_AUTOSTARTLEN 4 |
| #define | MSG_BUSPWROFF (const unsigned char*)"\xFA\xFF\x08\x00" |
| #define | MSG_BUSPWROFFACKLEN 5 |
| #define | MSG_BUSPWROFFLEN 4 |
| #define | MSG_DATALENGTHLEN 7 |
| #define | MSG_DEVICEIDLEN 9 |
| #define | MSG_DISABLEBT (const unsigned char*)"\xFA\xFF\x14\x01" |
| #define | MSG_DISABLEBTACKLEN 5 |
| #define | MSG_DISABLEBTLEN 5 |
| #define | MSG_FIRMWAREREVLEN 8 |
| #define | MSG_GOTOCONFIG (const unsigned char*)"\xFA\xFF\x30\x00" |
| #define | MSG_GOTOCONFIGACKLEN 5 |
| #define | MSG_GOTOCONFIGLEN 4 |
| #define | MSG_GOTOCONFIGM (const unsigned char*)"\xFA\x01\x30\x00" |
| #define | MSG_GOTOCONFIGMACKLEN 5 |
| #define | MSG_GOTOCONFIGMLEN 4 |
| #define | MSG_GOTOMEASACKLEN 5 |
| #define | MSG_GOTOMEASMAN (const unsigned char*)"\xFA\x01\x10\x00" |
| #define | MSG_GOTOMEASMANLEN 4 |
| #define | MSG_GOTOMEASUREMENT (const unsigned char*)"\xFA\xFF\x10\x00" |
| #define | MSG_GOTOMEASUREMENTLEN 4 |
| #define | MSG_INITBUS (const unsigned char*)"\xFA\xFF\x02\x00" |
| #define | MSG_INITBUSLEN 4 |
| #define | MSG_INITBUSRESMAXLEN (5 + 4 * MAXSENSORS) |
| #define | MSG_MTSDATA 61 |
| #define | MSG_PREPAREDATA (const unsigned char*)"\xFA\x01\x32\x00" |
| #define | MSG_PREPAREDATALEN 4 |
| #define | MSG_REQBAUDRATE (const unsigned char*)"\xFA\xFF\x18\x00" |
| #define | MSG_REQBAUDRATEACKLEN 6 |
| #define | MSG_REQBAUDRATELEN 4 |
| #define | MSG_REQBTDISABLED (const unsigned char*)"\xFA\xFF\x14\x00" |
| #define | MSG_REQBTDISABLEDACKLEN 6 |
| #define | MSG_REQBTDISABLEDLEN 4 |
| #define | MSG_REQCONFIGURATION (const unsigned char*)"\xFA\xFF\x0C\x00" |
| #define | MSG_REQCONFIGURATIONLEN 4 |
| #define | MSG_REQDATA (const unsigned char*)"\xFA\x01\x34\x00" |
| #define | MSG_REQDATALEN 4 |
| #define | MSG_REQDATALENGTH (const unsigned char*)"\xFA\xFF\x0A\x00" |
| #define | MSG_REQDATALENGTHLEN 4 |
| #define | MSG_REQDID (const unsigned char*)"\xFA\xFF\x00\x00" |
| #define | MSG_REQDIDLEN 4 |
| #define | MSG_REQERRORMODE (const unsigned char*)"\xFA\xFF\xDA\x00" |
| #define | MSG_REQERRORMODEACKLEN 7 |
| #define | MSG_REQERRORMODELEN 4 |
| #define | MSG_REQFWREV (const unsigned char*)"\xFA\xFF\x12\x00" |
| #define | MSG_REQFWREVLEN 4 |
| #define | MSG_REQMTS (const unsigned char*)"\xFA\xFF\x90\x01" |
| #define | MSG_REQMTSLEN 5 |
| #define | MSG_REQOPMODE (const unsigned char*)"\xFA\xFF\x16\x00" |
| #define | MSG_REQOPMODEACKLEN 6 |
| #define | MSG_REQOPMODELEN 4 |
| #define | MSG_REQPERIOD (const unsigned char*)"\xFA\xFF\x04\x00" |
| #define | MSG_REQPERIODACKLEN 7 |
| #define | MSG_REQPERIODLEN 4 |
| #define | MSG_REQSYNCMODE (const unsigned char*)"\xFA\xFF\x1A\x00" |
| #define | MSG_REQSYNCMODEACKLEN 6 |
| #define | MSG_REQSYNCMODELEN 4 |
| #define | MSG_REQSYNCOUTMODE (const unsigned char*)"\xFA\xFF\xD8\x01\x00" |
| #define | MSG_REQSYNCOUTMODELEN 5 |
| #define | MSG_REQSYNCOUTOFFSET (const unsigned char*)"\xFA\xFF\xD8\x01\x02" |
| #define | MSG_REQSYNCOUTOFFSETLEN 5 |
| #define | MSG_REQSYNCOUTPULSEWIDTH (const unsigned char*)"\xFA\xFF\xD8\x01\x03" |
| #define | MSG_REQSYNCOUTPULSEWIDTHLEN 5 |
| #define | MSG_REQSYNCOUTSKIPFACTOR (const unsigned char*)"\xFA\xFF\xD8\x01\x01" |
| #define | MSG_REQSYNCOUTSKIPFACTORLEN 5 |
| #define | MSG_RESET (const unsigned char*)"\xFA\xFF\x40\x00" |
| #define | MSG_RESETACKLEN 5 |
| #define | MSG_RESETLEN 4 |
| #define | MSG_RESTOREFACTORYDEF (const unsigned char*)"\xFA\xFF\x0E\x00" |
| #define | MSG_RESTOREFACTORYDEFACKLEN 5 |
| #define | MSG_RESTOREFACTORYDEFLEN 4 |
| #define | MSG_REVTOORGMTS (const unsigned char*)"\xFA\xFF\x94\x00" |
| #define | MSG_REVTOORGMTSACKLEN 5 |
| #define | MSG_REVTOORGMTSLEN 4 |
| #define | MSG_SETBAUDRATE (const unsigned char*)"\xFA\xFF\x18\x01" |
| #define | MSG_SETBAUDRATEACKLEN 5 |
| #define | MSG_SETBAUDRATELEN 5 |
| #define | MSG_SETBID (const unsigned char*)"\xFA\xFF\x06\x05" |
| #define | MSG_SETBIDACKLEN 5 |
| #define | MSG_SETBIDLEN 9 |
| #define | MSG_SETOPMODE (const unsigned char*)"\xFA\xFF\x16\x01" |
| #define | MSG_SETOPMODEACKLEN 5 |
| #define | MSG_SETOPMODELEN 5 |
| #define | MSG_SETPERIOD (const unsigned char*)"\xFA\xFF\x04\x02" |
| #define | MSG_SETPERIODACKLEN 5 |
| #define | MSG_SETPERIODLEN 6 |
| #define | MSG_SETSYNCMODE (const unsigned char*)"\xFA\xFF\x1A\x01" |
| #define | MSG_SETSYNCMODEACKLEN 6 |
| #define | MSG_SETSYNCMODELEN 5 |
| #define | MSG_STORECUSMTS (const unsigned char*)"\xFA\xFF\x92\x58" |
| #define | MSG_STORECUSMTSACKLEN 5 |
| #define | MSG_STORECUSMTSLEN 92 |
| #define | MSG_STOREMTS (const unsigned char*)"\xFA\xFF\x96\x41" |
| #define | MSG_STOREMTSACKLEN 5 |
| #define | MSG_STOREMTSLEN 69 |
| #define | MSG_WAKEUPACK (const unsigned char*)"\xFA\xFF\x3F\x00" |
| #define | MSG_WAKEUPACKLEN 4 |
| #define | MSG_WAKEUPLEN 5 |
| #define | MSG_XMPWROFF (const unsigned char*)"\xFA\xFF\x44\x00" |
| #define | MSG_XMPWROFFACKLEN 5 |
| #define | MSG_XMPWROFFLEN 4 |
| #define | MTRV_ANINPUTALREADYOPEN 12 |
| #define | MTRV_CHECKSUMFAULT 4 |
| #define | MTRV_ENDOFFILE 13 |
| #define | MTRV_INPUTCANNOTBEOPENED 11 |
| #define | MTRV_INVALIDFORFILEINPUT 17 |
| #define | MTRV_INVALIDTIMEOUT 9 |
| #define | MTRV_INVALIDVALUESPEC 16 |
| #define | MTRV_NODATA 5 |
| #define | MTRV_NOINPUTINITIALIZED 14 |
| #define | MTRV_NOTSUCCESSFUL 1 |
| #define | MTRV_NOVALIDMODESPECIFIED 15 |
| #define | MTRV_OK 0 |
| #define | MTRV_OUTOFMEMORY 7 |
| #define | MTRV_RECVERRORMSG 6 |
| #define | MTRV_TIMEOUT 2 |
| #define | MTRV_TIMEOUTNODATA 3 |
| #define | MTRV_UNEXPECTEDMSG 10 |
| #define | MTRV_UNKNOWDATA 8 |
| #define | OUTPUTMODE_CALIB 0x0002 |
| #define | OUTPUTMODE_MT9 0x8000 |
| #define | OUTPUTMODE_ORIENT 0x0004 |
| #define | OUTPUTMODE_RAW 0x4000 |
| #define | OUTPUTMODE_TEMP 0x0001 |
| #define | OUTPUTMODE_XM 0x0000 |
| #define | OUTPUTSETTINGS_CALIBMODE_ACC 0x00000060 |
| #define | OUTPUTSETTINGS_CALIBMODE_ACC_MASK 0x00000010 |
| #define | OUTPUTSETTINGS_CALIBMODE_ACCGYR 0x00000040 |
| #define | OUTPUTSETTINGS_CALIBMODE_ACCGYRMAG 0x00000000 |
| #define | OUTPUTSETTINGS_CALIBMODE_ACCMAG 0x00000020 |
| #define | OUTPUTSETTINGS_CALIBMODE_GYR 0x00000050 |
| #define | OUTPUTSETTINGS_CALIBMODE_GYR_MASK 0x00000020 |
| #define | OUTPUTSETTINGS_CALIBMODE_GYRMAG 0x00000010 |
| #define | OUTPUTSETTINGS_CALIBMODE_MAG 0x00000030 |
| #define | OUTPUTSETTINGS_CALIBMODE_MAG_MASK 0x00000040 |
| #define | OUTPUTSETTINGS_CALIBMODE_MASK 0x00000070 |
| #define | OUTPUTSETTINGS_DATAFORMAT_F1220 0x00000100 |
| #define | OUTPUTSETTINGS_DATAFORMAT_FLOAT 0x00000000 |
| #define | OUTPUTSETTINGS_DATAFORMAT_MASK 0x00000300 |
| #define | OUTPUTSETTINGS_ORIENTMODE_EULER 0x00000004 |
| #define | OUTPUTSETTINGS_ORIENTMODE_MASK 0x0000000C |
| #define | OUTPUTSETTINGS_ORIENTMODE_MATRIX 0x00000008 |
| #define | OUTPUTSETTINGS_ORIENTMODE_QUATERNION 0x00000000 |
| #define | OUTPUTSETTINGS_TIMESTAMP_MASK 0x00000003 |
| #define | OUTPUTSETTINGS_TIMESTAMP_NONE 0x00000000 |
| #define | OUTPUTSETTINGS_TIMESTAMP_SAMPLECNT 0x00000001 |
| #define | OUTPUTSETTINGS_XM 0x00000001 |
| #define | PARAM_FILTER_GAIN (const unsigned char)0x00 |
| #define | PARAM_FILTER_RHO (const unsigned char)0x01 |
| #define | PARAM_SYNCIN_MODE (const unsigned char)0x00 |
| #define | PARAM_SYNCIN_OFFSET (const unsigned char)0x02 |
| #define | PARAM_SYNCIN_SKIPFACTOR (const unsigned char)0x01 |
| #define | PARAM_SYNCOUT_MODE (const unsigned char)0x00 |
| #define | PARAM_SYNCOUT_OFFSET (const unsigned char)0x02 |
| #define | PARAM_SYNCOUT_PULSEWIDTH (const unsigned char)0x03 |
| #define | PARAM_SYNCOUT_SKIPFACTOR (const unsigned char)0x01 |
| #define | PBR_115K2 B115200 |
| #define | PBR_14K4 B14400 |
| #define | PBR_19K2 B19200 |
| #define | PBR_230K4 B230400 |
| #define | PBR_28K8 B28800 |
| #define | PBR_38K4 B38400 |
| #define | PBR_460K8 B460800 |
| #define | PBR_57K6 B57600 |
| #define | PBR_76K8 B76800 |
| #define | PBR_921K6 B921600 |
| #define | PBR_9600 B9600 |
| #define | PERIOD_100HZ 0x0480 |
| #define | PERIOD_10HZ 0x2D00 |
| #define | PERIOD_120HZ 0x03C0 |
| #define | PERIOD_128HZ 0x0384 |
| #define | PERIOD_12HZ 0x2580 |
| #define | PERIOD_144HZ 0x0320 |
| #define | PERIOD_150HZ 0x0300 |
| #define | PERIOD_15HZ 0x1E00 |
| #define | PERIOD_160HZ 0x02D0 |
| #define | PERIOD_16HZ 0x1C20 |
| #define | PERIOD_180HZ 0x0280 |
| #define | PERIOD_18HZ 0x1900 |
| #define | PERIOD_192HZ 0x0258 |
| #define | PERIOD_200HZ 0x0240 |
| #define | PERIOD_20HZ 0x1680 |
| #define | PERIOD_225HZ 0x0200 |
| #define | PERIOD_240HZ 0x01E0 |
| #define | PERIOD_24HZ 0x12C0 |
| #define | PERIOD_256HZ 0x01C2 |
| #define | PERIOD_25HZ 0x1200 |
| #define | PERIOD_288HZ 0x0190 |
| #define | PERIOD_300HZ 0x0180 |
| #define | PERIOD_30HZ 0x0F00 |
| #define | PERIOD_320HZ 0x0168 |
| #define | PERIOD_32HZ 0x0E10 |
| #define | PERIOD_360HZ 0x0140 |
| #define | PERIOD_36HZ 0x0C80 |
| #define | PERIOD_384HZ 0x012C |
| #define | PERIOD_400HZ 0x0120 |
| #define | PERIOD_40HZ 0x0B40 |
| #define | PERIOD_450HZ 0x0100 |
| #define | PERIOD_45HZ 0x0A00 |
| #define | PERIOD_480HZ 0x00F0 |
| #define | PERIOD_48HZ 0x0960 |
| #define | PERIOD_50HZ 0x0900 |
| #define | PERIOD_512HZ 0x00E1 |
| #define | PERIOD_60HZ 0x0780 |
| #define | PERIOD_64HZ 0x0708 |
| #define | PERIOD_72HZ 0x0640 |
| #define | PERIOD_75HZ 0x0600 |
| #define | PERIOD_80HZ 0x05A0 |
| #define | PERIOD_90HZ 0x0500 |
| #define | PERIOD_96HZ 0x04B0 |
| #define | PREAMBLE (unsigned char)0xFA |
| #define | RESETORIENTATION_ALIGN 4 |
| #define | RESETORIENTATION_GLOBAL 2 |
| #define | RESETORIENTATION_HEADING 1 |
| #define | RESETORIENTATION_OBJECT 3 |
| #define | RESETORIENTATION_STORE 0 |
| #define | SENDRAWSTRING_DEFAULT 1 |
| #define | SENDRAWSTRING_INIT 0 |
| #define | SENDRAWSTRING_SEND 2 |
| #define | STORE 0x01 |
| #define | SYNC_CLOCKFREQ 29.4912e6 |
| #define | SYNCIN_DISABLED 0x0000 |
| #define | SYNCIN_EDGE_BOTH 0x0003 |
| #define | SYNCIN_EDGE_FALLING 0x0002 |
| #define | SYNCIN_EDGE_MASK 0x0003 |
| #define | SYNCIN_EDGE_RISING 0x0001 |
| #define | SYNCIN_TYPE_DOSAMPLING 0x0000 |
| #define | SYNCIN_TYPE_MASK 0x000C |
| #define | SYNCIN_TYPE_SENDLASTDATA 0x0004 |
| #define | SYNCOUT_DISABLED 0x0000 |
| #define | SYNCOUT_POL_MASK 0x0010 |
| #define | SYNCOUT_POL_NEG 0x0000 |
| #define | SYNCOUT_POL_POS 0x0010 |
| #define | SYNCOUT_TYPE_MASK 0x000F |
| #define | SYNCOUT_TYPE_PULSE 0x0002 |
| #define | SYNCOUT_TYPE_TOGGLE 0x0001 |
| #define | TO_DEFAULT 500 |
| #define | TO_INIT 250 |
| #define | TO_RETRY 50 |
| #define | VALUE_CALIB_ACC 4 |
| #define | VALUE_CALIB_GYR 5 |
| #define | VALUE_CALIB_MAG 6 |
| #define | VALUE_ORIENT_EULER 8 |
| #define | VALUE_ORIENT_MATRIX 9 |
| #define | VALUE_ORIENT_QUAT 7 |
| #define | VALUE_RAW_ACC 0 |
| #define | VALUE_RAW_GYR 1 |
| #define | VALUE_RAW_MAG 2 |
| #define | VALUE_RAW_TEMP 3 |
| #define | VALUE_SAMPLECNT 10 |
| #define | VALUE_TEMP 11 |
| #define AMDSETTING_DISABLED 0x0000 |
| #define AMDSETTING_ENABLED 0x0001 |
| #define BAUDRATE_115K2 0x02 |
| #define BAUDRATE_14K4 0x08 |
| #define BAUDRATE_19K2 0x07 |
| #define BAUDRATE_230K4 0x01 |
| #define BAUDRATE_28K8 0x06 |
| #define BAUDRATE_38K4 0x05 |
| #define BAUDRATE_460K8 0x00 |
| #define BAUDRATE_57K6 0x04 |
| #define BAUDRATE_76K8 0x03 |
| #define BAUDRATE_921K6 0x80 |
| #define BAUDRATE_9K6 0x09 |
| #define BID_MASTER (unsigned char)0xFF |
| #define BID_MT (unsigned char)0x01 |
| #define CONF_BLOCKLEN 20 |
| #define CONF_DATALENGTH 102 |
| #define CONF_DATALENGTHLEN 2 |
| #define CONF_DATE 16 |
| #define CONF_DATELEN 8 |
| #define CONF_DID 98 |
| #define CONF_DIDLEN 4 |
| #define CONF_MASTERDID 0 |
| #define CONF_MASTERDIDLEN 4 |
| #define CONF_NUMDEVICES 96 |
| #define CONF_NUMDEVICESLEN 2 |
| #define CONF_OUTPUTMODE 104 |
| #define CONF_OUTPUTMODELEN 2 |
| #define CONF_OUTPUTSETTINGS 106 |
| #define CONF_OUTPUTSETTINGSLEN 4 |
| #define CONF_OUTPUTSKIPFACTOR 6 |
| #define CONF_OUTPUTSKIPFACTORLEN 2 |
| #define CONF_PERIOD 4 |
| #define CONF_PERIODLEN 2 |
| #define CONF_RESERVED_CLIENTLEN 32 |
| #define CONF_RESERVED_HOSTLEN 32 |
| #define CONF_SYNCIN_MODE 8 |
| #define CONF_SYNCIN_MODELEN 2 |
| #define CONF_SYNCIN_OFFSET 12 |
| #define CONF_SYNCIN_OFFSETLEN 4 |
| #define CONF_SYNCIN_SKIPFACTOR 10 |
| #define CONF_SYNCIN_SKIPFACTORLEN 2 |
| #define CONF_TIME 24 |
| #define CONF_TIMELEN 8 |
| #define DID_TYPEH_MASK (unsigned long)0x00F00000 |
| #define DID_TYPEH_MT (unsigned long)0x00000000 |
| #define DID_TYPEH_MTI_MTX (unsigned long)0x00300000 |
| #define DID_TYPEH_XM (unsigned long)0x00100000 |
| #define DONOTSTORE 0x00 |
| #define ERROR_BAUDRATEINVALID 0x20 |
| #define ERROR_BUSNOTREADY 0x02 |
| #define ERROR_INITOFBUSFAILED1 0x10 |
| #define ERROR_INITOFBUSFAILED2 0x11 |
| #define ERROR_INITOFBUSFAILED3 0x12 |
| #define ERROR_MEASUREMENTFAILED1 0x18 |
| #define ERROR_MEASUREMENTFAILED2 0x19 |
| #define ERROR_MEASUREMENTFAILED3 0x1A |
| #define ERROR_MEASUREMENTFAILED4 0x1B |
| #define ERROR_MEASUREMENTFAILED5 0x1C |
| #define ERROR_MEASUREMENTFAILED6 0x1D |
| #define ERROR_MEASUREMENTFAILED7 0x23 |
| #define ERROR_MESSAGEINVALID 0x04 |
| #define ERROR_NOBUSCOMM 0x01 |
| #define ERROR_PARAMETERINVALID 0x21 |
| #define ERROR_PERIODINVALID 0x03 |
| #define ERROR_SETBIDPROCFAILED1 0x14 |
| #define ERROR_SETBIDPROCFAILED2 0x15 |
| #define ERROR_TIMEROVERFLOW 0x1E |
| #define ERRORMODE_IGNORE 0x0000 |
| #define ERRORMODE_INCSAMPLECNT 0x0001 |
| #define ERRORMODE_INCSAMPLECNT_SENDERROR 0x0002 |
| #define ERRORMODE_SENDERROR_GOTOCONFIG 0x0003 |
| #define EXTLENCODE 0xFF |
| #define EXTOUTPUTMODE_DISABLED 0x0000 |
| #define EXTOUTPUTMODE_EULER 0x0001 |
| #define FACTORYOUTPUTMODE_CUSTOM 0x0002 |
| #define FACTORYOUTPUTMODE_DEFAULT 0x0001 |
| #define FACTORYOUTPUTMODE_DISABLE 0x0000 |
| #define FILEPOS_BEGIN SEEK_SET |
| #define FILEPOS_CURRENT SEEK_CUR |
| #define FILEPOS_END SEEK_END |
| #define FLDNUM_CALIB_ACCX 0 |
| #define FLDNUM_CALIB_ACCY 1 |
| #define FLDNUM_CALIB_ACCZ 2 |
| #define FLDNUM_CALIB_GYRX 3 |
| #define FLDNUM_CALIB_GYRY 4 |
| #define FLDNUM_CALIB_GYRZ 5 |
| #define FLDNUM_CALIB_MAGX 6 |
| #define FLDNUM_CALIB_MAGY 7 |
| #define FLDNUM_CALIB_MAGZ 8 |
| #define FLDNUM_ORIENT_A 0 |
| #define FLDNUM_ORIENT_B 1 |
| #define FLDNUM_ORIENT_C 2 |
| #define FLDNUM_ORIENT_D 3 |
| #define FLDNUM_ORIENT_E 4 |
| #define FLDNUM_ORIENT_F 5 |
| #define FLDNUM_ORIENT_G 6 |
| #define FLDNUM_ORIENT_H 7 |
| #define FLDNUM_ORIENT_I 8 |
| #define FLDNUM_ORIENT_PITCH 1 |
| #define FLDNUM_ORIENT_Q0 0 |
| #define FLDNUM_ORIENT_Q1 1 |
| #define FLDNUM_ORIENT_Q2 2 |
| #define FLDNUM_ORIENT_Q3 3 |
| #define FLDNUM_ORIENT_ROLL 0 |
| #define FLDNUM_ORIENT_YAW 2 |
| #define FLDNUM_RAW_ACCX 0 |
| #define FLDNUM_RAW_ACCY 1 |
| #define FLDNUM_RAW_ACCZ 2 |
| #define FLDNUM_RAW_GYRX 3 |
| #define FLDNUM_RAW_GYRY 4 |
| #define FLDNUM_RAW_GYRZ 5 |
| #define FLDNUM_RAW_MAGX 6 |
| #define FLDNUM_RAW_MAGY 7 |
| #define FLDNUM_RAW_MAGZ 8 |
| #define FLDNUM_RAW_TEMP 9 |
| #define IND_BID 1 |
| #define IND_CALIB_ACCX 0 |
| #define IND_CALIB_ACCY 4 |
| #define IND_CALIB_ACCZ 8 |
| #define IND_CALIB_GYRX 12 |
| #define IND_CALIB_GYRY 16 |
| #define IND_CALIB_GYRZ 20 |
| #define IND_CALIB_MAGX 24 |
| #define IND_CALIB_MAGY 28 |
| #define IND_CALIB_MAGZ 32 |
| #define IND_DATA0 4 |
| #define IND_DATAEXT0 6 |
| #define IND_LEN 3 |
| #define IND_LENEXTH 4 |
| #define IND_LENEXTL 5 |
| #define IND_MID 2 |
| #define IND_ORIENT_A 0 |
| #define IND_ORIENT_B 4 |
| #define IND_ORIENT_C 8 |
| #define IND_ORIENT_D 12 |
| #define IND_ORIENT_E 16 |
| #define IND_ORIENT_F 20 |
| #define IND_ORIENT_G 24 |
| #define IND_ORIENT_H 28 |
| #define IND_ORIENT_I 32 |
| #define IND_ORIENT_PITCH 4 |
| #define IND_ORIENT_Q0 0 |
| #define IND_ORIENT_Q1 4 |
| #define IND_ORIENT_Q2 8 |
| #define IND_ORIENT_Q3 12 |
| #define IND_ORIENT_ROLL 0 |
| #define IND_ORIENT_YAW 8 |
| #define IND_PREAMBLE 0 |
| #define IND_RAW_ACCX 0 |
| #define IND_RAW_ACCY 2 |
| #define IND_RAW_ACCZ 4 |
| #define IND_RAW_GYRX 6 |
| #define IND_RAW_GYRY 8 |
| #define IND_RAW_GYRZ 10 |
| #define IND_RAW_MAGX 12 |
| #define IND_RAW_MAGY 14 |
| #define IND_RAW_MAGZ 16 |
| #define IND_RAW_TEMP 18 |
| #define IND_SAMPLECNTH 0 |
| #define IND_SAMPLECNTL 1 |
| #define INITTRACKMODE_DISABLED 0x0000 |
| #define INITTRACKMODE_ENABLED 0x0001 |
| #define INVALID_SET_FILE_POINTER ((DWORD)(-1)) |
| #define INVALIDSETTINGVALUE 0xFFFFFFFF |
| #define LEN_AMD (unsigned short)2 |
| #define LEN_BAUDRATE (unsigned short)1 |
| #define LEN_BUFFERSIZE (unsigned short)2 |
| #define LEN_CALIB_ACCDATA (unsigned short)12 |
| #define LEN_CALIB_ACCX 4 |
| #define LEN_CALIB_ACCY 4 |
| #define LEN_CALIB_ACCZ 4 |
| #define LEN_CALIB_GYRDATA (unsigned short)12 |
| #define LEN_CALIB_GYRX 4 |
| #define LEN_CALIB_GYRY 4 |
| #define LEN_CALIB_GYRZ 4 |
| #define LEN_CALIB_MAGDATA (unsigned short)12 |
| #define LEN_CALIB_MAGX 4 |
| #define LEN_CALIB_MAGY 4 |
| #define LEN_CALIB_MAGZ 4 |
| #define LEN_CALIBDATA (unsigned short)36 |
| #define LEN_CALIBDATA_FLT (unsigned short)9 |
| #define LEN_CHECKSUM (unsigned short)1 |
| #define LEN_CONFIGURATION (unsigned short)118 |
| #define LEN_DATALENGTH (unsigned short)2 |
| #define LEN_DEVICEID (unsigned short)4 |
| #define LEN_ERROR (unsigned short)1 |
| #define LEN_ERRORMODE (unsigned short)2 |
| #define LEN_EXTOUTPUTMODE (unsigned short)2 |
| #define LEN_FILTERSETTINGS (unsigned short)4 |
| #define LEN_FIRMWAREREV (unsigned short)3 |
| #define LEN_FLOAT (unsigned short)4 |
| #define LEN_HEADING (unsigned short)4 |
| #define LEN_INITBUSRESULTS (unsigned short)4 |
| #define LEN_INITTRACKMODE (unsigned short)2 |
| #define LEN_LOCATIONID (unsigned short)2 |
| #define LEN_MSGEXTHEADER (unsigned short)6 |
| #define LEN_MSGEXTHEADERCS (unsigned short)7 |
| #define LEN_MSGHEADER (unsigned short)4 |
| #define LEN_MSGHEADERCS (unsigned short)5 |
| #define LEN_ORIENT_A 4 |
| #define LEN_ORIENT_B 4 |
| #define LEN_ORIENT_C 4 |
| #define LEN_ORIENT_D 4 |
| #define LEN_ORIENT_E 4 |
| #define LEN_ORIENT_EULERDATA (unsigned short)12 |
| #define LEN_ORIENT_EULERDATA_FLT (unsigned short)3 |
| #define LEN_ORIENT_F 4 |
| #define LEN_ORIENT_G 4 |
| #define LEN_ORIENT_H 4 |
| #define LEN_ORIENT_I 4 |
| #define LEN_ORIENT_MATRIXDATA (unsigned short)36 |
| #define LEN_ORIENT_MATRIXDATA_FLT (unsigned short)9 |
| #define LEN_ORIENT_PITCH 4 |
| #define LEN_ORIENT_Q0 4 |
| #define LEN_ORIENT_Q1 4 |
| #define LEN_ORIENT_Q2 4 |
| #define LEN_ORIENT_Q3 4 |
| #define LEN_ORIENT_QUATDATA (unsigned short)16 |
| #define LEN_ORIENT_QUATDATA_FLT (unsigned short)4 |
| #define LEN_ORIENT_ROLL 4 |
| #define LEN_ORIENT_YAW 4 |
| #define LEN_OUTPUTMODE (unsigned short)2 |
| #define LEN_OUTPUTSETTINGS (unsigned short)4 |
| #define LEN_OUTPUTSKIPFACTOR (unsigned short)2 |
| #define LEN_PERIOD (unsigned short)2 |
| #define LEN_RAW_ACCX 2 |
| #define LEN_RAW_ACCY 2 |
| #define LEN_RAW_ACCZ 2 |
| #define LEN_RAW_GYRX 2 |
| #define LEN_RAW_GYRY 2 |
| #define LEN_RAW_GYRZ 2 |
| #define LEN_RAW_MAGX 2 |
| #define LEN_RAW_MAGY 2 |
| #define LEN_RAW_MAGZ 2 |
| #define LEN_RAW_TEMP 2 |
| #define LEN_RAWDATA (unsigned short)20 |
| #define LEN_RESETORIENTATION (unsigned short)2 |
| #define LEN_SAMPLECNT (unsigned short)2 |
| #define LEN_SYNCINMODE (unsigned short)2 |
| #define LEN_SYNCINOFFSET (unsigned short)4 |
| #define LEN_SYNCINSKIPFACTOR (unsigned short)2 |
| #define LEN_SYNCOUTMODE (unsigned short)2 |
| #define LEN_SYNCOUTOFFSET (unsigned short)4 |
| #define LEN_SYNCOUTPULSEWIDTH (unsigned short)4 |
| #define LEN_SYNCOUTSKIPFACTOR (unsigned short)2 |
| #define LEN_TEMPDATA (unsigned short)4 |
| #define LEN_TRANSMITDELAY (unsigned short)2 |
| #define LEN_UNSIGINT (unsigned short)4 |
| #define LEN_UNSIGSHORT (unsigned short)2 |
| #define LEN_XMERRORMODE (unsigned short)2 |
| #define MAXDATALEN (unsigned short)2048 |
| #define MAXDEVICES 20 |
| #define MAXMSGLEN (unsigned short)(MAXDATALEN + 7) |
| #define MAXSHORTDATALEN (unsigned short)254 |
| #define MAXSHORTMSGLEN (unsigned short)(MAXSHORTDATALEN + 5) |
| #define MID_AUTOSTART (unsigned char)0x06 |
| #define MID_AUTOSTARTACK (unsigned char)0x07 |
| #define MID_BATLEVEL (unsigned char)0x89 |
| #define MID_BUSDATA (unsigned char)0x32 |
| #define MID_BUSPWROFF (unsigned char)0x08 |
| #define MID_BUSPWROFFACK (unsigned char)0x09 |
| #define MID_CONFIGURATION (unsigned char)0x0D |
| #define MID_DATALENGTH (unsigned char)0x0B |
| #define MID_DEVICEID (unsigned char)0x01 |
| #define MID_DISABLEBT (unsigned char)0x14 |
| #define MID_DISABLEBTACK (unsigned char)0x15 |
| #define MID_ERROR (unsigned char)0x42 |
| #define MID_FIRMWAREREV (unsigned char)0x13 |
| #define MID_GOTOCONFIG (unsigned char)0x30 |
| #define MID_GOTOCONFIGACK (unsigned char)0x31 |
| #define MID_GOTOMEASUREMENT (unsigned char)0x10 |
| #define MID_GOTOMEASUREMENTACK (unsigned char)0x11 |
| #define MID_INITBUS (unsigned char)0x02 |
| #define MID_INITBUSRESULTS (unsigned char)0x03 |
| #define MID_MTDATA (unsigned char)0x32 |
| #define MID_PREPAREDATA (unsigned char)0x32 |
| #define MID_PRODUCTCODE (unsigned char)0x1D |
| #define MID_REQAMD (unsigned char)0xA2 |
| #define MID_REQAMDACK (unsigned char)0xA3 |
| #define MID_REQBATLEVEL (unsigned char)0x88 |
| #define MID_REQBAUDRATE (unsigned char)0x18 |
| #define MID_REQBAUDRATEACK (unsigned char)0x19 |
| #define MID_REQBTDISABLE (unsigned char)0x14 |
| #define MID_REQBTDISABLEACK (unsigned char)0x15 |
| #define MID_REQBUFFERSIZE (unsigned char)0x84 |
| #define MID_REQBUFFERSIZEACK (unsigned char)0x85 |
| #define MID_REQCONFIGURATION (unsigned char)0x0C |
| #define MID_REQDATA (unsigned char)0x34 |
| #define MID_REQDATAACK (unsigned char)0x35 |
| #define MID_REQDATALENGTH (unsigned char)0x0A |
| #define MID_REQDID (unsigned char)0x00 |
| #define MID_REQERRORMODE (unsigned char)0xDA |
| #define MID_REQERRORMODEACK (unsigned char)0xDB |
| #define MID_REQEXTOUTPUTMODE (unsigned char)0x86 |
| #define MID_REQEXTOUTPUTMODEACK (unsigned char)0x87 |
| #define MID_REQFILTERSETTINGS (unsigned char)0xA0 |
| #define MID_REQFILTERSETTINGSACK (unsigned char)0xA1 |
| #define MID_REQFWREV (unsigned char)0x12 |
| #define MID_REQHEADING (unsigned char)0x82 |
| #define MID_REQHEADINGACK (unsigned char)0x83 |
| #define MID_REQINITTRACKMODE (unsigned char)0x88 |
| #define MID_REQINITTRACKMODEACK (unsigned char)0x89 |
| #define MID_REQLOCATIONID (unsigned char)0x84 |
| #define MID_REQLOCATIONIDACK (unsigned char)0x85 |
| #define MID_REQOPMODE (unsigned char)0x16 |
| #define MID_REQOPMODEACK (unsigned char)0x17 |
| #define MID_REQOUTPUTMODE (unsigned char)0xD0 |
| #define MID_REQOUTPUTMODEACK (unsigned char)0xD1 |
| #define MID_REQOUTPUTSETTINGS (unsigned char)0xD2 |
| #define MID_REQOUTPUTSETTINGSACK (unsigned char)0xD3 |
| #define MID_REQOUTPUTSKIPFACTOR (unsigned char)0xD4 |
| #define MID_REQOUTPUTSKIPFACTORACK (unsigned char)0xD5 |
| #define MID_REQPERIOD (unsigned char)0x04 |
| #define MID_REQPERIODACK (unsigned char)0x05 |
| #define MID_REQPRODUCTCODE (unsigned char)0x1C |
| #define MID_REQSYNCINSETTINGS (unsigned char)0xD6 |
| #define MID_REQSYNCINSETTINGSACK (unsigned char)0xD7 |
| #define MID_REQSYNCMODE (unsigned char)0x1A |
| #define MID_REQSYNCMODEACK (unsigned char)0x1B |
| #define MID_REQSYNCOUTSETTINGS (unsigned char)0xD8 |
| #define MID_REQSYNCOUTSETTINGSACK (unsigned char)0xD9 |
| #define MID_REQTRANSMITDELAY (unsigned char)0xDC |
| #define MID_REQTRANSMITDELAYACK (unsigned char)0xDD |
| #define MID_REQXMERRORMODE (unsigned char)0x82 |
| #define MID_REQXMERRORMODEACK (unsigned char)0x83 |
| #define MID_RESET (unsigned char)0x40 |
| #define MID_RESETACK (unsigned char)0x41 |
| #define MID_RESETORIENTATION (unsigned char)0xA4 |
| #define MID_RESETORIENTATIONACK (unsigned char)0xA5 |
| #define MID_RESTOREFACTORYDEF (unsigned char)0x0E |
| #define MID_RESTOREFACTORYDEFACK (unsigned char)0x0F |
| #define MID_SETAMD (unsigned char)0xA2 |
| #define MID_SETAMDACK (unsigned char)0xA3 |
| #define MID_SETBAUDRATE (unsigned char)0x18 |
| #define MID_SETBAUDRATEACK (unsigned char)0x19 |
| #define MID_SETBID (unsigned char)0x06 |
| #define MID_SETBIDACK (unsigned char)0x07 |
| #define MID_SETBUFFERSIZE (unsigned char)0x84 |
| #define MID_SETBUFFERSIZEACK (unsigned char)0x85 |
| #define MID_SETERRORMODE (unsigned char)0xDA |
| #define MID_SETERRORMODEACK (unsigned char)0xDB |
| #define MID_SETEXTOUTPUTMODE (unsigned char)0x86 |
| #define MID_SETEXTOUTPUTMODEACK (unsigned char)0x87 |
| #define MID_SETFILTERSETTINGS (unsigned char)0xA0 |
| #define MID_SETFILTERSETTINGSACK (unsigned char)0xA1 |
| #define MID_SETHEADING (unsigned char)0x82 |
| #define MID_SETHEADINGACK (unsigned char)0x83 |
| #define MID_SETINITTRACKMODE (unsigned char)0x88 |
| #define MID_SETINITTRACKMODEACK (unsigned char)0x89 |
| #define MID_SETLOCATIONID (unsigned char)0x84 |
| #define MID_SETLOCATIONIDACK (unsigned char)0x85 |
| #define MID_SETOPMODE (unsigned char)0x16 |
| #define MID_SETOPMODEACK (unsigned char)0x17 |
| #define MID_SETOUTPUTMODE (unsigned char)0xD0 |
| #define MID_SETOUTPUTMODEACK (unsigned char)0xD1 |
| #define MID_SETOUTPUTSETTINGS (unsigned char)0xD2 |
| #define MID_SETOUTPUTSETTINGSACK (unsigned char)0xD3 |
| #define MID_SETOUTPUTSKIPFACTOR (unsigned char)0xD4 |
| #define MID_SETOUTPUTSKIPFACTORACK (unsigned char)0xD5 |
| #define MID_SETPERIOD (unsigned char)0x04 |
| #define MID_SETPERIODACK (unsigned char)0x05 |
| #define MID_SETSYNCINSETTINGS (unsigned char)0xD6 |
| #define MID_SETSYNCINSETTINGSACK (unsigned char)0xD7 |
| #define MID_SETSYNCMODE (unsigned char)0x1A |
| #define MID_SETSYNCMODEACK (unsigned char)0x1B |
| #define MID_SETSYNCOUTSETTINGS (unsigned char)0xD8 |
| #define MID_SETSYNCOUTSETTINGSACK (unsigned char)0xD9 |
| #define MID_SETTRANSMITDELAY (unsigned char)0xDC |
| #define MID_SETTRANSMITDELAYACK (unsigned char)0xDD |
| #define MID_SETXMERRORMODE (unsigned char)0x82 |
| #define MID_SETXMERRORMODEACK (unsigned char)0x83 |
| #define MID_STOREFILTERSTATE (unsigned char)0x8A |
| #define MID_STOREFILTERSTATEACK (unsigned char)0x8B |
| #define MID_WAKEUP (unsigned char)0x3E |
| #define MID_WAKEUPACK (unsigned char)0x3F |
| #define MID_XMPWROFF (unsigned char)0x44 |
| #define MSG_AUTOSTART (const unsigned char*)"\xFA\xFF\x06\x00" |
| #define MSG_AUTOSTARTACKLEN 5 |
| #define MSG_AUTOSTARTLEN 4 |
| #define MSG_BUSPWROFF (const unsigned char*)"\xFA\xFF\x08\x00" |
| #define MSG_BUSPWROFFACKLEN 5 |
| #define MSG_BUSPWROFFLEN 4 |
| #define MSG_DATALENGTHLEN 7 |
| #define MSG_DEVICEIDLEN 9 |
| #define MSG_DISABLEBT (const unsigned char*)"\xFA\xFF\x14\x01" |
| #define MSG_DISABLEBTACKLEN 5 |
| #define MSG_DISABLEBTLEN 5 |
| #define MSG_FIRMWAREREVLEN 8 |
| #define MSG_GOTOCONFIG (const unsigned char*)"\xFA\xFF\x30\x00" |
| #define MSG_GOTOCONFIGACKLEN 5 |
| #define MSG_GOTOCONFIGLEN 4 |
| #define MSG_GOTOCONFIGM (const unsigned char*)"\xFA\x01\x30\x00" |
| #define MSG_GOTOCONFIGMACKLEN 5 |
| #define MSG_GOTOCONFIGMLEN 4 |
| #define MSG_GOTOMEASACKLEN 5 |
| #define MSG_GOTOMEASMAN (const unsigned char*)"\xFA\x01\x10\x00" |
| #define MSG_GOTOMEASMANLEN 4 |
| #define MSG_GOTOMEASUREMENT (const unsigned char*)"\xFA\xFF\x10\x00" |
| #define MSG_GOTOMEASUREMENTLEN 4 |
| #define MSG_INITBUS (const unsigned char*)"\xFA\xFF\x02\x00" |
| #define MSG_INITBUSLEN 4 |
| #define MSG_INITBUSRESMAXLEN (5 + 4 * MAXSENSORS) |
| #define MSG_MTSDATA 61 |
| #define MSG_PREPAREDATA (const unsigned char*)"\xFA\x01\x32\x00" |
| #define MSG_PREPAREDATALEN 4 |
| #define MSG_REQBAUDRATE (const unsigned char*)"\xFA\xFF\x18\x00" |
| #define MSG_REQBAUDRATEACKLEN 6 |
| #define MSG_REQBAUDRATELEN 4 |
| #define MSG_REQBTDISABLED (const unsigned char*)"\xFA\xFF\x14\x00" |
| #define MSG_REQBTDISABLEDACKLEN 6 |
| #define MSG_REQBTDISABLEDLEN 4 |
| #define MSG_REQCONFIGURATION (const unsigned char*)"\xFA\xFF\x0C\x00" |
| #define MSG_REQCONFIGURATIONLEN 4 |
| #define MSG_REQDATA (const unsigned char*)"\xFA\x01\x34\x00" |
| #define MSG_REQDATALEN 4 |
| #define MSG_REQDATALENGTH (const unsigned char*)"\xFA\xFF\x0A\x00" |
| #define MSG_REQDATALENGTHLEN 4 |
| #define MSG_REQDID (const unsigned char*)"\xFA\xFF\x00\x00" |
| #define MSG_REQDIDLEN 4 |
| #define MSG_REQERRORMODE (const unsigned char*)"\xFA\xFF\xDA\x00" |
| #define MSG_REQERRORMODEACKLEN 7 |
| #define MSG_REQERRORMODELEN 4 |
| #define MSG_REQFWREV (const unsigned char*)"\xFA\xFF\x12\x00" |
| #define MSG_REQFWREVLEN 4 |
| #define MSG_REQMTS (const unsigned char*)"\xFA\xFF\x90\x01" |
| #define MSG_REQMTSLEN 5 |
| #define MSG_REQOPMODE (const unsigned char*)"\xFA\xFF\x16\x00" |
| #define MSG_REQOPMODEACKLEN 6 |
| #define MSG_REQOPMODELEN 4 |
| #define MSG_REQPERIOD (const unsigned char*)"\xFA\xFF\x04\x00" |
| #define MSG_REQPERIODACKLEN 7 |
| #define MSG_REQPERIODLEN 4 |
| #define MSG_REQSYNCMODE (const unsigned char*)"\xFA\xFF\x1A\x00" |
| #define MSG_REQSYNCMODEACKLEN 6 |
| #define MSG_REQSYNCMODELEN 4 |
| #define MSG_REQSYNCOUTMODE (const unsigned char*)"\xFA\xFF\xD8\x01\x00" |
| #define MSG_REQSYNCOUTMODELEN 5 |
| #define MSG_REQSYNCOUTOFFSET (const unsigned char*)"\xFA\xFF\xD8\x01\x02" |
| #define MSG_REQSYNCOUTOFFSETLEN 5 |
| #define MSG_REQSYNCOUTPULSEWIDTH (const unsigned char*)"\xFA\xFF\xD8\x01\x03" |
| #define MSG_REQSYNCOUTPULSEWIDTHLEN 5 |
| #define MSG_REQSYNCOUTSKIPFACTOR (const unsigned char*)"\xFA\xFF\xD8\x01\x01" |
| #define MSG_REQSYNCOUTSKIPFACTORLEN 5 |
| #define MSG_RESET (const unsigned char*)"\xFA\xFF\x40\x00" |
| #define MSG_RESETACKLEN 5 |
| #define MSG_RESETLEN 4 |
| #define MSG_RESTOREFACTORYDEF (const unsigned char*)"\xFA\xFF\x0E\x00" |
| #define MSG_RESTOREFACTORYDEFACKLEN 5 |
| #define MSG_RESTOREFACTORYDEFLEN 4 |
| #define MSG_REVTOORGMTS (const unsigned char*)"\xFA\xFF\x94\x00" |
| #define MSG_REVTOORGMTSACKLEN 5 |
| #define MSG_REVTOORGMTSLEN 4 |
| #define MSG_SETBAUDRATE (const unsigned char*)"\xFA\xFF\x18\x01" |
| #define MSG_SETBAUDRATEACKLEN 5 |
| #define MSG_SETBAUDRATELEN 5 |
| #define MSG_SETBID (const unsigned char*)"\xFA\xFF\x06\x05" |
| #define MSG_SETBIDACKLEN 5 |
| #define MSG_SETBIDLEN 9 |
| #define MSG_SETOPMODE (const unsigned char*)"\xFA\xFF\x16\x01" |
| #define MSG_SETOPMODEACKLEN 5 |
| #define MSG_SETOPMODELEN 5 |
| #define MSG_SETPERIOD (const unsigned char*)"\xFA\xFF\x04\x02" |
| #define MSG_SETPERIODACKLEN 5 |
| #define MSG_SETPERIODLEN 6 |
| #define MSG_SETSYNCMODE (const unsigned char*)"\xFA\xFF\x1A\x01" |
| #define MSG_SETSYNCMODEACKLEN 6 |
| #define MSG_SETSYNCMODELEN 5 |
| #define MSG_STORECUSMTS (const unsigned char*)"\xFA\xFF\x92\x58" |
| #define MSG_STORECUSMTSACKLEN 5 |
| #define MSG_STORECUSMTSLEN 92 |
| #define MSG_STOREMTS (const unsigned char*)"\xFA\xFF\x96\x41" |
| #define MSG_STOREMTSACKLEN 5 |
| #define MSG_STOREMTSLEN 69 |
| #define MSG_WAKEUPACK (const unsigned char*)"\xFA\xFF\x3F\x00" |
| #define MSG_WAKEUPACKLEN 4 |
| #define MSG_WAKEUPLEN 5 |
| #define MSG_XMPWROFF (const unsigned char*)"\xFA\xFF\x44\x00" |
| #define MSG_XMPWROFFACKLEN 5 |
| #define MSG_XMPWROFFLEN 4 |
| #define MTRV_ANINPUTALREADYOPEN 12 |
| #define MTRV_CHECKSUMFAULT 4 |
| #define MTRV_ENDOFFILE 13 |
| #define MTRV_INPUTCANNOTBEOPENED 11 |
| #define MTRV_INVALIDFORFILEINPUT 17 |
| #define MTRV_INVALIDTIMEOUT 9 |
| #define MTRV_INVALIDVALUESPEC 16 |
| #define MTRV_NODATA 5 |
| #define MTRV_NOINPUTINITIALIZED 14 |
| #define MTRV_NOTSUCCESSFUL 1 |
| #define MTRV_NOVALIDMODESPECIFIED 15 |
| #define MTRV_OK 0 |
| #define MTRV_OUTOFMEMORY 7 |
| #define MTRV_RECVERRORMSG 6 |
| #define MTRV_TIMEOUT 2 |
| #define MTRV_TIMEOUTNODATA 3 |
| #define MTRV_UNEXPECTEDMSG 10 |
| #define MTRV_UNKNOWDATA 8 |
| #define OUTPUTMODE_CALIB 0x0002 |
| #define OUTPUTMODE_MT9 0x8000 |
| #define OUTPUTMODE_ORIENT 0x0004 |
| #define OUTPUTMODE_RAW 0x4000 |
| #define OUTPUTMODE_TEMP 0x0001 |
| #define OUTPUTMODE_XM 0x0000 |
| #define OUTPUTSETTINGS_CALIBMODE_ACC 0x00000060 |
| #define OUTPUTSETTINGS_CALIBMODE_ACC_MASK 0x00000010 |
| #define OUTPUTSETTINGS_CALIBMODE_ACCGYR 0x00000040 |
| #define OUTPUTSETTINGS_CALIBMODE_ACCGYRMAG 0x00000000 |
| #define OUTPUTSETTINGS_CALIBMODE_ACCMAG 0x00000020 |
| #define OUTPUTSETTINGS_CALIBMODE_GYR 0x00000050 |
| #define OUTPUTSETTINGS_CALIBMODE_GYR_MASK 0x00000020 |
| #define OUTPUTSETTINGS_CALIBMODE_GYRMAG 0x00000010 |
| #define OUTPUTSETTINGS_CALIBMODE_MAG 0x00000030 |
| #define OUTPUTSETTINGS_CALIBMODE_MAG_MASK 0x00000040 |
| #define OUTPUTSETTINGS_CALIBMODE_MASK 0x00000070 |
| #define OUTPUTSETTINGS_DATAFORMAT_F1220 0x00000100 |
| #define OUTPUTSETTINGS_DATAFORMAT_FLOAT 0x00000000 |
| #define OUTPUTSETTINGS_DATAFORMAT_MASK 0x00000300 |
| #define OUTPUTSETTINGS_ORIENTMODE_EULER 0x00000004 |
| #define OUTPUTSETTINGS_ORIENTMODE_MASK 0x0000000C |
| #define OUTPUTSETTINGS_ORIENTMODE_MATRIX 0x00000008 |
| #define OUTPUTSETTINGS_ORIENTMODE_QUATERNION 0x00000000 |
| #define OUTPUTSETTINGS_TIMESTAMP_MASK 0x00000003 |
| #define OUTPUTSETTINGS_TIMESTAMP_NONE 0x00000000 |
| #define OUTPUTSETTINGS_TIMESTAMP_SAMPLECNT 0x00000001 |
| #define OUTPUTSETTINGS_XM 0x00000001 |
| #define PARAM_FILTER_GAIN (const unsigned char)0x00 |
| #define PARAM_FILTER_RHO (const unsigned char)0x01 |
| #define PARAM_SYNCIN_MODE (const unsigned char)0x00 |
| #define PARAM_SYNCIN_OFFSET (const unsigned char)0x02 |
| #define PARAM_SYNCIN_SKIPFACTOR (const unsigned char)0x01 |
| #define PARAM_SYNCOUT_MODE (const unsigned char)0x00 |
| #define PARAM_SYNCOUT_OFFSET (const unsigned char)0x02 |
| #define PARAM_SYNCOUT_PULSEWIDTH (const unsigned char)0x03 |
| #define PARAM_SYNCOUT_SKIPFACTOR (const unsigned char)0x01 |
| #define PBR_115K2 B115200 |
| #define PBR_14K4 B14400 |
| #define PBR_19K2 B19200 |
| #define PBR_230K4 B230400 |
| #define PBR_28K8 B28800 |
| #define PBR_38K4 B38400 |
| #define PBR_460K8 B460800 |
| #define PBR_57K6 B57600 |
| #define PBR_76K8 B76800 |
| #define PBR_921K6 B921600 |
| #define PBR_9600 B9600 |
| #define PERIOD_100HZ 0x0480 |
| #define PERIOD_10HZ 0x2D00 |
| #define PERIOD_120HZ 0x03C0 |
| #define PERIOD_128HZ 0x0384 |
| #define PERIOD_12HZ 0x2580 |
| #define PERIOD_144HZ 0x0320 |
| #define PERIOD_150HZ 0x0300 |
| #define PERIOD_15HZ 0x1E00 |
| #define PERIOD_160HZ 0x02D0 |
| #define PERIOD_16HZ 0x1C20 |
| #define PERIOD_180HZ 0x0280 |
| #define PERIOD_18HZ 0x1900 |
| #define PERIOD_192HZ 0x0258 |
| #define PERIOD_200HZ 0x0240 |
| #define PERIOD_20HZ 0x1680 |
| #define PERIOD_225HZ 0x0200 |
| #define PERIOD_240HZ 0x01E0 |
| #define PERIOD_24HZ 0x12C0 |
| #define PERIOD_256HZ 0x01C2 |
| #define PERIOD_25HZ 0x1200 |
| #define PERIOD_288HZ 0x0190 |
| #define PERIOD_300HZ 0x0180 |
| #define PERIOD_30HZ 0x0F00 |
| #define PERIOD_320HZ 0x0168 |
| #define PERIOD_32HZ 0x0E10 |
| #define PERIOD_360HZ 0x0140 |
| #define PERIOD_36HZ 0x0C80 |
| #define PERIOD_384HZ 0x012C |
| #define PERIOD_400HZ 0x0120 |
| #define PERIOD_40HZ 0x0B40 |
| #define PERIOD_450HZ 0x0100 |
| #define PERIOD_45HZ 0x0A00 |
| #define PERIOD_480HZ 0x00F0 |
| #define PERIOD_48HZ 0x0960 |
| #define PERIOD_50HZ 0x0900 |
| #define PERIOD_512HZ 0x00E1 |
| #define PERIOD_60HZ 0x0780 |
| #define PERIOD_64HZ 0x0708 |
| #define PERIOD_72HZ 0x0640 |
| #define PERIOD_75HZ 0x0600 |
| #define PERIOD_80HZ 0x05A0 |
| #define PERIOD_90HZ 0x0500 |
| #define PERIOD_96HZ 0x04B0 |
| #define PREAMBLE (unsigned char)0xFA |
| #define RESETORIENTATION_ALIGN 4 |
| #define RESETORIENTATION_GLOBAL 2 |
| #define RESETORIENTATION_HEADING 1 |
| #define RESETORIENTATION_OBJECT 3 |
| #define RESETORIENTATION_STORE 0 |
| #define SENDRAWSTRING_DEFAULT 1 |
| #define SENDRAWSTRING_INIT 0 |
| #define SENDRAWSTRING_SEND 2 |
| #define STORE 0x01 |
| #define SYNC_CLOCKFREQ 29.4912e6 |
| #define SYNCIN_DISABLED 0x0000 |
| #define SYNCIN_EDGE_BOTH 0x0003 |
| #define SYNCIN_EDGE_FALLING 0x0002 |
| #define SYNCIN_EDGE_MASK 0x0003 |
| #define SYNCIN_EDGE_RISING 0x0001 |
| #define SYNCIN_TYPE_DOSAMPLING 0x0000 |
| #define SYNCIN_TYPE_MASK 0x000C |
| #define SYNCIN_TYPE_SENDLASTDATA 0x0004 |
| #define SYNCOUT_DISABLED 0x0000 |
| #define SYNCOUT_POL_MASK 0x0010 |
| #define SYNCOUT_POL_NEG 0x0000 |
| #define SYNCOUT_POL_POS 0x0010 |
| #define SYNCOUT_TYPE_MASK 0x000F |
| #define SYNCOUT_TYPE_PULSE 0x0002 |
| #define SYNCOUT_TYPE_TOGGLE 0x0001 |
| #define TO_DEFAULT 500 |
| #define TO_INIT 250 |
| #define TO_RETRY 50 |
| #define VALUE_CALIB_ACC 4 |
| #define VALUE_CALIB_GYR 5 |
| #define VALUE_CALIB_MAG 6 |
| #define VALUE_ORIENT_EULER 8 |
| #define VALUE_ORIENT_MATRIX 9 |
| #define VALUE_ORIENT_QUAT 7 |
| #define VALUE_RAW_ACC 0 |
| #define VALUE_RAW_GYR 1 |
| #define VALUE_RAW_MAG 2 |
| #define VALUE_RAW_TEMP 3 |
| #define VALUE_SAMPLECNT 10 |
| #define VALUE_TEMP 11 |