diff options
| author | Nathan Perry <np@npry.dev> | 2024-10-24 01:13:31 -0400 |
|---|---|---|
| committer | Nathan Perry <np@npry.dev> | 2024-10-24 01:13:31 -0400 |
| commit | 96e8a6363d481171315ab81b3f72bfa381d64f02 (patch) | |
| tree | fb3e962ecf7b8939b632870267cf0556c521f959 /test_fw/include/lsm6dsm.h | |
| parent | 5077fec0348e717fa93bd1879548fed03fcae52e (diff) | |
read lsm
Diffstat (limited to 'test_fw/include/lsm6dsm.h')
| -rw-r--r-- | test_fw/include/lsm6dsm.h | 16 |
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, ); + }; +} |
