196 void enableGlobalChopMode();
203 void disableGlobalChopMode();
229 bool readSamples(int32_t rawValues[ADS131M04Defs::CHANNELS_NUM]);
239 uint8_t data[ADS131M04Defs::FULL_FRAME_SIZE]);
Driver for ADS131M04 4 simultaneous channels adc.
bool init() override
Initialize the sensor.
ADS131M04Data sampleImpl() override
Read a data sample from the sensor. In case of errors, the method should return the last available co...
bool selfTest() override
The self test samples internally connects each channel to known test signals and verifies if the samp...
void calibrateOffset(ADS131M04Defs::Channel channel)
Samples each channel, averages the samples and applies offset compensation in the device.
ADS131M04(SPIBusInterface &bus, miosix::GpioPin cs, SPIBusConfig spiConfig, const Config &config)
void applyConfig(Config config)
Overwrites the sensor settings.
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.
bool globalChopModeEnabled
ChannelConfig channelsConfig[ADS131M04Defs::CHANNELS_NUM]
ADS131M04Defs::OversamplingRatio oversamplingRatio
SPI Bus configuration for a specific slave.
Contains information about a single SPI slave device.