Linux SDK (lite-qmi)  MBPL_SDK_R25_ENG3
sensorData_t Struct Reference

#include <loc.h>

Data Fields

uint32_t timeOfFirstSample
 
uint8_t flags
 
uint8_t sensorDataLen
 
uint16_t timeOffset [MAX_SENSOR_DATA_LEN]
 
uint32_t xAxis [MAX_SENSOR_DATA_LEN]
 
uint32_t yAxis [MAX_SENSOR_DATA_LEN]
 
uint32_t zAxis [MAX_SENSOR_DATA_LEN]
 

Detailed Description

This structure specifies information regarding the 3-Axis Sensor Data. Please check has_<Param_Name> field for presence of optional parameters

Parameters
timeOfFirstSample
  • Denotes a full 32-bit time stamp of the first (oldest) sample in this message.
  • The time stamp is in the time reference scale that is used by the sensor time source.
  • Units - Milliseconds
flags
  • Flags to indicate any deviation from the default measurement assumptions.
  • All unused bits in this field must be set to 0.
  • Valid bitmasks
    • 0x01 - Bitmask to specify that a sign reversal is required while interpreting the sensor data; only applies to the accelerometer samples
    • 0x02 - Bitmask to specify that the sensor time stamp is the same as the modem time stamp
sensorDataLen
  • Number of sets of the following elements
    • timeOffset
    • xAxis
    • yAxis
    • zAxis
timeOffset
  • Sample time offset
  • Units - Milliseconds
xAxis
  • Sensor x-axis sample.
  • Units Accelerometer - Meters/seconds square
  • Units Gyroscope - Radians/second
yAxis
  • Sensor Y-axis sample.
  • Units Accelerometer - Meters/seconds square
  • Units Gyroscope - Radians/second
xAxis
  • Sensor Z-axis sample.
  • Units Accelerometer - Meters/seconds square
  • Units Gyroscope - Radians/second

The documentation for this struct was generated from the following file: