30namespace ADS131M08Defs
33static constexpr int CHANNELS_NUM = 8;
34static constexpr int CALIBRATION_SAMPLES = 250;
35static constexpr int SELF_TEST_SAMPLES = 250;
36static constexpr int FULL_FRAME_SIZE = 30;
37static constexpr uint16_t RESET_CMD_RESPONSE = 0xFF28;
38static constexpr uint16_t WRITE_CMD_RESPONSE = 0x4000;
41constexpr float PGA_LSB_SIZE[8] = {143.0511e-9, 71.5256e-9, 35.7628e-9,
42 17.8814e-9, 8.9407e-9, 4.4703e-9,
43 2.2352e-9, 1.1176e-9};
45static constexpr float V_REF = 1.2;
46static constexpr float TEST_SIGNAL_FACTOR = 2.0 / 15.0;
47static constexpr float TEST_SIGNAL_SLACK = 0.1;
71enum class PGA : uint16_t
176namespace RegStatusMasks
178constexpr uint16_t
LOCK = 0x1 << 15;
183constexpr uint16_t
RESET = 0x1 << 10;
191namespace RegModeMasks
196constexpr uint16_t
RESET = 0x1 << 10;
204namespace RegClockMasks
210constexpr uint16_t
OSR = 0x7 << 2;
214namespace RegGainMasks
222namespace RegConfigurationMasks
232namespace RegChannelMasks
constexpr uint16_t CFG_MUX
constexpr uint16_t CFG_PHASE
constexpr uint16_t CFG_DCBLK_DIS
constexpr uint16_t CH1_EN
constexpr uint16_t CH3_EN
constexpr uint16_t POWER_MODE
constexpr uint16_t CH2_EN
constexpr uint16_t CH0_EN
constexpr uint16_t GC_DLY
constexpr uint16_t CD_LEN
constexpr uint16_t CD_ALLCH
constexpr uint16_t CD_NUM
constexpr uint16_t PGA_GAIN_3
constexpr uint16_t PGA_GAIN_2
constexpr uint16_t PGA_GAIN_1
constexpr uint16_t PGA_GAIN_0
constexpr uint16_t CRC_TYPE
constexpr uint16_t DRDY_HiZ
constexpr uint16_t WLENGTH
constexpr uint16_t DRDY_FMT
constexpr uint16_t REG_CRC_EN
constexpr uint16_t TIMEOUT
constexpr uint16_t RX_CRC_EN
constexpr uint16_t DRDY_SEL
constexpr uint16_t CRC_ERR
constexpr uint16_t REG_MAP
constexpr uint16_t F_RESYNC
constexpr uint16_t CRC_TYPE
constexpr uint16_t WLENGTH
OversamplingRatio
ADC's oversampling ratio configurations.
constexpr float PGA_LSB_SIZE[8]
@ PGA_2
Full scale resolution is ±600mV.
@ PGA_4
Full scale resolution is ±300mV.
@ PGA_16
Full scale resolution is ±75mV.
@ PGA_64
Full scale resolution is ±18.75mV.
@ PGA_1
Full scale resolution is ±1.2V.
@ PGA_128
Full scale resolution is ±9.375mV.
@ PGA_8
Full scale resolution is ±150mV.
@ PGA_32
Full scale resolution is ±37.5mV.
This file includes all the types the logdecoder script will decode.