Voss Connection Detection
1
Detect a connector click using realtime code on Bela hardware
|
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <linux/i2c.h>
#include <linux/i2c-dev.h>
#include <sys/ioctl.h>
#include <stropts.h>
#include <stdio.h>
#include "ICM20948.h"
#include <iostream>
#include <libraries/math_neon/math_neon.h>
Go to the source code of this file.
Macros | |
#define | MAX_BUS 64 |
#define | GYR_X_LSB 0x34 |
#define | GYR_X_MSB 0x33 |
#define | GYR_Y_LSB 0x36 |
#define | GYR_Y_MSB 0x35 |
#define | GYR_Z_LSB 0x38 |
#define | GYR_Z_MSB 0x37 |
#define | ACC_X_LSB 0x2E |
#define | ACC_X_MSB 0x2D |
#define | ACC_Y_LSB 0x30 |
#define | ACC_Y_MSB 0x2F |
#define | ACC_Z_LSB 0x32 |
#define | ACC_Z_MSB 0x31 |
#define ACC_X_LSB 0x2E |
Definition at line 23 of file ICM20948.cpp.
#define ACC_X_MSB 0x2D |
Definition at line 24 of file ICM20948.cpp.
#define ACC_Y_LSB 0x30 |
Definition at line 25 of file ICM20948.cpp.
#define ACC_Y_MSB 0x2F |
Definition at line 26 of file ICM20948.cpp.
#define ACC_Z_LSB 0x32 |
Definition at line 27 of file ICM20948.cpp.
#define ACC_Z_MSB 0x31 |
Definition at line 28 of file ICM20948.cpp.
#define GYR_X_LSB 0x34 |
Definition at line 16 of file ICM20948.cpp.
#define GYR_X_MSB 0x33 |
Definition at line 17 of file ICM20948.cpp.
#define GYR_Y_LSB 0x36 |
Definition at line 18 of file ICM20948.cpp.
#define GYR_Y_MSB 0x35 |
Definition at line 19 of file ICM20948.cpp.
#define GYR_Z_LSB 0x38 |
Definition at line 20 of file ICM20948.cpp.
#define GYR_Z_MSB 0x37 |
Definition at line 21 of file ICM20948.cpp.
#define MAX_BUS 64 |
Definition at line 13 of file ICM20948.cpp.