aboutsummaryrefslogtreecommitdiff
path: root/test_fw/include/lsm6dsm.h
blob: 17c80f5881b193764b06d0e6d6c4eb3ecb22ab68 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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, );
    };
}