RegisterBlock

Struct RegisterBlock 

Source
pub struct RegisterBlock {
Show 18 fields pub brr: BRR, pub tdr: TDR, pub rdr: RDR, pub scmr: SCMR, pub semr: SEMR, pub snfr: SNFR, pub simr1: SIMR1, pub simr2: SIMR2, pub simr3: SIMR3, pub sisr: SISR, pub spmr: SPMR, pub mddr: MDDR, pub dccr: DCCR, pub fcr: FCR, pub fdr: FDR, pub lsr: LSR, pub cdr: CDR, pub sptr: SPTR, /* private fields */
}
Expand description

Register block

Fields§

§brr: BRR

0x01 - Bit Rate Register

§tdr: TDR

0x03 - Transmit Data Register

§rdr: RDR

0x05 - Receive Data Register

§scmr: SCMR

0x06 - Smart Card Mode Register

§semr: SEMR

0x07 - Serial Extended Mode Register

§snfr: SNFR

0x08 - Noise Filter Setting Register

§simr1: SIMR1

0x09 - IIC Mode Register 1

§simr2: SIMR2

0x0a - IIC Mode Register 2

§simr3: SIMR3

0x0b - IIC Mode Register 3

§sisr: SISR

0x0c - IIC Status Register

§spmr: SPMR

0x0d - SPI Mode Register

§mddr: MDDR

0x12 - Modulation Duty Register

§dccr: DCCR

0x13 - Data Compare Match Control Register

§fcr: FCR

0x14 - FIFO Control Register

§fdr: FDR

0x16 - FIFO Data Count Register

§lsr: LSR

0x18 - Line Status Register

§cdr: CDR

0x1a - Compare Match Data Register

§sptr: SPTR

0x1c - Serial Port Register

Implementations§

Source§

impl RegisterBlock

Source

pub const fn smr_smci(&self) -> &SMR_SMCI

0x00 - Serial Mode Register for Smart Card Interface Mode (SCMR.SMIF = 1)

Source

pub const fn smr(&self) -> &SMR

0x00 - Serial Mode Register for Non-Smart Card Interface Mode (SCMR.SMIF = 0)

Source

pub const fn scr_smci(&self) -> &SCR_SMCI

0x02 - Serial Control Register for Smart Card Interface Mode (SCMR.SMIF = 1)

Source

pub const fn scr(&self) -> &SCR

0x02 - Serial Control Register for Non-Smart Card Interface Mode (SCMR.SMIF = 0)

Source

pub const fn ssr_smci(&self) -> &SSR_SMCI

0x04 - Serial Status Register for Smart Card Interface Mode (SCMR.SMIF = 1)

Source

pub const fn ssr_fifo(&self) -> &SSR_FIFO

0x04 - Serial Status Register for Non-Smart Card Interface and FIFO Mode (SCMR.SMIF = 0, FCR.FM = 1)

Source

pub const fn ssr(&self) -> &SSR

0x04 - Serial Status Register for Non-Smart Card Interface and Non-FIFO Mode (SCMR.SMIF = 0, FCR.FM = 0)

Source

pub const fn ftdrh(&self) -> &FTDRH

0x0e - Transmit FIFO Data Register

Source

pub const fn tdrhl(&self) -> &TDRHL

0x0e - Transmit Data Register

Source

pub const fn ftdrhl(&self) -> &FTDRHL

0x0e - Transmit FIFO Data Register

Source

pub const fn ftdrl(&self) -> &FTDRL

0x0f - Transmit FIFO Data Register

Source

pub const fn frdrh(&self) -> &FRDRH

0x10 - Receive FIFO Data Register

Source

pub const fn rdrhl(&self) -> &RDRHL

0x10 - Receive Data Register

Source

pub const fn frdrhl(&self) -> &FRDRHL

0x10 - Receive FIFO Data Register

Source

pub const fn frdrl(&self) -> &FRDRL

0x11 - Receive FIFO 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.