160 static_assert(
sizeof(sensorSettings) == 2,
161 "sensorSettings size is not 2 bytes");
163 struct ND015ADataExtended
166 uint16_t temperature;
static PrintLogger getLogger(const string &name)
bool init() override
Initializes the sensor.
void setBWLimitFilter(BWLimitFilter bwl)
Sets the bandwidth limit filter for the sensor.
bool checkModelMatch()
Checks if the sensor model matches the expected model.
void setNotch(NotchEnable ntc)
Enables or disables the notch filter.
bool selfTest() override
Not implemented.
static const char MODEL_NAME[]
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...
void setIOWatchdog(IOWatchdogEnable iow)
function to enable the IO watchdog
void setOutputDataRate(uint8_t odr)
function to set the output data rate
ND015A(SPIBusInterface &bus, miosix::GpioPin cs, SPIBusConfig spiConfig, IOWatchdogEnable iow=IOWatchdogEnable::DISABLED, BWLimitFilter bwl=BWLimitFilter::BWL_200, NotchEnable ntc=NotchEnable::ENABLED, uint8_t odr=0x1C)
Constructor for the ND015A 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.
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.