Register definition for ADS101x/111x devices.
More...
Go to the source code of this file.
|
#define | ADS101X_CONV_RES_ADDR (0) |
|
#define | ADS101X_CONF_ADDR (1) |
|
#define | ADS101X_LOW_LIMIT_ADDR (2) |
|
#define | ADS101X_HIGH_LIMIT_ADDR (3) |
|
|
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)) |
|
|
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)) |
|
|
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)) |
|
|
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)) |
|