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
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;
39 struct {
40 uint16_t rate_hz;
41 uint16_t range_dps;
44 struct {
45 uint16_t rate_hz;
46 uint8_t range_gauss;
51 uint8_t num_buffers;
53 uint8_t flags;
54} __packed;
55
56#ifdef __cplusplus
57}
58#endif
59
60#endif /* INFUSE_SDK_INCLUDE_INFUSE_TASK_RUNNER_TASKS_IMU_ARGS_H_ */
@ 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
@ TASK_IMU_FLAGS_LOW_POWER_MODE
Definition imu_args.h:28
IMU task arguments.
Definition imu_args.h:32
uint8_t range_g
Definition imu_args.h:36
uint16_t range_dps
Definition imu_args.h:41
uint16_t fifo_sample_buffer
Requested number of samples to buffer in FIFO.
Definition imu_args.h:49
struct task_imu_args::@56 magnetometer
Magnetometer configuration
uint16_t rate_hz
Definition imu_args.h:35
struct task_imu_args::@54 accelerometer
Accelerometer configuration
uint8_t num_buffers
Run for this many buffers then terminate.
Definition imu_args.h:51
uint8_t range_gauss
Definition imu_args.h:46
uint8_t flags
Operational flags.
Definition imu_args.h:53
struct task_imu_args::@55 gyroscope
Gyroscope configuration