Struct d1_pac::audio_codec::adc::R

source ·
pub struct R(/* private fields */);
Expand description

Register adc%s reader

Implementations§

source§

impl R

source

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.

source

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.

source

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.

source

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

source

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

source

pub fn iopadc(&self) -> IOPADC_R

Bits 14:15 - ADC1-ADC3 Bias Current Select

source

pub fn adc_pga_in_vcm_ctrl(&self) -> ADC_PGA_IN_VCM_CTRL_R

Bits 16:17 - ADC PGA Common-Mode Voltage Control

source

pub fn adc_pga_ctrl_rcm(&self) -> ADC_PGA_CTRL_RCM_R

Bits 18:19 - ADC PGA Common Mode Input Impedance Control for MICIN

source

pub fn iopbuffer(&self) -> IOPBUFFER_R

Bits 20:21 - PGA Vcm Buffer OP Bias Current Select

source

pub fn lineinlg(&self) -> LINEINLG_R

Bit 22 - LINEINL Gain Control

source

pub fn lineinlen(&self) -> LINEINLEN_R

Bit 23 - LINEINL Enable

source

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)

source

pub fn fminlg(&self) -> FMINLG_R

Bit 26 - FMINL Gain Control

source

pub fn fminlen(&self) -> FMINLEN_R

Bit 27 - FMINL Enable

source

pub fn mic_sin_en(&self) -> MIC_SIN_EN_R

Bit 28 - MIC Single Input Enable

source

pub fn adc_d_itcher_c_ontrol(&self) -> ADC_D_ITCHER_C_ONTROL_R

Bit 29 - Dither Control

source

pub fn mic_pga_en(&self) -> MIC_PGA_EN_R

Bit 30 - MIC PGA Enable

source

pub fn adc_en(&self) -> ADC_EN_R

Bit 31 - ADC Channel Enable

Methods from Deref<Target = R<ADC_SPEC>>§

source

pub fn bits(&self) -> REG::Ux

Reads raw bits from register.

Trait Implementations§

source§

impl Deref for R

§

type Target = R<ADC_SPEC>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl From<R<ADC_SPEC>> for R

source§

fn from(reader: R<ADC_SPEC>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Freeze for R

§

impl RefUnwindSafe for R

§

impl Send for R

§

impl Sync for R

§

impl Unpin for R

§

impl UnwindSafe for R

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.