66 float sensitivity = 6.0 / 32767.0;
68 enum Register : uint8_t
75 HP_FILTER_RESET = 0x25,
94 enum PowerMode : uint8_t
105 enum RegisterMask : uint8_t
109 CTRL_REG1_Z_EN = 0x04,
110 CTRL_REG1_Y_EN = 0x02,
111 CTRL_REG1_X_EN = 0x01,
114 CTRL_REG4_ST_SIGN = 0x08,
LIS331HHData sampleImpl() override
Read a data sample from the sensor. In case of errors, the method should return the last available co...
bool init() override
Initialize the sensor.
LIS331HH(SPIBusInterface &bus, miosix::GpioPin cs, SPIBusConfig spiConfig)
void setFullScaleRange(FullScaleRange fs)
void setOutputDataRate(OutputDataRate odr)
bool selfTest() override
Check if the sensor is working.
Interface for low level access of a SPI bus as a master.
Base sensor class with has to be extended by any sensor driver.
This file includes all the types the logdecoder script will decode.
SPI Bus configuration for a specific slave.
Contains information about a single SPI slave device.