Zephyr API Documentation 4.2.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
7#ifndef ZEPHYR_INCLUDE_SENSING_DATATYPES_H_
8#define ZEPHYR_INCLUDE_SENSING_DATATYPES_H_
9
10#include <stdint.h>
11#include <zephyr/dsp/types.h>
12
20
54
59
92
111
131
135
136#endif /*ZEPHYR_INCLUDE_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:68
struct sensing_sensor_value_header header
Header of the sensor value data structure.
Definition sensing_datatypes.h:70
uint32_t timestamp_delta
Timestamp delta of the reading.
Definition sensing_datatypes.h:74
q31_t v[3]
3D vector of the reading represented as an array.
Definition sensing_datatypes.h:83
q31_t y
Y value of the 3D vector.
Definition sensing_datatypes.h:86
q31_t z
Z value of the 3D vector.
Definition sensing_datatypes.h:87
q31_t x
X value of the 3D vector.
Definition sensing_datatypes.h:85
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:71
Common header for all sensor value payloads.
Definition sensing_datatypes.h:48
uint16_t reading_count
Count of this data readings.
Definition sensing_datatypes.h:52
uint64_t base_timestamp
Base timestamp of this data readings, unit is micro seconds.
Definition sensing_datatypes.h:50
Sensor value data structure for single 1-axis value.
Definition sensing_datatypes.h:117
int8_t shift
The shift value for the q31_t v reading.
Definition sensing_datatypes.h:120
struct sensing_sensor_value_q31::@361124063133311063317235364315054120365236072176 readings[1]
Array of readings.
q31_t v
Value of the reading.
Definition sensing_datatypes.h:128
struct sensing_sensor_value_header header
Header of the sensor value data structure.
Definition sensing_datatypes.h:119
uint32_t timestamp_delta
Timestamp delta of the reading.
Definition sensing_datatypes.h:123
Sensor value data structure for single 1-axis value.
Definition sensing_datatypes.h:98
uint32_t v
Value of the reading.
Definition sensing_datatypes.h:108
uint32_t timestamp_delta
Timestamp delta of the reading.
Definition sensing_datatypes.h:103
struct sensing_sensor_value_header header
Header of the sensor value data structure.
Definition sensing_datatypes.h:100
struct sensing_sensor_value_uint32::@147360220120047335200013155150264177225355007267 readings[1]
Array of readings.