aboutsummaryrefslogtreecommitdiff
path: root/test_fw/include/lsm6dsm.h
diff options
context:
space:
mode:
Diffstat (limited to 'test_fw/include/lsm6dsm.h')
-rw-r--r--test_fw/include/lsm6dsm.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/test_fw/include/lsm6dsm.h b/test_fw/include/lsm6dsm.h
new file mode 100644
index 0000000..17c80f5
--- /dev/null
+++ b/test_fw/include/lsm6dsm.h
@@ -0,0 +1,16 @@
+#pragma once
+
+#include <Adafruit_SPIDevice.h>
+#include <Adafruit_BusIO_Register.h>
+
+namespace ocularium::lsm6dsm {
+ typedef Adafruit_BusIO_Register Reg;
+
+ struct LSM6DSM {
+ LSM6DSM(Adafruit_SPIDevice& device) : spi_device(device) {};
+
+ Adafruit_SPIDevice& spi_device;
+
+ Reg ctrl1 = Reg(&spi_device, );
+ };
+}