RegisterBlock

Struct RegisterBlock 

#[repr(C)]
pub struct RegisterBlock {
Show 78 fields sc1a: Sc1a, sc1b: Sc1b, sc1c: Sc1c, sc1d: Sc1d, sc1e: Sc1e, sc1f: Sc1f, sc1g: Sc1g, sc1h: Sc1h, sc1i: Sc1i, sc1j: Sc1j, sc1k: Sc1k, sc1l: Sc1l, sc1m: Sc1m, sc1n: Sc1n, sc1o: Sc1o, sc1p: Sc1p, cfg1: Cfg1, cfg2: Cfg2, ra: Ra, rb: Rb, rc: Rc, rd: Rd, re: Re, rf: Rf, rg: Rg, rh: Rh, ri: Ri, rj: Rj, rk: Rk, rl: Rl, rm: Rm, rn: Rn, ro: Ro, rp: Rp, cv: [Cv; 2], sc2: Sc2, sc3: Sc3, base_ofs: BaseOfs, ofs: Ofs, usr_ofs: UsrOfs, xofs: Xofs, yofs: Yofs, g: G, ug: Ug, clps: Clps, clp3: Clp3, clp2: Clp2, clp1: Clp1, clp0: Clp0, clpx: Clpx, clp9: Clp9, clps_ofs: ClpsOfs, clp3_ofs: Clp3Ofs, clp2_ofs: Clp2Ofs, clp1_ofs: Clp1Ofs, clp0_ofs: Clp0Ofs, clpx_ofs: ClpxOfs, clp9_ofs: Clp9Ofs, _reserved58: [u8; 28], a_sc1: [ASc1; 16], sc1q: Sc1q, sc1r: Sc1r, sc1s: Sc1s, sc1t: Sc1t, sc1u: Sc1u, sc1v: Sc1v, sc1w: Sc1w, sc1x: Sc1x, _reserved67: [u8; 32], a_r: [AR; 16], rq: Rq, rr: Rr, rs: Rs, rt: Rt, ru: Ru, rv: Rv, rw: Rw, rx: Rx,
}
Expand description

Register block

Fields§

§sc1a: Sc1a§sc1b: Sc1b§sc1c: Sc1c§sc1d: Sc1d§sc1e: Sc1e§sc1f: Sc1f§sc1g: Sc1g§sc1h: Sc1h§sc1i: Sc1i§sc1j: Sc1j§sc1k: Sc1k§sc1l: Sc1l§sc1m: Sc1m§sc1n: Sc1n§sc1o: Sc1o§sc1p: Sc1p§cfg1: Cfg1§cfg2: Cfg2§ra: Ra§rb: Rb§rc: Rc§rd: Rd§re: Re§rf: Rf§rg: Rg§rh: Rh§ri: Ri§rj: Rj§rk: Rk§rl: Rl§rm: Rm§rn: Rn§ro: Ro§rp: Rp§cv: [Cv; 2]§sc2: Sc2§sc3: Sc3§base_ofs: BaseOfs§ofs: Ofs§usr_ofs: UsrOfs§xofs: Xofs§yofs: Yofs§g: G§ug: Ug§clps: Clps§clp3: Clp3§clp2: Clp2§clp1: Clp1§clp0: Clp0§clpx: Clpx§clp9: Clp9§clps_ofs: ClpsOfs§clp3_ofs: Clp3Ofs§clp2_ofs: Clp2Ofs§clp1_ofs: Clp1Ofs§clp0_ofs: Clp0Ofs§clpx_ofs: ClpxOfs§clp9_ofs: Clp9Ofs§_reserved58: [u8; 28]§a_sc1: [ASc1; 16]§sc1q: Sc1q§sc1r: Sc1r§sc1s: Sc1s§sc1t: Sc1t§sc1u: Sc1u§sc1v: Sc1v§sc1w: Sc1w§sc1x: Sc1x§_reserved67: [u8; 32]§a_r: [AR; 16]§rq: Rq§rr: Rr§rs: Rs§rt: Rt§ru: Ru§rv: Rv§rw: Rw§rx: Rx

Implementations§

§

impl RegisterBlock

pub const fn sc1a(&self) -> &Sc1a

0x00 - ADC Status and Control Register 1

pub const fn sc1b(&self) -> &Sc1b

0x04 - ADC Status and Control Register 1

pub const fn sc1c(&self) -> &Sc1c

0x08 - ADC Status and Control Register 1

pub const fn sc1d(&self) -> &Sc1d

0x0c - ADC Status and Control Register 1

pub const fn sc1e(&self) -> &Sc1e

0x10 - ADC Status and Control Register 1

pub const fn sc1f(&self) -> &Sc1f

0x14 - ADC Status and Control Register 1

pub const fn sc1g(&self) -> &Sc1g

0x18 - ADC Status and Control Register 1

pub const fn sc1h(&self) -> &Sc1h

0x1c - ADC Status and Control Register 1

pub const fn sc1i(&self) -> &Sc1i

0x20 - ADC Status and Control Register 1

pub const fn sc1j(&self) -> &Sc1j

0x24 - ADC Status and Control Register 1

pub const fn sc1k(&self) -> &Sc1k

0x28 - ADC Status and Control Register 1

pub const fn sc1l(&self) -> &Sc1l

0x2c - ADC Status and Control Register 1

pub const fn sc1m(&self) -> &Sc1m

0x30 - ADC Status and Control Register 1

pub const fn sc1n(&self) -> &Sc1n

0x34 - ADC Status and Control Register 1

pub const fn sc1o(&self) -> &Sc1o

0x38 - ADC Status and Control Register 1

pub const fn sc1p(&self) -> &Sc1p

0x3c - ADC Status and Control Register 1

pub const fn cfg1(&self) -> &Cfg1

0x40 - ADC Configuration Register 1

pub const fn cfg2(&self) -> &Cfg2

0x44 - ADC Configuration Register 2

pub const fn ra(&self) -> &Ra

0x48 - ADC Data Result Registers

pub const fn rb(&self) -> &Rb

0x4c - ADC Data Result Registers

pub const fn rc(&self) -> &Rc

0x50 - ADC Data Result Registers

pub const fn rd(&self) -> &Rd

0x54 - ADC Data Result Registers

pub const fn re(&self) -> &Re

0x58 - ADC Data Result Registers

pub const fn rf(&self) -> &Rf

0x5c - ADC Data Result Registers

pub const fn rg(&self) -> &Rg

0x60 - ADC Data Result Registers

pub const fn rh(&self) -> &Rh

0x64 - ADC Data Result Registers

pub const fn ri(&self) -> &Ri

0x68 - ADC Data Result Registers

pub const fn rj(&self) -> &Rj

0x6c - ADC Data Result Registers

pub const fn rk(&self) -> &Rk

0x70 - ADC Data Result Registers

pub const fn rl(&self) -> &Rl

0x74 - ADC Data Result Registers

pub const fn rm(&self) -> &Rm

0x78 - ADC Data Result Registers

pub const fn rn(&self) -> &Rn

0x7c - ADC Data Result Registers

pub const fn ro(&self) -> &Ro

0x80 - ADC Data Result Registers

pub const fn rp(&self) -> &Rp

0x84 - ADC Data Result Registers

pub const fn cv(&self, n: usize) -> &Cv

0x88..0x90 - Compare Value Registers

`n` is the index of register in the array. `n == 0` corresponds to `CV1` register.

pub fn cv_iter(&self) -> impl Iterator<Item = &Cv>

Iterator for array of: 0x88..0x90 - Compare Value Registers

pub const fn cv1(&self) -> &Cv

0x88 - Compare Value Registers

pub const fn cv2(&self) -> &Cv

0x8c - Compare Value Registers

pub const fn sc2(&self) -> &Sc2

0x90 - Status and Control Register 2

pub const fn sc3(&self) -> &Sc3

0x94 - Status and Control Register 3

pub const fn base_ofs(&self) -> &BaseOfs

0x98 - BASE Offset Register

pub const fn ofs(&self) -> &Ofs

0x9c - ADC Offset Correction Register

pub const fn usr_ofs(&self) -> &UsrOfs

0xa0 - USER Offset Correction Register

pub const fn xofs(&self) -> &Xofs

0xa4 - ADC X Offset Correction Register

pub const fn yofs(&self) -> &Yofs

0xa8 - ADC Y Offset Correction Register

pub const fn g(&self) -> &G

0xac - ADC Gain Register

pub const fn ug(&self) -> &Ug

0xb0 - ADC User Gain Register

pub const fn clps(&self) -> &Clps

0xb4 - ADC General Calibration Value Register S

pub const fn clp3(&self) -> &Clp3

0xb8 - ADC Plus-Side General Calibration Value Register 3

pub const fn clp2(&self) -> &Clp2

0xbc - ADC Plus-Side General Calibration Value Register 2

pub const fn clp1(&self) -> &Clp1

0xc0 - ADC Plus-Side General Calibration Value Register 1

pub const fn clp0(&self) -> &Clp0

0xc4 - ADC Plus-Side General Calibration Value Register 0

pub const fn clpx(&self) -> &Clpx

0xc8 - ADC Plus-Side General Calibration Value Register X

pub const fn clp9(&self) -> &Clp9

0xcc - ADC Plus-Side General Calibration Value Register 9

pub const fn clps_ofs(&self) -> &ClpsOfs

0xd0 - ADC General Calibration Offset Value Register S

pub const fn clp3_ofs(&self) -> &Clp3Ofs

0xd4 - ADC Plus-Side General Calibration Offset Value Register 3

pub const fn clp2_ofs(&self) -> &Clp2Ofs

0xd8 - ADC Plus-Side General Calibration Offset Value Register 2

pub const fn clp1_ofs(&self) -> &Clp1Ofs

0xdc - ADC Plus-Side General Calibration Offset Value Register 1

pub const fn clp0_ofs(&self) -> &Clp0Ofs

0xe0 - ADC Plus-Side General Calibration Offset Value Register 0

pub const fn clpx_ofs(&self) -> &ClpxOfs

0xe4 - ADC Plus-Side General Calibration Offset Value Register X

pub const fn clp9_ofs(&self) -> &Clp9Ofs

0xe8 - ADC Plus-Side General Calibration Offset Value Register 9

pub const fn a_sc1(&self, n: usize) -> &ASc1

0x108..0x148 - ADC Status and Control Register 1 (alias)

`n` is the index of register in the array. `n == 0` corresponds to `aSC1A` register.

pub fn a_sc1_iter(&self) -> impl Iterator<Item = &ASc1>

Iterator for array of: 0x108..0x148 - ADC Status and Control Register 1 (alias)

pub const fn a_sc1a(&self) -> &ASc1

0x108 - ADC Status and Control Register 1 (alias)

pub const fn a_sc1b(&self) -> &ASc1

0x10c - ADC Status and Control Register 1 (alias)

pub const fn a_sc1c(&self) -> &ASc1

0x110 - ADC Status and Control Register 1 (alias)

pub const fn a_sc1d(&self) -> &ASc1

0x114 - ADC Status and Control Register 1 (alias)

pub const fn a_sc1e(&self) -> &ASc1

0x118 - ADC Status and Control Register 1 (alias)

pub const fn a_sc1f(&self) -> &ASc1

0x11c - ADC Status and Control Register 1 (alias)

pub const fn a_sc1g(&self) -> &ASc1

0x120 - ADC Status and Control Register 1 (alias)

pub const fn a_sc1h(&self) -> &ASc1

0x124 - ADC Status and Control Register 1 (alias)

pub const fn a_sc1i(&self) -> &ASc1

0x128 - ADC Status and Control Register 1 (alias)

pub const fn a_sc1j(&self) -> &ASc1

0x12c - ADC Status and Control Register 1 (alias)

pub const fn a_sc1k(&self) -> &ASc1

0x130 - ADC Status and Control Register 1 (alias)

pub const fn a_sc1l(&self) -> &ASc1

0x134 - ADC Status and Control Register 1 (alias)

pub const fn a_sc1m(&self) -> &ASc1

0x138 - ADC Status and Control Register 1 (alias)

pub const fn a_sc1n(&self) -> &ASc1

0x13c - ADC Status and Control Register 1 (alias)

pub const fn a_sc1o(&self) -> &ASc1

0x140 - ADC Status and Control Register 1 (alias)

pub const fn a_sc1p(&self) -> &ASc1

0x144 - ADC Status and Control Register 1 (alias)

pub const fn sc1q(&self) -> &Sc1q

0x148 - ADC Status and Control Register 1

pub const fn sc1r(&self) -> &Sc1r

0x14c - ADC Status and Control Register 1

pub const fn sc1s(&self) -> &Sc1s

0x150 - ADC Status and Control Register 1

pub const fn sc1t(&self) -> &Sc1t

0x154 - ADC Status and Control Register 1

pub const fn sc1u(&self) -> &Sc1u

0x158 - ADC Status and Control Register 1

pub const fn sc1v(&self) -> &Sc1v

0x15c - ADC Status and Control Register 1

pub const fn sc1w(&self) -> &Sc1w

0x160 - ADC Status and Control Register 1

pub const fn sc1x(&self) -> &Sc1x

0x164 - ADC Status and Control Register 1

pub const fn a_r(&self, n: usize) -> &AR

0x188..0x1c8 - ADC Data Result Registers (alias)

`n` is the index of register in the array. `n == 0` corresponds to `aRA` register.

pub fn a_r_iter(&self) -> impl Iterator<Item = &AR>

Iterator for array of: 0x188..0x1c8 - ADC Data Result Registers (alias)

pub const fn a_ra(&self) -> &AR

0x188 - ADC Data Result Registers (alias)

pub const fn a_rb(&self) -> &AR

0x18c - ADC Data Result Registers (alias)

pub const fn a_rc(&self) -> &AR

0x190 - ADC Data Result Registers (alias)

pub const fn a_rd(&self) -> &AR

0x194 - ADC Data Result Registers (alias)

pub const fn a_re(&self) -> &AR

0x198 - ADC Data Result Registers (alias)

pub const fn a_rf(&self) -> &AR

0x19c - ADC Data Result Registers (alias)

pub const fn a_rg(&self) -> &AR

0x1a0 - ADC Data Result Registers (alias)

pub const fn a_rh(&self) -> &AR

0x1a4 - ADC Data Result Registers (alias)

pub const fn a_ri(&self) -> &AR

0x1a8 - ADC Data Result Registers (alias)

pub const fn a_rj(&self) -> &AR

0x1ac - ADC Data Result Registers (alias)

pub const fn a_rk(&self) -> &AR

0x1b0 - ADC Data Result Registers (alias)

pub const fn a_rl(&self) -> &AR

0x1b4 - ADC Data Result Registers (alias)

pub const fn a_rm(&self) -> &AR

0x1b8 - ADC Data Result Registers (alias)

pub const fn a_rn(&self) -> &AR

0x1bc - ADC Data Result Registers (alias)

pub const fn a_ro(&self) -> &AR

0x1c0 - ADC Data Result Registers (alias)

pub const fn a_rp(&self) -> &AR

0x1c4 - ADC Data Result Registers (alias)

pub const fn rq(&self) -> &Rq

0x1c8 - ADC Data Result Registers

pub const fn rr(&self) -> &Rr

0x1cc - ADC Data Result Registers

pub const fn rs(&self) -> &Rs

0x1d0 - ADC Data Result Registers

pub const fn rt(&self) -> &Rt

0x1d4 - ADC Data Result Registers

pub const fn ru(&self) -> &Ru

0x1d8 - ADC Data Result Registers

pub const fn rv(&self) -> &Rv

0x1dc - ADC Data Result Registers

pub const fn rw(&self) -> &Rw

0x1e0 - ADC Data Result Registers

pub const fn rx(&self) -> &Rx

0x1e4 - ADC Data Result Registers

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>,

Source§

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>,

Source§

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.