Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
imu_args.h
Go to the documentation of this file.
1
9
10#ifndef INFUSE_SDK_INCLUDE_INFUSE_TASK_RUNNER_TASKS_IMU_ARGS_H_
11#define INFUSE_SDK_INCLUDE_INFUSE_TASK_RUNNER_TASKS_IMU_ARGS_H_
12
13#include <stdint.h>
14
15#include <zephyr/sys/util.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21enum {
25};
26
27enum {
29};
30
34 struct {
35 uint16_t rate_hz;
36 uint8_t range_g;
37 uint8_t pad;
38 } __packed accelerometer;
40 struct {
41 uint16_t rate_hz;
42 uint16_t range_dps;
43 uint8_t pad;
44 } __packed gyroscope;
46 struct {
47 uint16_t rate_hz;
48 uint8_t range_gauss;
49 uint8_t pad;
50 } __packed magnetometer;
54 uint8_t num_buffers;
56 uint8_t flags;
57} __packed;
58
59#ifdef __cplusplus
60}
61#endif
62
63#endif /* INFUSE_SDK_INCLUDE_INFUSE_TASK_RUNNER_TASKS_IMU_ARGS_H_ */
@ TASK_IMU_FLAGS_LOW_POWER_MODE
Definition imu_args.h:28
@ TASK_IMU_LOG_MAG
Definition imu_args.h:24
@ TASK_IMU_LOG_ACC
Definition imu_args.h:22
@ TASK_IMU_LOG_GYR
Definition imu_args.h:23
IMU task arguments.
Definition imu_args.h:32
uint8_t range_g
Definition imu_args.h:36
struct task_imu_args::@202037212005166024265031177222271162066307044270 accelerometer
Accelerometer configuration.
uint16_t range_dps
Definition imu_args.h:42
uint16_t fifo_sample_buffer
Requested number of samples to buffer in FIFO.
Definition imu_args.h:52
uint16_t rate_hz
Definition imu_args.h:35
struct task_imu_args::@373325256372105126203162141023372170013176366372 magnetometer
Magnetometer configuration.
uint8_t num_buffers
Run for this many buffers then terminate.
Definition imu_args.h:54
uint8_t range_gauss
Definition imu_args.h:48
uint8_t flags
Operational flags.
Definition imu_args.h:56
struct task_imu_args::@337205161272316302334223103110043336067331150367 gyroscope
Gyroscope configuration.
uint8_t pad
Definition imu_args.h:37