Struct SCI9

Source
pub struct SCI9 { /* private fields */ }
Expand description

Serial Communication Interface

Implementations§

Source§

impl SCI9

Source

pub const PTR: *const RegisterBlock = {0x40118900 as *const sci0::RegisterBlock}

Pointer to the register block

Source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

Source

pub fn smr_smci(&self) -> &SMR_SMCI

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

Source

pub fn smr(&self) -> &SMR

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

Source

pub fn scr_smci(&self) -> &SCR_SMCI

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

Source

pub fn scr(&self) -> &SCR

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

Source

pub fn ssr_smci(&self) -> &SSR_SMCI

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

Source

pub fn ssr_fifo(&self) -> &SSR_FIFO

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

Source

pub fn ssr(&self) -> &SSR

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

Source

pub fn ftdrh(&self) -> &FTDRH

0x0e - Transmit FIFO Data Register

Source

pub fn tdrhl(&self) -> &TDRHL

0x0e - Transmit Data Register for Non-Manchester mode (MMR.MANEN = 0)

Source

pub fn ftdrhl(&self) -> &FTDRHL

0x0e - Transmit FIFO Data Register

Source

pub fn ftdrl(&self) -> &FTDRL

0x0f - Transmit FIFO Data Register

Source

pub fn frdrh(&self) -> &FRDRH

0x10 - Receive FIFO Data Register

Source

pub fn rdrhl(&self) -> &RDRHL

0x10 - Receive Data Register for Non-Manchester mode (MMR.MANEN = 0)

Source

pub fn frdrhl(&self) -> &FRDRHL

0x10 - Receive FIFO Data Register

Source

pub fn frdrl(&self) -> &FRDRL

0x11 - Receive FIFO Data Register

Trait Implementations§

Source§

impl Debug for SCI9

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for SCI9

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Send for SCI9

Auto Trait Implementations§

§

impl Freeze for SCI9

§

impl RefUnwindSafe for SCI9

§

impl !Sync for SCI9

§

impl Unpin for SCI9

§

impl UnwindSafe for SCI9

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.