Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
sensing_datatypes.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022-2023 Intel Corporation.
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12
13#ifndef ZEPHYR_INCLUDE_SENSING_SENSING_DATATYPES_H_
14#define ZEPHYR_INCLUDE_SENSING_SENSING_DATATYPES_H_
15
16#include <stdint.h>
17#include <zephyr/dsp/types.h>
18
26
60
65
98
117
137
141
142#endif /* ZEPHYR_INCLUDE_SENSING_SENSING_DATATYPES_H_ */
int32_t q31_t
32-bit fractional data type in 1.31 format.
Definition types.h:35
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT64_TYPE__ uint64_t
Definition stdint.h:91
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
__INT8_TYPE__ int8_t
Definition stdint.h:72
Sensor value data structure types based on common data types.
Definition sensing_datatypes.h:74
struct sensing_sensor_value_header header
Header of the sensor value data structure.
Definition sensing_datatypes.h:76
uint32_t timestamp_delta
Timestamp delta of the reading.
Definition sensing_datatypes.h:80
q31_t v[3]
3D vector of the reading represented as an array.
Definition sensing_datatypes.h:89
q31_t y
Y value of the 3D vector.
Definition sensing_datatypes.h:92
q31_t z
Z value of the 3D vector.
Definition sensing_datatypes.h:93
q31_t x
X value of the 3D vector.
Definition sensing_datatypes.h:91
struct sensing_sensor_value_3d_q31::@176346110177305251225137216044006321172315250021 readings[1]
Array of readings.
int8_t shift
The shift value for the q31_t v[3] reading.
Definition sensing_datatypes.h:77
Common header for all sensor value payloads.
Definition sensing_datatypes.h:54
uint16_t reading_count
Count of this data readings.
Definition sensing_datatypes.h:58
uint64_t base_timestamp
Base timestamp of this data readings, unit is micro seconds.
Definition sensing_datatypes.h:56
Sensor value data structure for single 1-axis value.
Definition sensing_datatypes.h:123
int8_t shift
The shift value for the q31_t v reading.
Definition sensing_datatypes.h:126
struct sensing_sensor_value_q31::@361124063133311063317235364315054120365236072176 readings[1]
Array of readings.
q31_t v
Value of the reading.
Definition sensing_datatypes.h:134
struct sensing_sensor_value_header header
Header of the sensor value data structure.
Definition sensing_datatypes.h:125
uint32_t timestamp_delta
Timestamp delta of the reading.
Definition sensing_datatypes.h:129
Sensor value data structure for single 1-axis value.
Definition sensing_datatypes.h:104
uint32_t v
Value of the reading.
Definition sensing_datatypes.h:114
uint32_t timestamp_delta
Timestamp delta of the reading.
Definition sensing_datatypes.h:109
struct sensing_sensor_value_header header
Header of the sensor value data structure.
Definition sensing_datatypes.h:106
struct sensing_sensor_value_uint32::@147360220120047335200013155150264177225355007267 readings[1]
Array of readings.