Register definition for ADS101x/111x devices. More...
Register definition for ADS101x/111x devices.
Definition in file ads101x_regs.h.
Go to the source code of this file.
ADS101x/111x register addresses | |
#define | ADS101X_CONV_RES_ADDR (0) |
#define | ADS101X_CONF_ADDR (1) |
#define | ADS101X_LOW_LIMIT_ADDR (2) |
#define | ADS101X_HIGH_LIMIT_ADDR (3) |
ADS101x/111x Config flags | |
Comparator flags have no effect on ADS1013 and ADS1113. | |
#define | ADS101X_CONF_OS_CONV (1 << 7) |
#define | ADS101X_CONF_COMP_MODE_WIND (1 << 4) |
#define | ADS101X_CONF_COMP_DIS ((1 << 1) | (1 << 0)) |
ADS101x/111x mux settings | |
Supports both single mode and differential. This has no effect on ADS1013-4 and ADS1113-4. | |
#define | ADS101X_MUX_MASK ((1 << 6) | (1 << 5) | (1 << 4)) |
#define | ADS101X_AIN0_DIFFM_AIN1 ((0 << 6) | (0 << 5) | (0 << 4)) |
#define | ADS101X_AIN0_DIFFM_AIN3 ((0 << 6) | (0 << 5) | (1 << 4)) |
#define | ADS101X_AIN1_DIFFM_AIN3 ((0 << 6) | (1 << 5) | (0 << 4)) |
#define | ADS101X_AIN2_DIFFM_AIN3 ((0 << 6) | (1 << 5) | (1 << 4)) |
#define | ADS101X_AIN0_SINGM ((1 << 6) | (0 << 5) | (0 << 4)) |
#define | ADS101X_AIN1_SINGM ((1 << 6) | (0 << 5) | (1 << 4)) |
#define | ADS101X_AIN2_SINGM ((1 << 6) | (1 << 5) | (0 << 4)) |
#define | ADS101X_AIN3_SINGM ((1 << 6) | (1 << 5) | (1 << 4)) |
ADS101x/111x programmable gain | |
Sets the full-scale range (max voltage value). This has no effect on ADS1013 and ADS1113 (both use 2.048V FSR). | |
#define | ADS101X_PGA_MASK ((1 << 3) | (1 << 2) | (1 << 1)) |
#define | ADS101X_PGA_FSR_6V144 ((0 << 3) | (0 << 2) | (0 << 1)) |
#define | ADS101X_PGA_FSR_4V096 ((0 << 3) | (0 << 2) | (1 << 1)) |
#define | ADS101X_PGA_FSR_2V048 ((0 << 3) | (1 << 2) | (0 << 1)) |
#define | ADS101X_PGA_FSR_1V024 ((0 << 3) | (1 << 2) | (1 << 1)) |
#define | ADS101X_PGA_FSR_0V512 ((1 << 3) | (0 << 2) | (0 << 1)) |
#define | ADS101X_PGA_FSR_0V256 ((1 << 3) | (0 << 2) | (1 << 1)) |
ADS101x/111x data rate settings | |
Determines how quickly samples are taken (even on one-shot mode) | |
#define | ADS101X_DATAR_MASK ((1 << 7) | (1 << 6) | (1 << 5)) |
#define | ADS101X_DATAR_128 ((0 << 7) | (0 << 6) | (0 << 5)) |
#define | ADS101X_DATAR_250 ((0 << 7) | (0 << 6) | (1 << 5)) |
#define | ADS101X_DATAR_490 ((0 << 7) | (1 << 6) | (0 << 5)) |
#define | ADS101X_DATAR_920 ((0 << 7) | (1 << 6) | (1 << 5)) |
#define | ADS101X_DATAR_1600 ((1 << 7) | (0 << 6) | (0 << 5)) |
#define | ADS101X_DATAR_2400 ((1 << 7) | (0 << 6) | (1 << 5)) |
#define | ADS101X_DATAR_3300 ((1 << 7) | (1 << 6) | (0 << 5)) |
#define ADS101X_AIN0_DIFFM_AIN1 ((0 << 6) | (0 << 5) | (0 << 4)) |
Definition at line 59 of file ads101x_regs.h.
#define ADS101X_AIN0_DIFFM_AIN3 ((0 << 6) | (0 << 5) | (1 << 4)) |
Definition at line 60 of file ads101x_regs.h.
#define ADS101X_AIN0_SINGM ((1 << 6) | (0 << 5) | (0 << 4)) |
Definition at line 63 of file ads101x_regs.h.
#define ADS101X_AIN1_DIFFM_AIN3 ((0 << 6) | (1 << 5) | (0 << 4)) |
Definition at line 61 of file ads101x_regs.h.
#define ADS101X_AIN1_SINGM ((1 << 6) | (0 << 5) | (1 << 4)) |
Definition at line 64 of file ads101x_regs.h.
#define ADS101X_AIN2_DIFFM_AIN3 ((0 << 6) | (1 << 5) | (1 << 4)) |
Definition at line 62 of file ads101x_regs.h.
#define ADS101X_AIN2_SINGM ((1 << 6) | (1 << 5) | (0 << 4)) |
Definition at line 65 of file ads101x_regs.h.
#define ADS101X_AIN3_SINGM ((1 << 6) | (1 << 5) | (1 << 4)) |
Definition at line 66 of file ads101x_regs.h.
#define ADS101X_CONF_ADDR (1) |
Definition at line 33 of file ads101x_regs.h.
#define ADS101X_CONF_COMP_DIS ((1 << 1) | (1 << 0)) |
Definition at line 47 of file ads101x_regs.h.
#define ADS101X_CONF_COMP_MODE_WIND (1 << 4) |
Definition at line 46 of file ads101x_regs.h.
#define ADS101X_CONF_OS_CONV (1 << 7) |
Definition at line 45 of file ads101x_regs.h.
#define ADS101X_CONV_RES_ADDR (0) |
Definition at line 32 of file ads101x_regs.h.
#define ADS101X_DATAR_128 ((0 << 7) | (0 << 6) | (0 << 5)) |
Definition at line 94 of file ads101x_regs.h.
#define ADS101X_DATAR_1600 ((1 << 7) | (0 << 6) | (0 << 5)) |
Definition at line 98 of file ads101x_regs.h.
#define ADS101X_DATAR_2400 ((1 << 7) | (0 << 6) | (1 << 5)) |
Definition at line 99 of file ads101x_regs.h.
#define ADS101X_DATAR_250 ((0 << 7) | (0 << 6) | (1 << 5)) |
Definition at line 95 of file ads101x_regs.h.
#define ADS101X_DATAR_3300 ((1 << 7) | (1 << 6) | (0 << 5)) |
Definition at line 100 of file ads101x_regs.h.
#define ADS101X_DATAR_490 ((0 << 7) | (1 << 6) | (0 << 5)) |
Definition at line 96 of file ads101x_regs.h.
#define ADS101X_DATAR_920 ((0 << 7) | (1 << 6) | (1 << 5)) |
Definition at line 97 of file ads101x_regs.h.
#define ADS101X_DATAR_MASK ((1 << 7) | (1 << 6) | (1 << 5)) |
Definition at line 93 of file ads101x_regs.h.
#define ADS101X_HIGH_LIMIT_ADDR (3) |
Definition at line 35 of file ads101x_regs.h.
#define ADS101X_LOW_LIMIT_ADDR (2) |
Definition at line 34 of file ads101x_regs.h.
#define ADS101X_MUX_MASK ((1 << 6) | (1 << 5) | (1 << 4)) |
Definition at line 58 of file ads101x_regs.h.
#define ADS101X_PGA_FSR_0V256 ((1 << 3) | (0 << 2) | (1 << 1)) |
Definition at line 83 of file ads101x_regs.h.
#define ADS101X_PGA_FSR_0V512 ((1 << 3) | (0 << 2) | (0 << 1)) |
Definition at line 82 of file ads101x_regs.h.
#define ADS101X_PGA_FSR_1V024 ((0 << 3) | (1 << 2) | (1 << 1)) |
Definition at line 81 of file ads101x_regs.h.
#define ADS101X_PGA_FSR_2V048 ((0 << 3) | (1 << 2) | (0 << 1)) |
Definition at line 80 of file ads101x_regs.h.
#define ADS101X_PGA_FSR_4V096 ((0 << 3) | (0 << 2) | (1 << 1)) |
Definition at line 79 of file ads101x_regs.h.
#define ADS101X_PGA_FSR_6V144 ((0 << 3) | (0 << 2) | (0 << 1)) |
Definition at line 78 of file ads101x_regs.h.
#define ADS101X_PGA_MASK ((1 << 3) | (1 << 2) | (1 << 1)) |
Definition at line 77 of file ads101x_regs.h.