111 bool init()
override;
192 static_assert(
sizeof(sensorSettings) == 2,
193 "sensorSettings size is not 2 bytes");
195 struct ND015DDataExtended
198 uint16_t temperature;
static PrintLogger getLogger(const string &name)
void setIOWatchdog(IOWatchdogEnable iow)
Enables or disables the IO watchdog.
void setFullScaleRange(FullScaleRange fsr)
Sets the full-scale range for the sensor.
bool init() override
Initializes the sensor.
void setBWLimitFilter(BWLimitFilter bwl)
Sets the bandwidth limit filter for the sensor.
void setNotch(NotchEnable ntc)
Enables or disables the notch filter.
static SPIBusConfig getDefaultSPIConfig()
Constructs the default config for the SPI bus.
static float rangeToPressure(FullScaleRange fsr)
Converts the FullScale value to its corresponding range.
static const char MODEL_NAME[]
bool checkModelMatch()
Checks if the sensor model matches the expected model.
void setOutputDataRate(uint8_t odr)
function to set the output data rate
ND015XData sampleImpl() override
Read a data sample from the sensor. In case of errors, the method should return the last available co...
ND015D(SPIBusInterface &bus, miosix::GpioPin cs, SPIBusConfig spiConfig, FullScaleRange fsr=FullScaleRange::FS_2, IOWatchdogEnable iow=IOWatchdogEnable::DISABLED, BWLimitFilter bwl=BWLimitFilter::BWL_200, NotchEnable ntc=NotchEnable::ENABLED, uint8_t odr=0x1C)
Constructor for the ND015D sensor.
bool selfTest() override
Not implemented.
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.