#[repr(C)]
pub struct RegisterBlock {
Show 30 fields pub ctrl: CTRL, pub cmd: CMD, pub status: STATUS, pub singlectrl: SINGLECTRL, pub singlectrlx: SINGLECTRLX, pub scanctrl: SCANCTRL, pub scanctrlx: SCANCTRLX, pub scanmask: SCANMASK, pub scaninputsel: SCANINPUTSEL, pub scannegsel: SCANNEGSEL, pub cmpthr: CMPTHR, pub biasprog: BIASPROG, pub cal: CAL, pub if_: IF, pub ifs: IFS, pub ifc: IFC, pub ien: IEN, pub singledata: SINGLEDATA, pub scandata: SCANDATA, pub singledatap: SINGLEDATAP, pub scandatap: SCANDATAP, pub scandatax: SCANDATAX, pub scandataxp: SCANDATAXP, pub aportreq: APORTREQ, pub aportconflict: APORTCONFLICT, pub singlefifocount: SINGLEFIFOCOUNT, pub scanfifocount: SCANFIFOCOUNT, pub singlefifoclear: SINGLEFIFOCLEAR, pub scanfifoclear: SCANFIFOCLEAR, pub aportmasterdis: APORTMASTERDIS, /* private fields */
}
Expand description

Register block

Fields§

§ctrl: CTRL

0x00 - Control Register

§cmd: CMD

0x08 - Command Register

§status: STATUS

0x0c - Status Register

§singlectrl: SINGLECTRL

0x10 - Single Channel Control Register

§singlectrlx: SINGLECTRLX

0x14 - Single Channel Control Register Continued

§scanctrl: SCANCTRL

0x18 - Scan Control Register

§scanctrlx: SCANCTRLX

0x1c - Scan Control Register Continued

§scanmask: SCANMASK

0x20 - Scan Sequence Input Mask Register

§scaninputsel: SCANINPUTSEL

0x24 - Input Selection Register for Scan Mode

§scannegsel: SCANNEGSEL

0x28 - Negative Input Select Register for Scan

§cmpthr: CMPTHR

0x2c - Compare Threshold Register

§biasprog: BIASPROG

0x30 - Bias Programming Register for Various Analog Blocks Used in ADC Operation

§cal: CAL

0x34 - Calibration Register

§if_: IF

0x38 - Interrupt Flag Register

§ifs: IFS

0x3c - Interrupt Flag Set Register

§ifc: IFC

0x40 - Interrupt Flag Clear Register

§ien: IEN

0x44 - Interrupt Enable Register

§singledata: SINGLEDATA

0x48 - Single Conversion Result Data

§scandata: SCANDATA

0x4c - Scan Conversion Result Data

§singledatap: SINGLEDATAP

0x50 - Single Conversion Result Data Peek Register

§scandatap: SCANDATAP

0x54 - Scan Sequence Result Data Peek Register

§scandatax: SCANDATAX

0x68 - Scan Sequence Result Data + Data Source Register

§scandataxp: SCANDATAXP

0x6c - Scan Sequence Result Data + Data Source Peek Register

§aportreq: APORTREQ

0x7c - APORT Request Status Register

§aportconflict: APORTCONFLICT

0x80 - APORT Conflict Status Register

§singlefifocount: SINGLEFIFOCOUNT

0x84 - Single FIFO Count Register

§scanfifocount: SCANFIFOCOUNT

0x88 - Scan FIFO Count Register

§singlefifoclear: SINGLEFIFOCLEAR

0x8c - Single FIFO Clear Register

§scanfifoclear: SCANFIFOCLEAR

0x90 - Scan FIFO Clear Register

§aportmasterdis: APORTMASTERDIS

0x94 - APORT Bus Master Disable Register

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.