Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
sensor_data_types.h File Reference

Decoded data types for the sensor API. More...

#include <zephyr/dsp/types.h>
#include <zephyr/dsp/print_format.h>
#include <inttypes.h>

Go to the source code of this file.

Data Structures

struct  sensor_data_header
 Header common to all decoded sensor data types. More...
struct  sensor_three_axis_data
 Data for a sensor channel which reports on three axes. More...
struct  sensor_three_axis_data::sensor_three_axis_sample_data
struct  sensor_game_rotation_vector_data
 Data for a sensor channel which reports game rotation vector data. More...
struct  sensor_game_rotation_vector_data::sensor_game_rotation_vector_sample_data
struct  sensor_occurrence_data
 Data from a sensor where we only care about an event occurring. More...
struct  sensor_occurrence_data::sensor_occurrence_sample_data
struct  sensor_q31_data
 Data for a sensor channel which reports a scalar data. More...
struct  sensor_q31_data::sensor_q31_sample_data
struct  sensor_byte_data
 Data from a sensor that produces a byte of data. More...
struct  sensor_byte_data::sensor_byte_sample_data
struct  sensor_uint64_data
 Data from a sensor that produces a count like value. More...
struct  sensor_uint64_data::sensor_uint64_sample_data

Macros

#define PRIsensor_three_axis_data   PRIu64 "ns, (%" PRIq(6) ", %" PRIq(6) ", %" PRIq(6) ")"
#define PRIsensor_three_axis_data_arg(data_, readings_offset_)
#define PRIsensor_game_rotation_vector_data
#define PRIsensor_game_rotation_vector_data_arg(data_, readings_offset_)
#define PRIsensor_occurrence_data   PRIu64 "ns"
#define PRIsensor_occurrence_data_arg(data_, readings_offset_)
#define PRIsensor_q31_data   PRIu64 "ns (%" PRIq(6) ")"
#define PRIsensor_q31_data_arg(data_, readings_offset_)
#define PRIsensor_byte_data(field_name_)
#define PRIsensor_byte_data_arg(data_, readings_offset_, field_name_)
#define PRIsensor_uint64_data   PRIu64 "ns (%" PRIu64 ")"
#define PRIsensor_uint64_data_arg(data_, readings_offset_)

Detailed Description

Decoded data types for the sensor API.