26#ifndef __XC_DRV_PGA_H_
27#define __XC_DRV_PGA_H_
46#define PGA_PDBIAS_EN 0
47#define PGA_PDBIAS_PD 1
49#define PGA_ELECTRICITY_LEVEL0 (0x07<<2)
50#define PGA_ELECTRICITY_LEVEL1 (0x06<<2)
51#define PGA_ELECTRICITY_LEVEL2 (0x05<<2)
52#define PGA_ELECTRICITY_LEVEL3 (0x4<<2)
53#define PGA_ELECTRICITY_LEVEL4 (0x3<<2)
54#define PGA_ELECTRICITY_LEVEL5 (0x2<<2)
55#define PGA_ELECTRICITY_LEVEL6 (0x1<<2)
56#define PGA_ELECTRICITY_LEVEL7 (0x0<<2)
57#define PGA_SINGLE (0x0<<1)
58#define PGA_DIFFERENCE (0x1<<1)
61#define CMP_CTRL_VOLTAGE_LEVEL0 (0x00)
62#define CMP_CTRL_VOLTAGE_LEVEL1 (0x01)
63#define CMP_CTRL_VOLTAGE_LEVEL2 (0x02)
64#define CMP_CTRL_VOLTAGE_LEVEL3 (0x03)
66#define CMP_IBC_ELECTRICITY_LEVEL0 (0x03)
67#define CMP_IBC_ELECTRICITY_LEVEL1 (0x02)
68#define CMP_IBC_ELECTRICITY_LEVEL2 (0x01)
69#define CMP_IBC_ELECTRICITY_LEVEL3 (0x00)
71#define TEMP_SENSOR_ENABLE 1
72#define TEMP_SENSOR_DISABLE 0
74#define PGA_OPA_CTRL_SIGNAL_PD (0x1<<2)
75#define PGA_OPA_CTRL_SIGNAL_EN (0x0<<2)
76#define PGA_OPA_CTRL_INPUT_SWAP_ENABLE (0x1<<1)
77#define PGA_OPA_CTRL_INPUT_SWAP_DISABLE (0x0<<2)
78#define PGA_OPA_CTRL_ELECTRICITY_MAX (0x0<<0)
79#define PGA_OPA_CTRL_ELECTRICITY_MIN (0x1<<0)
81#define PDOPA_SIGNAL_PD 1
82#define PDOPA_SIGNAL_EN 0
CPR_OPA_CTRL_REG register definition
PGA_MIC_GAIN2TypeDef_t gain2
void xc_pga_volr_set(uint8_t volr)
xc_pga_volr_set
void xc_pga_temp_sensor_enable(uint8_t en_temp_sensor)
xc_pga_temp_sensor_enable
void xc_pga_cmp_ibc_set(uint8_t cmp_ibc)
xc_pga_cmp_ibc_set
void xc_pga_volr2_set(uint8_t volr2)
xc_pga_volr2_set
void xc_pga_init(PGA_InitCfg_t *pga_cfg)
xc_pga_init
void xc_pga_micgain_set(uint8_t micgain)
xc_pga_micgain_set
void xc_pga_micgain_2_set(uint8_t micgain2)
xc_pga_micgain_2_set
void xc_pga_resadj_set(uint8_t resadj)
xc_pga_resadj_set
void xc_pga_pdopa_set(uint8_t pdopa)
xc_pga_pdopa_set
void xc_pga_opa_ctrl_set(uint8_t opa_ctrl)
xc_pga_opa_ctrl_set
void xc_pga_pdbias_set(uint8_t pdbias)
xc_pga_pdbias_set
void xc_pga_cmp_ctrl_set(uint8_t cmp_ctrl)
xc_pga_cmp_ctrl_set