196 void enableGlobalChopMode();
203 void disableGlobalChopMode();
229 bool readSamples(int32_t rawValues[ADS131M08Defs::CHANNELS_NUM]);
239 uint8_t data[ADS131M08Defs::FULL_FRAME_SIZE]);
Driver for ADS131M08 8 simultaneous channels adc.
bool selfTest() override
The self test samples internally connects each channel to known test signals and verifies if the samp...
ADS131M08(SPIBusInterface &bus, miosix::GpioPin cs, SPIBusConfig spiConfig, const Config &config)
void applyConfig(Config config)
Overwrites the sensor settings.
bool init() override
Initialize the sensor.
void calibrateOffset(ADS131M08Defs::Channel channel)
Samples each channel, averages the samples and applies offset compensation in the device.
ADS131M08Data sampleImpl() override
Read a data sample from the sensor. In case of errors, the method should return the last available co...
static PrintLogger getLogger(const string &name)
Interface for low level access of a SPI bus as a master.
Provides high-level access to the SPI Bus for a single transaction.
Base sensor class with has to be extended by any sensor driver.
OversamplingRatio
ADC's oversampling ratio configurations.
@ PGA_1
Full scale resolution is ±1.2V.
This file includes all the types the logdecoder script will decode.
ChannelConfig channelsConfig[ADS131M08Defs::CHANNELS_NUM]
ADS131M08Defs::OversamplingRatio oversamplingRatio
bool globalChopModeEnabled
SPI Bus configuration for a specific slave.
Contains information about a single SPI slave device.