|
SELKIELogger
1.0.0
|

Macros | |
| #define | LPMS_MSG_REPLY_ACK 0x00 |
| Command successful (Doesn't appear everywhere it should) | |
| #define | LPMS_MSG_REPLY_NAK 0x01 |
| Command unsuccessful. | |
| #define | LPMS_MSG_SAVE_REG 0x04 |
| Write data to specific internal registers. | |
| #define | LPMS_MSG_FACTORY_RESET 0x05 |
| Reset to default configuration. | |
| #define | LPMS_MSG_MODE_CMD 0x06 |
| Switch to command mode. | |
| #define | LPMS_MSG_MODE_STREAM 0x07 |
| Switch to continuous readout mode. | |
| #define | LPMS_MSG_GET_SENSORSTATE 0x08 |
| Get sensor state. | |
| #define | LPMS_MSG_GET_IMUDATA 0x09 |
| IMU data, as configured by LPMS_MSG_SET_OUTPUTS. | |
| #define | LPMS_MSG_GET_SENSORMODEL 0x14 |
| Get hardware model as 24 character string. | |
| #define | LPMS_MSG_GET_FIRMWAREVER 0x15 |
| Get firmware version as 24 character string. | |
| #define | LPMS_MSG_GET_SERIALNUM 0x16 |
| Get serial number as 24 character string. | |
| #define | LPMS_MSG_GET_FILTERVER 0x17 |
| Get filter version as 24 character string. | |
| #define | LPMS_MSG_SET_OUTPUTS 0x1E |
| Configure fields included in IMUDATA messages. | |
| #define | LPMS_MSG_GET_OUTPUTS 0x1F |
| Get fields configured for IMUDATA messages. | |
| #define | LPMS_MSG_SET_ID 0x20 |
| Reassign sensor ID. | |
| #define | LPMS_MSG_GET_ID 0x21 |
| Get current sensor ID. | |
| #define | LPMS_MSG_SET_FREQ 0x22 |
| Set streaming output rate (Hz) | |
| #define | LPMS_MSG_GET_FREQ 0x23 |
| Get current streaming output rate. | |
| #define | LPMS_MSG_SET_RADIANS 0x24 |
| Use radians for angular quantities (1) instead of degrees (0) | |
| #define | LPMS_MSG_GET_RADIANS 0x25 |
| Get unit for angular quantities - radians (1) or degrees (0) | |
| #define | LPMS_MSG_SET_ACCRANGE 0x32 |
| Set accelerometer range (g) | |
| #define | LPMS_MSG_GET_ACCRANGE 0x33 |
| Get accelerometer range (g) | |
| #define | LPMS_MSG_SET_GYRRANGE 0x3C |
| Set gyroscope range (dps) | |
| #define | LPMS_MSG_GET_GYRRANGE 0x3D |
| Get gyroscope range (dps) | |
| #define | LPMS_MSG_SET_MAGRANGE 0x46 |
| Set magnetometer range (gauss) | |
| #define | LPMS_MSG_GET_MAGRANGE 0x47 |
| Get magnetometer range (gauss) | |
| #define | LPMS_MSG_SET_FILTER 0x5A |
| Set motion filtering mode. | |
| #define | LPMS_MSG_GET_FILTER 0x5B |
| Get motion filtering mode. | |
| #define | LPMS_MSG_SET_UARTBAUD 0x82 |
| Set baud rate. | |
| #define | LPMS_MSG_GET_UARTBAUD 0x83 |
| Get baud rate. | |
| #define | LPMS_MSG_SET_UARTFORMAT 0x84 |
| Set output data format - LPMS (0), ASCII (1) | |
| #define | LPMS_MSG_GET_UARTFORMAT 0x85 |
| Get output data format - LPMS (0), ASCII (1) | |
| #define | LPMS_MSG_SET_UARTPRECISION 0x88 |
| Set output data precision - Fixed point (0) or floats (1) | |
| #define | LPMS_MSG_GET_UARTPRECISION 0x89 |
| Get output data precision - Fixed point (0) or floats (1) | |
This isn't a complete list, but should contain all commands likely to be used. Replies to GET commands use the same message type, and SET commands should generate LPMS_MSG_REPLY_ACK or LPMS_MSG_REPLY_NAK.