72#define CMD_START_SYNC 0x08
73#define CMD_POWERDOWN 0x02
79#define CFG_REG_OFFSET0 0x00
80#define CFG_REG_OFFSET1 0x04
81#define CFG_REG_OFFSET2 0x08
82#define CFG_REG_OFFSET3 0x0C
84#define ADS112C_REG2_DRDY_READY 0x80
85#define ENABLE_RESET_CFG_REG 1
86#define DISABLE_RESET_CFG_REG 0
struct _ads112c_init_arg ads112c_init_arg
ADS112C_READ_OUTPUT_OFFSET
Definition: ads112c.h:101
@ ADS112C_READ_OUTPUT_RAW
Definition: ads112c.h:102
@ ADS112C_READ_OUTPUT_TEMP
Definition: ads112c.h:104
@ ADS112C_READ_OUTPUT_VOLT
Definition: ads112c.h:103
ADS112C_REG2_CONFIG
Definition: ads112c.h:46
@ ADS112C_REG2_IDAC_250UA
Definition: ads112c.h:52
@ ADS112C_REG2_IDAC_50UA
Definition: ads112c.h:50
@ ADS112C_REG2_IDAC_1500UA
Definition: ads112c.h:55
@ ADS112C_REG2_IDAC_500UA
Definition: ads112c.h:53
@ ADS112C_REG2_IDAC_OFF
Definition: ads112c.h:48
@ ADS112C_REG2_IDAC_1000UA
Definition: ads112c.h:54
@ ADS112C_REG2_IDAC_100UA
Definition: ads112c.h:51
@ ADS112C_REG2_IDAC_10UA
Definition: ads112c.h:49
ADS112C_REG3_CONFIG
Definition: ads112c.h:58
@ ADS112C_REG3_IDAC1_DISABLED
Definition: ads112c.h:60
@ ADS112C_REG3_IDAC1_REFN
Definition: ads112c.h:66
@ ADS112C_REG3_IDAC1_RESERVED
Definition: ads112c.h:67
@ ADS112C_REG3_IDAC1_REFP
Definition: ads112c.h:65
@ ADS112C_REG3_IDAC1_AIN3
Definition: ads112c.h:64
@ ADS112C_REG3_IDAC1_AIN1
Definition: ads112c.h:62
@ ADS112C_REG3_IDAC1_AIN0
Definition: ads112c.h:61
@ ADS112C_REG3_IDAC1_AIN2
Definition: ads112c.h:63
ADS112C_REG0_CONFIG
Definition: ads112c.h:4
@ ADS112C_REG0_GAIN64
Definition: ads112c.h:25
@ ADS112C_REG0_INPUT_AIN3AIN2
Definition: ads112c.h:13
@ ADS112C_REG0_GAIN1
Definition: ads112c.h:19
@ ADS112C_REG0_INPUT_AIN1AVSS
Definition: ads112c.h:15
@ ADS112C_REG0_INPUT_AIN1AIN3
Definition: ads112c.h:11
@ ADS112C_REG0_GAIN2
Definition: ads112c.h:20
@ ADS112C_REG0_INPUT_AIN0AVSS
Definition: ads112c.h:14
@ ADS112C_REG0_PGA_DISABLE
Definition: ads112c.h:29
@ ADS112C_REG0_INPUT_AIN3AVSS
Definition: ads112c.h:17
@ ADS112C_REG0_GAIN8
Definition: ads112c.h:22
@ ADS112C_REG0_INPUT_AIN1AIN2
Definition: ads112c.h:10
@ ADS112C_REG0_INPUT_AIN0AIN1
Definition: ads112c.h:6
@ ADS112C_REG0_GAIN32
Definition: ads112c.h:24
@ ADS112C_REG0_INPUT_AIN0AIN2
Definition: ads112c.h:7
@ ADS112C_REG0_INPUT_AIN1AIN0
Definition: ads112c.h:9
@ ADS112C_REG0_INPUT_AIN2AVSS
Definition: ads112c.h:16
@ ADS112C_REG0_INPUT_AIN0AIN3
Definition: ads112c.h:8
@ ADS112C_REG0_PGA_ENABLE
Definition: ads112c.h:28
@ ADS112C_REG0_GAIN16
Definition: ads112c.h:23
@ ADS112C_REG0_GAIN4
Definition: ads112c.h:21
@ ADS112C_REG0_GAIN128
Definition: ads112c.h:26
@ ADS112C_REG0_INPUT_AIN2AIN3
Definition: ads112c.h:12
ADS112C_REG1_CONFIG
Definition: ads112c.h:32
@ ADS112C_REG1_CONTINUEMODE
Definition: ads112c.h:37
@ ADS112C_REG1_SINGLEMODE
Definition: ads112c.h:36
@ ADS112C_REG1_INTERNALV
Definition: ads112c.h:39
@ ADS112C_REG1_TEMPMODE_DISABLE
Definition: ads112c.h:42
@ ADS112C_REG1_TEMPMODE_ENABLE
Definition: ads112c.h:43
@ ADS112C_REG1_EXTERNALV
Definition: ads112c.h:40
@ ADS112C_REG1_DR_1000_SPS
Definition: ads112c.h:34
uint8_t reg1_conversion
Definition: ads112c.h:93
uint8_t reg0_pga
Definition: ads112c.h:91
double vol_refer_val
Definition: ads112c.h:95
uint8_t reg1_dr
Definition: ads112c.h:92
uint8_t reg2_idac
Definition: ads112c.h:97
uint8_t reg1_temp_mode
Definition: ads112c.h:96
uint8_t reg0_input
Definition: ads112c.h:89
uint8_t reg0_gain
Definition: ads112c.h:90
uint8_t reg3_idac1_cfg
Definition: ads112c.h:98
uint8_t reg1_vol_refer
Definition: ads112c.h:94