105 std::chrono::nanoseconds timeoutDma,
129 bool init()
override;
222 const std::chrono::nanoseconds timeoutDma;
223 float pressureOffset = 0;
242 static_assert(
sizeof(sensorSettings) == 2,
243 "sensorSettings size is not 2 bytes");
245 struct ND030DDataExtended
248 uint16_t temperature;
Simple RAII class to handle DMA streams.
static PrintLogger getLogger(const string &name)
bool selfTest() override
Not implemented.
ND030XData sampleImpl() override
Read a data sample from the sensor. In case of errors, the method should return the last available co...
void setIOWatchdog(IOWatchdogEnable iow)
Enables or disables the IO watchdog.
static SPIBusConfig getDefaultSPIConfig()
Constructs the default config for the SPI bus.
static float rangeToPressure(FullScaleRange fsr)
Converts the FullScale value to its corresponding range.
void setFullScaleRange(FullScaleRange fsr)
Sets the full-scale range for the sensor.
void setOutputDataRate(uint8_t odr)
function to set the output data rate
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.
void setNotch(NotchEnable ntc)
Enables or disables the notch filter.
void setBWLimitFilter(BWLimitFilter bwl)
Sets the bandwidth limit filter for the sensor.
float getOffset()
Get the current offset of this sensor. The offset is stored as a int16_t and can be both postive or n...
static const char MODEL_NAME[]
bool checkModelMatch()
Checks if the sensor model matches the expected model.
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 init() override
Initializes the sensor.
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.