Struct d1_pac::gpadc::RegisterBlock

source ·
#[repr(C)]
pub struct RegisterBlock {
Show 17 fields pub gp_sr_con: GP_SR_CON, pub gp_ctrl: GP_CTRL, pub gp_cs_en: GP_CS_EN, pub gp_fifo_intc: GP_FIFO_INTC, pub gp_fifo_ints: GP_FIFO_INTS, pub gp_fifo_data: GP_FIFO_DATA, pub gp_cdata: GP_CDATA, pub gp_datal_intc: GP_DATAL_INTC, pub gp_datah_intc: GP_DATAH_INTC, pub gp_data_intc: GP_DATA_INTC, pub gp_datal_ints: GP_DATAL_INTS, pub gp_datah_ints: GP_DATAH_INTS, pub gp_data_ints: GP_DATA_INTS, pub gp_ch0_cmp_data: GP_CH0_CMP_DATA, pub gp_ch1_cmp_data: GP_CH1_CMP_DATA, pub gp_ch0_data: GP_CH0_DATA, pub gp_ch1_data: GP_CH1_DATA, /* private fields */
}
Expand description

Register block

Fields§

§gp_sr_con: GP_SR_CON

0x00 - GPADC Sample Rate Configure Register

§gp_ctrl: GP_CTRL

0x04 - GPADC Control Register

§gp_cs_en: GP_CS_EN

0x08 - GPADC Compare and Select Enable Register

§gp_fifo_intc: GP_FIFO_INTC

0x0c - GPADC FIFO Interrupt Control Register

§gp_fifo_ints: GP_FIFO_INTS

0x10 - GPADC FIFO Interrupt Status Register

§gp_fifo_data: GP_FIFO_DATA

0x14 - GPADC FIFO Data Register

§gp_cdata: GP_CDATA

0x18 - GPADC Calibration Data Register

§gp_datal_intc: GP_DATAL_INTC

0x20 - GPADC Data Low Interrupt Configure Register

§gp_datah_intc: GP_DATAH_INTC

0x24 - GPADC Data High Interrupt Configure Register

§gp_data_intc: GP_DATA_INTC

0x28 - GPADC Data Interrupt Configure Register

§gp_datal_ints: GP_DATAL_INTS

0x30 - GPADC Data Low Interrupt Status Register

§gp_datah_ints: GP_DATAH_INTS

0x34 - GPADC Data High Interrupt Status Register

§gp_data_ints: GP_DATA_INTS

0x38 - GPADC Data Interrupt Status Register

§gp_ch0_cmp_data: GP_CH0_CMP_DATA

0x40 - GPADC CH0 Compare Data Register

§gp_ch1_cmp_data: GP_CH1_CMP_DATA

0x44 - GPADC CH1 Compare Data Register

§gp_ch0_data: GP_CH0_DATA

0x80 - GPADC CH0 Data Register

§gp_ch1_data: GP_CH1_DATA

0x84 - GPADC CH1 Data Register

Auto Trait Implementations§

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.