#[repr(C)]
pub struct RegisterBlock {
Show 20 fields pub cr: CR, pub cntcr: CNTCR, pub idle: IDLE, pub level: LEVEL, pub raw: RAW, pub timing: TIMING, pub thresh: THRESH, pub pinsel: PINSEL, pub dma: DMA, pub isr: ISR, pub ier: IER, pub idr: IDR, pub imr: IMR, pub scr: SCR, pub intch: [INTCH; 1], pub intchclr: [INTCHCLR; 1], pub outtch: [OUTTCH; 1], pub outtchclr: [OUTTCHCLR; 1], pub parameter: PARAMETER, pub version: VERSION, /* private fields */
}
Expand description

Register block

Fields§

§cr: CR

0x00 - Control Register

§cntcr: CNTCR

0x04 - Counter Control Register

§idle: IDLE

0x08 - Sensor Idle Level

§level: LEVEL

0x0c - Sensor Relative Level

§raw: RAW

0x10 - Sensor Raw Value

§timing: TIMING

0x14 - Filter Timing Register

§thresh: THRESH

0x18 - Threshold Register

§pinsel: PINSEL

0x1c - Pin Selection Register

§dma: DMA

0x20 - Direct Memory Access Register

§isr: ISR

0x24 - Interrupt Status Register

§ier: IER

0x28 - Interrupt Enable Register

§idr: IDR

0x2c - Interrupt Disable Register

§imr: IMR

0x30 - Interrupt Mask Register

§scr: SCR

0x34 - Status Clear Register

§intch: [INTCH; 1]

0x40 - In-Touch Status Register

§intchclr: [INTCHCLR; 1]

0x50 - In-Touch Status Clear Register

§outtch: [OUTTCH; 1]

0x60 - Out-of-Touch Status Register

§outtchclr: [OUTTCHCLR; 1]

0x70 - Out-of-Touch Status Clear Register

§parameter: PARAMETER

0xf8 - Parameter Register

§version: VERSION

0xfc - Version 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,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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 Twhere 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.