RegisterBlock

Struct RegisterBlock 

#[repr(C)]
pub struct RegisterBlock {
Show 22 fields verid: Verid, param: Param, _reserved2: [u8; 8], cr: Cr, sr: Sr, ier: Ier, der: Der, cfgr0: Cfgr0, cfgr1: Cfgr1, _reserved8: [u8; 8], dmr0: Dmr0, dmr1: Dmr1, _reserved10: [u8; 8], ccr: Ccr, _reserved11: [u8; 20], fcr: Fcr, fsr: Fsr, tcr: Tcr, tdr: Tdr, _reserved15: [u8; 8], rsr: Rsr, rdr: Rdr,
}
Expand description

Register block

Fields§

§verid: Verid§param: Param§_reserved2: [u8; 8]§cr: Cr§sr: Sr§ier: Ier§der: Der§cfgr0: Cfgr0§cfgr1: Cfgr1§_reserved8: [u8; 8]§dmr0: Dmr0§dmr1: Dmr1§_reserved10: [u8; 8]§ccr: Ccr§_reserved11: [u8; 20]§fcr: Fcr§fsr: Fsr§tcr: Tcr§tdr: Tdr§_reserved15: [u8; 8]§rsr: Rsr§rdr: Rdr

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 cr(&self) -> &Cr

0x10 - Control Register

pub const fn sr(&self) -> &Sr

0x14 - Status Register

pub const fn ier(&self) -> &Ier

0x18 - Interrupt Enable Register

pub const fn der(&self) -> &Der

0x1c - DMA Enable Register

pub const fn cfgr0(&self) -> &Cfgr0

0x20 - Configuration Register 0

pub const fn cfgr1(&self) -> &Cfgr1

0x24 - Configuration Register 1

pub const fn dmr0(&self) -> &Dmr0

0x30 - Data Match Register 0

pub const fn dmr1(&self) -> &Dmr1

0x34 - Data Match Register 1

pub const fn ccr(&self) -> &Ccr

0x40 - Clock Configuration Register

pub const fn fcr(&self) -> &Fcr

0x58 - FIFO Control Register

pub const fn fsr(&self) -> &Fsr

0x5c - FIFO Status Register

pub const fn tcr(&self) -> &Tcr

0x60 - Transmit Command Register

pub const fn tdr(&self) -> &Tdr

0x64 - Transmit Data Register

pub const fn rsr(&self) -> &Rsr

0x70 - Receive Status Register

pub const fn rdr(&self) -> &Rdr

0x74 - Receive 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>,

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.