RegisterBlock

Struct RegisterBlock 

#[repr(C)]
pub struct RegisterBlock {
Show 31 fields verid: Verid, param: Param, ctrl: Ctrl, pin: Pin, shiftstat: Shiftstat, shifterr: Shifterr, timstat: Timstat, _reserved7: [u8; 4], shiftsien: Shiftsien, shifteien: Shifteien, timien: Timien, _reserved10: [u8; 4], shiftsden: Shiftsden, _reserved11: [u8; 76], shiftctl: [Shiftctl; 4], _reserved12: [u8; 112], shiftcfg: [Shiftcfg; 4], _reserved13: [u8; 240], shiftbuf: [Shiftbuf; 4], _reserved14: [u8; 112], shiftbufbis: [Shiftbufbis; 4], _reserved15: [u8; 112], shiftbufbys: [Shiftbufbys; 4], _reserved16: [u8; 112], shiftbufbbs: [Shiftbufbbs; 4], _reserved17: [u8; 112], timctl: [Timctl; 4], _reserved18: [u8; 112], timcfg: [Timcfg; 4], _reserved19: [u8; 112], timcmp: [Timcmp; 4],
}
Expand description

Register block

Fields§

§verid: Verid§param: Param§ctrl: Ctrl§pin: Pin§shiftstat: Shiftstat§shifterr: Shifterr§timstat: Timstat§_reserved7: [u8; 4]§shiftsien: Shiftsien§shifteien: Shifteien§timien: Timien§_reserved10: [u8; 4]§shiftsden: Shiftsden§_reserved11: [u8; 76]§shiftctl: [Shiftctl; 4]§_reserved12: [u8; 112]§shiftcfg: [Shiftcfg; 4]§_reserved13: [u8; 240]§shiftbuf: [Shiftbuf; 4]§_reserved14: [u8; 112]§shiftbufbis: [Shiftbufbis; 4]§_reserved15: [u8; 112]§shiftbufbys: [Shiftbufbys; 4]§_reserved16: [u8; 112]§shiftbufbbs: [Shiftbufbbs; 4]§_reserved17: [u8; 112]§timctl: [Timctl; 4]§_reserved18: [u8; 112]§timcfg: [Timcfg; 4]§_reserved19: [u8; 112]§timcmp: [Timcmp; 4]

Implementations§

§

impl RegisterBlock

pub const fn verid(&self) -> &Verid

0x00 - Version ID Register

pub const fn param(&self) -> &Param

0x04 - Parameter Register

pub const fn ctrl(&self) -> &Ctrl

0x08 - FlexIO Control Register

pub const fn pin(&self) -> &Pin

0x0c - Pin State Register

pub const fn shiftstat(&self) -> &Shiftstat

0x10 - Shifter Status Register

pub const fn shifterr(&self) -> &Shifterr

0x14 - Shifter Error Register

pub const fn timstat(&self) -> &Timstat

0x18 - Timer Status Register

pub const fn shiftsien(&self) -> &Shiftsien

0x20 - Shifter Status Interrupt Enable

pub const fn shifteien(&self) -> &Shifteien

0x24 - Shifter Error Interrupt Enable

pub const fn timien(&self) -> &Timien

0x28 - Timer Interrupt Enable Register

pub const fn shiftsden(&self) -> &Shiftsden

0x30 - Shifter Status DMA Enable

pub const fn shiftctl(&self, n: usize) -> &Shiftctl

0x80..0x90 - Shifter Control N Register

pub fn shiftctl_iter(&self) -> impl Iterator<Item = &Shiftctl>

Iterator for array of: 0x80..0x90 - Shifter Control N Register

pub const fn shiftcfg(&self, n: usize) -> &Shiftcfg

0x100..0x110 - Shifter Configuration N Register

pub fn shiftcfg_iter(&self) -> impl Iterator<Item = &Shiftcfg>

Iterator for array of: 0x100..0x110 - Shifter Configuration N Register

pub const fn shiftbuf(&self, n: usize) -> &Shiftbuf

0x200..0x210 - Shifter Buffer N Register

pub fn shiftbuf_iter(&self) -> impl Iterator<Item = &Shiftbuf>

Iterator for array of: 0x200..0x210 - Shifter Buffer N Register

pub const fn shiftbufbis(&self, n: usize) -> &Shiftbufbis

0x280..0x290 - Shifter Buffer N Bit Swapped Register

pub fn shiftbufbis_iter(&self) -> impl Iterator<Item = &Shiftbufbis>

Iterator for array of: 0x280..0x290 - Shifter Buffer N Bit Swapped Register

pub const fn shiftbufbys(&self, n: usize) -> &Shiftbufbys

0x300..0x310 - Shifter Buffer N Byte Swapped Register

pub fn shiftbufbys_iter(&self) -> impl Iterator<Item = &Shiftbufbys>

Iterator for array of: 0x300..0x310 - Shifter Buffer N Byte Swapped Register

pub const fn shiftbufbbs(&self, n: usize) -> &Shiftbufbbs

0x380..0x390 - Shifter Buffer N Bit Byte Swapped Register

pub fn shiftbufbbs_iter(&self) -> impl Iterator<Item = &Shiftbufbbs>

Iterator for array of: 0x380..0x390 - Shifter Buffer N Bit Byte Swapped Register

pub const fn timctl(&self, n: usize) -> &Timctl

0x400..0x410 - Timer Control N Register

pub fn timctl_iter(&self) -> impl Iterator<Item = &Timctl>

Iterator for array of: 0x400..0x410 - Timer Control N Register

pub const fn timcfg(&self, n: usize) -> &Timcfg

0x480..0x490 - Timer Configuration N Register

pub fn timcfg_iter(&self) -> impl Iterator<Item = &Timcfg>

Iterator for array of: 0x480..0x490 - Timer Configuration N Register

pub const fn timcmp(&self, n: usize) -> &Timcmp

0x500..0x510 - Timer Compare N Register

pub fn timcmp_iter(&self) -> impl Iterator<Item = &Timcmp>

Iterator for array of: 0x500..0x510 - Timer Compare N 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>,

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.