Zephyr API Documentation 4.0.0-rc2
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
sensor_data_types.h File Reference
#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
 
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_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
 
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_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_)
 

Macro Definition Documentation

◆ PRIsensor_byte_data

#define PRIsensor_byte_data ( field_name_)
Value:
PRIu64 "ns (" STRINGIFY(field_name_) " = %" PRIu8 ")"
#define STRINGIFY(s)
Definition common.h:134
#define PRIu8
Definition inttypes.h:58
#define PRIu64
Definition inttypes.h:61

◆ PRIsensor_byte_data_arg

#define PRIsensor_byte_data_arg ( data_,
readings_offset_,
field_name_ )
Value:
(data_).header.base_timestamp_ns + (data_).readings[(readings_offset_)].timestamp_delta, \
(data_).readings[(readings_offset_)].field_name_

◆ PRIsensor_occurrence_data

#define PRIsensor_occurrence_data   PRIu64 "ns"

◆ PRIsensor_occurrence_data_arg

#define PRIsensor_occurrence_data_arg ( data_,
readings_offset_ )
Value:
(data_).header.base_timestamp_ns + (data_).readings[(readings_offset_)].timestamp_delta

◆ PRIsensor_q31_data

#define PRIsensor_q31_data   PRIu64 "ns (%" PRIq(6) ")"

◆ PRIsensor_q31_data_arg

#define PRIsensor_q31_data_arg ( data_,
readings_offset_ )
Value:
(data_).header.base_timestamp_ns + (data_).readings[(readings_offset_)].timestamp_delta, \
PRIq_arg((data_).readings[(readings_offset_)].value, 6, (data_).shift)
#define PRIq_arg(q, precision, shift)
Insert Q value arguments to print format.
Definition print_format.h:58

◆ PRIsensor_three_axis_data

#define PRIsensor_three_axis_data   PRIu64 "ns, (%" PRIq(6) ", %" PRIq(6) ", %" PRIq(6) ")"

◆ PRIsensor_three_axis_data_arg

#define PRIsensor_three_axis_data_arg ( data_,
readings_offset_ )
Value:
(data_).header.base_timestamp_ns + (data_).readings[(readings_offset_)].timestamp_delta, \
PRIq_arg((data_).readings[(readings_offset_)].x, 6, (data_).shift), \
PRIq_arg((data_).readings[(readings_offset_)].y, 6, (data_).shift), \
PRIq_arg((data_).readings[(readings_offset_)].z, 6, (data_).shift)

◆ PRIsensor_uint64_data

#define PRIsensor_uint64_data   PRIu64 "ns (%" PRIu64 ")"

◆ PRIsensor_uint64_data_arg

#define PRIsensor_uint64_data_arg ( data_,
readings_offset_ )
Value:
(data_).header.base_timestamp_ns + (data_).readings[(readings_offset_)].timestamp_delta, \
(data_).readings[(readings_offset_)].value