test IMU output

This commit is contained in:
Denis 2023-11-17 23:07:16 +01:00
parent 720435b6e8
commit 9c33257a3b
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03
18 changed files with 1102 additions and 251 deletions

View file

@ -1,6 +1,6 @@
#pragma once
#include "rogue_enemy.h"
#include "imu_message.h"
#define DEV_IIO_HAS_ACCEL 0x00000001U
#define DEV_IIO_HAS_ANGLVEL 0x00000002U
@ -60,4 +60,9 @@ int dev_iio_read(
struct input_event *const buf,
size_t buf_sz,
uint32_t *const buf_out
);
int dev_iio_read_imu(
const dev_iio_t *const iio,
imu_message_t *const out
);