#include <ND015A.h>
|
ND015XData | sampleImpl () override |
| Read a data sample from the sensor. In case of errors, the method should return the last available correct sample.
|
|
Definition at line 34 of file ND015A.h.
◆ BWLimitFilter
Enumerator |
---|
BWL_1 | |
BWL_2 | |
BWL_5 | |
BWL_10 | |
BWL_20 | |
BWL_50 | |
BWL_100 | |
BWL_200 | |
Definition at line 45 of file ND015A.h.
◆ IOWatchdogEnable
Enumerator |
---|
DISABLED | |
ENABLED | |
Definition at line 39 of file ND015A.h.
◆ NotchEnable
Enumerator |
---|
DISABLED | |
ENABLED | |
Definition at line 57 of file ND015A.h.
◆ ND015A()
Constructor for the ND015A sensor.
- Parameters
-
bus | SPI bus interface. |
cs | Chip select GPIO pin. |
spiConfig | SPI bus configuration. |
Definition at line 51 of file ND015A.cpp.
◆ checkModelMatch()
bool Boardcore::ND015A::checkModelMatch |
( |
| ) |
|
Checks if the sensor model matches the expected model.
- Returns
- True if the model matches, false otherwise.
- Warning
- The function might return false even when it should not as the SPI transaction sometimes ads some zeroes when it should not. This is because the sensore requires a clock cycle greater than the one we can provide
Definition at line 72 of file ND015A.cpp.
◆ getDefaultSPIConfig()
◆ init()
bool Boardcore::ND015A::init |
( |
| ) |
|
|
overridevirtual |
◆ sampleImpl()
Read a data sample from the sensor. In case of errors, the method should return the last available correct sample.
- Returns
- sensor data sample
Implements Boardcore::Sensor< ND015XData >.
Definition at line 147 of file ND015A.cpp.
◆ selfTest()
bool Boardcore::ND015A::selfTest |
( |
| ) |
|
|
overridevirtual |
◆ setBWLimitFilter()
Sets the bandwidth limit filter for the sensor.
- Parameters
-
bwl | Bandwidth limit filter setting. |
Definition at line 125 of file ND015A.cpp.
◆ setIOWatchdog()
function to enable the IO watchdog
- Parameters
-
Definition at line 114 of file ND015A.cpp.
◆ setNotch()
Enables or disables the notch filter.
- Parameters
-
Definition at line 136 of file ND015A.cpp.
◆ setOutputDataRate()
void Boardcore::ND015A::setOutputDataRate |
( |
uint8_t | odr | ) |
|
function to set the output data rate
- Parameters
-
odr | output data rate for the sensor, the actual odr is calculated as 444Hz / odr. Allowed values are 0x00 to 0xFF, 0x00 will select the auto-select rate mode |
Definition at line 103 of file ND015A.cpp.
◆ bwl
◆ fsr
uint8_t Boardcore::ND015A::fsr |
◆ iow
◆ MODEL_NAME
const char Boardcore::ND015A::MODEL_NAME = "ND015A" |
|
static |
◆ ntc
◆ odr
uint8_t Boardcore::ND015A::odr |
The documentation for this class was generated from the following files: