12 #ifndef _XSENS_STD_H_2006_09_11
13 # define _XSENS_STD_H_2006_09_11
17 #if defined(_WIN32) && !defined(_WIN32_WINNT)
18 # define _WIN32_WINNT 0x0502
30 typedef enum _XsensResultValue_ {
116 #define DELNUL(ptr) { delete ptr; ptr = NULL; }
118 #define CHKDELNUL(ptr) { if (ptr != NULL) { delete ptr; ptr = NULL; } }
120 #define LSTDELNUL(ptr) { delete[] ptr; ptr = NULL; }
122 #define LSTCHKDELNUL(ptr) { if (ptr != NULL) { delete[] ptr; ptr = NULL; } }
125 #define FREENUL(ptr) { free(ptr); ptr = NULL; }
127 #define CHKFREENUL(ptr) { if (ptr != NULL) { free(ptr); ptr = NULL; } }
139 #if !defined(_CMT_DLL_IMPORT) && !defined(_XME_DLL_IMPORT)
145 #define XSENS_LABEL_SIZE 64
146 #define XSENS_SHORT_STRING_SIZE 256
147 #define XSENS_LONG_STRING_SIZE 16384
const char * xsensResultText(const XsensResultValue result)
XsensResultValue
Xsens return values.
@ XRV_NODATA
No data is available.
@ XRV_CONFIGCHECKFAIL
The in-config check of the device failed.
@ XRV_PORTNOTFOUND
A required port could not be found.
@ XRV_BUSY
Busy processing, try again later.
@ XRV_ALREADYOPEN
An I/O device is already opened with this object.
@ XRV_SYNC_NO_MASTER
No master detected.
@ XRV_PARAMINVALID
An invalid parameter is supplied.
@ XRV_CHECKSUMFAULT
Checksum fault occured.
@ XRV_INSUFFICIENTDATA
Insufficient data was supplied to a function.
@ XRV_INPUTCANNOTBEOPENED
The specified i/o device can not be opened.
@ XRV_MEASUREMENTFAIL8
TX PC Buffer overflow, cannot fit full message.
@ XRV_VERSION_PROBLEM
The object has an unrecognized version, so it's not safe to perform the operation.
@ XRV_NOPORTOPEN
No serial port opened for reading/writing.
@ XRV_DATACORRUPT
A trusted data stream proves to contain corrupted data.
@ XRV_INVALIDMSG
The message is invalid or not implemented.
@ XRV_BUSNOTREADY
InitBus and/or SetBID are not issued.
@ XRV_SETBIDFAIL1
No reply to SetBID message during SetBID procedure.
@ XRV_ENDOFFILE
End of file is reached.
@ XRV_INVALIDINSTANCE
Invalid instance called.
@ XRV_NOFILEOPEN
No file opened for reading/writing.
@ XRV_NOFILEORPORTOPEN
No file or serial port opened for reading/writing.
@ XRV_OUTPUTCANNOTBEOPENED
The specified i/o device can not be opened.
@ XRV_VERSION_TOO_LOW
The version of the object is too low for the requested operation.
@ XRV_INSUFFICIENTSPACE
Insufficient buffer space available.
@ XRV_TIMEROVERFLOW
Timer overflows during measurement.
@ XRV_INVALIDPERIOD
Period sent is invalid.
@ XRV_NOTFOUND
The requested item was not found.
@ XRV_INITFUSIONFAILED
Failure during initialization of Fusion Engine.
@ XRV_SYNC_SECOND_MASTER
More than one master was detected.
@ XRV_INVALIDOPERATION
Operation is invalid at this point.
@ XRV_SETBIDFAIL2
Other than SetBIDAck received.
@ XRV_COULDNOTREADSETTINGS
A required settings file could not be opened or is missing some data.
@ XRV_INITBUSFAIL3
After four bus-scans still undetected Motion Trackers.
@ XRV_ERROR
A generic error occurred.
@ XRV_OUTOFMEMORY
No internal memory available.
@ XRV_MEASUREMENTFAIL1
Timer overflow - period too short to collect all data from Motion Trackers.
@ XRV_TIMEOUT
A timeout occurred.
@ XRV_MEASUREMENTFAIL2
Motion Tracker responds with other than SlaveData message.
@ XRV_MEASUREMENTFAIL3
Total bytes of data of Motion Trackers including sample counter exceeds 255 bytes.
@ XRV_NOBUS
No bus communication possible.
@ XRV_MEASUREMENTFAIL6
No correct response from Motion Tracker during measurement.
@ XRV_OK
Operation was performed successfully.
@ XRV_MEASUREMENTFAIL5
Timer overflows during measurement.
@ XRV_INITPORTFAILED
The low-level port handler failed to initialize.
@ XRV_NOXMFOUND
Could not find any Moven-compatible hardware.
@ XRV_MTLOCATIONINVALID
One or more sensors are not where they were expected.
@ XRV_INITBUSFAIL1
A slave did not respond to WaitForSetBID.
@ XRV_SYNC_SINGLE_SLAVE
The single connected device is configured as a slave.
@ XRV_INVALIDPARAM
An invalid parameter is supplied.
@ XRV_READINITFAILED
Failure during read of settings.
@ XRV_CALIBRATIONFAILED
A calibration routine failed.
@ XRV_NOTIMPLEMENTED
Operation not implemented in this version (yet)
@ XRV_READONLY
Tried to change a read-only value.
@ XRV_SYNC_NO_SYNC
A device was detected that was neither master nor slave.
@ XRV_UNEXPECTEDMSG
Unexpected message received (e.g. no acknowledge message received)
@ XRV_ONLYONEXMFOUND
Found only one responding Xbus Master.
@ XRV_SYNC_DATA_MISSING
A device is not sending enough data.
@ XRV_NULLPTR
Tried to supply a NULL value where it is not allowed.
@ XRV_INSUFFICIENTMTS
Not enough sensors were found.
@ XRV_OTHER
Something else was received than was requested.
@ XRV_BAUDRATEINVALID
Baud rate does not comply with valid range.
@ XRV_INVALIDID
Invalid id supplied.
@ XRV_MEASUREMENTFAIL7
TX PC Buffer is full.
@ XRV_MTCOUNTZERO
No sensors found.
@ XRV_ALREADYDONE
The operation is once only and has already been performed.
@ XRV_INITBUSFAIL2
An incorrect answer received after WaitForSetBID.
@ XRV_TIMEOUTNODATA
Operation aborted because of no data read.
@ XRV_MEASUREMENTFAIL4
Timer overflows during measurement.