19 #include "include/ad7124-private.h" 194 int begin (
int slave_select);
243 int enableChannel (uint8_t ch,
bool enable =
true);
250 int channelConfig (uint8_t ch);
297 int setConfigOffset (uint8_t cfg, uint32_t value);
309 int setConfigGain (uint8_t cfg, uint32_t value);
318 long read (uint8_t ch);
325 int startSingleConversion (uint8_t ch);
332 int waitEndOfConversion (uint32_t timeout_ms);
344 int currentChannel();
351 int internalCalibration (uint8_t ch);
361 static double toVoltage (
long value,
int gain,
double vref,
bool bipolar =
true);
367 inline uint32_t timeout()
const;
369 inline uint32_t timeout()
const {
379 inline void setTimeout (uint32_t ms);
381 inline void setTimeout (uint32_t ms) {
391 long getRegister (Ad7124::RegisterId
id);
399 int setRegister (Ad7124::RegisterId
id,
long value);
403 int readRegister (Ad7124::RegisterId
id);
404 int writeRegister (Ad7124::RegisterId
id);
408 Ad7124Register reg[Ad7124::Reg_No];
IoutCh
Channel select bits for the excitation current for IOUT.
PostFilterType
Post filter type select bits. When the filter bits are set to 1, the sinc 3 filter is followed by a p...
FilterType
Filter type select bits. These bits select the filter type.
InputSel
Analog input AIN input select.
PgaSel
Gain select bits. These bits select the gain to use when converting on any channels using this config...
ClkSel
These bits select the clock source for the ADC Either the on-chip 614.4 kHz clock can be used or an e...
PowerMode
Power Mode Select These bits select the power mode. The current consumption and output data rate rang...
IoutCurrent
These bits set the value of the excitation current for IOUT.
OperatingMode
Control the mode of operation for ADC.
RefSel
Reference source select bits. These bits select the reference source to use when converting on any ch...
BurnoutCurrent
These bits select the magnitude of the sensor burnout detect current source.