Struct d1_pac::audio_codec::adc::R
source · pub struct R(/* private fields */);
Expand description
Register adc%s
reader
Implementations§
source§impl R
impl R
sourcepub fn adc_iopmic(&self) -> ADC_IOPMIC_R
pub fn adc_iopmic(&self) -> ADC_IOPMIC_R
Bits 0:1 - ADC OP MIC Bias Current Select
IOPADC is defined by ADC_REG<15:14> from 1 uA to 4 uA.
sourcepub fn adc_iopsdm2(&self) -> ADC_IOPSDM_R
pub fn adc_iopsdm2(&self) -> ADC_IOPSDM_R
Bits 4:5 - ADC OP SDM Bias Current Select [i]
IOPADC is defined by ADC_REG<15:14> from 1 uA to 4 uA.
sourcepub fn adc_iopsdm1(&self) -> ADC_IOPSDM_R
pub fn adc_iopsdm1(&self) -> ADC_IOPSDM_R
Bits 6:7 - ADC OP SDM Bias Current Select [i]
IOPADC is defined by ADC_REG<15:14> from 1 uA to 4 uA.
sourcepub fn adc_iopaaf(&self) -> ADC_IOPAAF_R
pub fn adc_iopaaf(&self) -> ADC_IOPAAF_R
Bits 6:7 - ADC OP AAF Bias Current Select
IOPADC is defined by ADC_REG<15:14> from 1 uA to 4 uA.
For example: ADC_REG<15:14> = 11, IOPADC = 4 uA
00: 1.50*4 uA = 6 uA
01: 1.75*4 uA = 7 uA
10: 2.00*4 uA = 8 uA
11: 2.25*4 uA = 9 uA
sourcepub fn adc_pga_gain_ctrl(&self) -> ADC_PGA_GAIN_CTRL_R
pub fn adc_pga_gain_ctrl(&self) -> ADC_PGA_GAIN_CTRL_R
Bits 8:12 - ADC PGA gain settings:
0x0: 0 dB \t0x10: 21 dB
0x1: 6 dB \t0x11: 22 dB
0x2: 6 dB \t0x12: 23 dB
0x3: 6 dB \t0x13: 24 dB
0x4: 9 dB \t0x14: 25 dB
0x5: 10 dB\t0x15: 26 dB
0x6: 11 dB\t0x16: 27 dB
0x7: 12 dB\t0x17: 28 dB
0x8: 13 dB\t0x18: 29 dB
0x9: 14 dB\t0x19: 30 dB
0xA: 15 dB\t0x1A: 31 dB
0xB: 16 dB\t0x1B: 32 dB
0xC: 17 dB\t0x1C: 33 dB
0xD: 18 dB\t0x1D: 34 dB
0xE: 19 dB\t0x1E: 35 dB
0xF: 20 dB\t0x1F: 36 dB
sourcepub fn adc_pga_in_vcm_ctrl(&self) -> ADC_PGA_IN_VCM_CTRL_R
pub fn adc_pga_in_vcm_ctrl(&self) -> ADC_PGA_IN_VCM_CTRL_R
Bits 16:17 - ADC PGA Common-Mode Voltage Control
sourcepub fn adc_pga_ctrl_rcm(&self) -> ADC_PGA_CTRL_RCM_R
pub fn adc_pga_ctrl_rcm(&self) -> ADC_PGA_CTRL_RCM_R
Bits 18:19 - ADC PGA Common Mode Input Impedance Control for MICIN
sourcepub fn iopbuffer(&self) -> IOPBUFFER_R
pub fn iopbuffer(&self) -> IOPBUFFER_R
Bits 20:21 - PGA Vcm Buffer OP Bias Current Select
sourcepub fn lineinlg(&self) -> LINEINLG_R
pub fn lineinlg(&self) -> LINEINLG_R
Bit 22 - LINEINL Gain Control
sourcepub fn lineinlen(&self) -> LINEINLEN_R
pub fn lineinlen(&self) -> LINEINLEN_R
Bit 23 - LINEINL Enable
sourcepub fn dsm_dither_lvl(&self) -> DSM_DITHER_LVL_R
pub fn dsm_dither_lvl(&self) -> DSM_DITHER_LVL_R
Bits 24:25 - Dither Level Control (Dither level is positive ralated to the ctrl bits)
sourcepub fn mic_sin_en(&self) -> MIC_SIN_EN_R
pub fn mic_sin_en(&self) -> MIC_SIN_EN_R
Bit 28 - MIC Single Input Enable
sourcepub fn adc_d_itcher_c_ontrol(&self) -> ADC_D_ITCHER_C_ONTROL_R
pub fn adc_d_itcher_c_ontrol(&self) -> ADC_D_ITCHER_C_ONTROL_R
Bit 29 - Dither Control
sourcepub fn mic_pga_en(&self) -> MIC_PGA_EN_R
pub fn mic_pga_en(&self) -> MIC_PGA_EN_R
Bit 30 - MIC PGA Enable