84 std::chrono::nanoseconds timeoutDma,
106 bool init()
override;
191 const std::chrono::nanoseconds timeoutDma;
192 float pressureOffset = 0;
211 static_assert(
sizeof(sensorSettings) == 2,
212 "sensorSettings size is not 2 bytes");
214 struct ND015ADataExtended
217 uint16_t temperature;
Simple RAII class to handle DMA streams.
static PrintLogger getLogger(const string &name)
bool init() override
Initializes the sensor.
void setBWLimitFilter(BWLimitFilter bwl)
Sets the bandwidth limit filter for the sensor.
void updateOffset(float offset)
Modify the offset of this sensor. The offset is stored as a int16_t and can be both postive or negati...
bool checkModelMatch()
Checks if the sensor model matches the expected model.
void setNotch(NotchEnable ntc)
Enables or disables the notch filter.
void setOffset(float offset)
Set the offset of this sensor. The offset is stored as a int16_t and can be both postive or negative.
bool selfTest() override
Not implemented.
static const char MODEL_NAME[]
static const int FULLSCALE
static SPIBusConfig getDefaultSPIConfig()
Constructs the default config for the SPI bus.
ND015XData sampleImpl() override
Read a data sample from the sensor. In case of errors, the method should return the last available co...
float getOffset()
Get the current offset of this sensor. The offset is stored as a int16_t and can be both postive or n...
void setIOWatchdog(IOWatchdogEnable iow)
function to enable the IO watchdog
void setOutputDataRate(uint8_t odr)
function to set the output data rate
Interface for low level access of a SPI bus as a master.
Base sensor class with has to be extended by any sensor driver.
Driver for the VN100S IMU.
SPI Bus configuration for a specific slave.
Contains information about a single SPI slave device.