Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
sensing_sensor_value_q31 Struct Reference

Sensor value data structure for single 1-axis value. More...

#include <sensing_datatypes.h>

Data Fields

struct sensing_sensor_value_header header
 Header of the sensor value data structure.
 
int8_t shift
 The shift value for the q31_t v reading.
 
struct {
   uint32_t   timestamp_delta
 Timestamp delta of the reading. More...
 
   q31_t   v
 Value of the reading. More...
 
readings [1]
 Array of readings.
 

Detailed Description

Sensor value data structure for single 1-axis value.

struct sensing_sensor_value_q31 can be used by SENSING_SENSOR_TYPE_MOTION_HINGE_ANGLE sensor q31 version

Field Documentation

◆ header

struct sensing_sensor_value_header sensing_sensor_value_q31::header

Header of the sensor value data structure.

◆ 

struct { ... } sensing_sensor_value_q31::readings[1]

Array of readings.

◆ shift

int8_t sensing_sensor_value_q31::shift

The shift value for the q31_t v reading.

◆ timestamp_delta

uint32_t sensing_sensor_value_q31::timestamp_delta

Timestamp delta of the reading.

Unit is micro seconds.

◆ v

q31_t sensing_sensor_value_q31::v

Value of the reading.

For SENSING_SENSOR_TYPE_MOTION_HINGE_ANGLE, the unit is degrees.


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