Struct xmc4200::USIC1_CH1

source ·
pub struct USIC1_CH1 { /* private fields */ }
Expand description

Universal Serial Interface Controller 1

Implementations§

source§

impl USIC1_CH1

source

pub const PTR: *const RegisterBlock = {0x48020200 as *const usic0_ch0::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

source

pub fn ccfg(&self) -> &CCFG

0x04 - Channel Configuration Register

source

pub fn kscfg(&self) -> &KSCFG

0x0c - Kernel State Configuration Register

source

pub fn fdr(&self) -> &FDR

0x10 - Fractional Divider Register

source

pub fn brg(&self) -> &BRG

0x14 - Baud Rate Generator Register

source

pub fn inpr(&self) -> &INPR

0x18 - Interrupt Node Pointer Register

source

pub fn dx0cr(&self) -> &DX0CR

0x1c - Input Control Register 0

source

pub fn dx1cr(&self) -> &DX1CR

0x20 - Input Control Register 1

source

pub fn dx2cr(&self) -> &DX2CR

0x24 - Input Control Register 2

source

pub fn dx3cr(&self) -> &DX3CR

0x28 - Input Control Register 3

source

pub fn dx4cr(&self) -> &DX4CR

0x2c - Input Control Register 4

source

pub fn dx5cr(&self) -> &DX5CR

0x30 - Input Control Register 5

source

pub fn sctr(&self) -> &SCTR

0x34 - Shift Control Register

source

pub fn tcsr(&self) -> &TCSR

0x38 - Transmit Control/Status Register

source

pub fn pcr_iismode(&self) -> &PCR_IISMODE

0x3c - Protocol Control Register [IIS Mode]

source

pub fn pcr_iicmode(&self) -> &PCR_IICMODE

0x3c - Protocol Control Register [IIC Mode]

source

pub fn pcr_sscmode(&self) -> &PCR_SSCMODE

0x3c - Protocol Control Register [SSC Mode]

source

pub fn pcr_ascmode(&self) -> &PCR_ASCMODE

0x3c - Protocol Control Register [ASC Mode]

source

pub fn pcr(&self) -> &PCR

0x3c - Protocol Control Register

source

pub fn ccr(&self) -> &CCR

0x40 - Channel Control Register

source

pub fn cmtr(&self) -> &CMTR

0x44 - Capture Mode Timer Register

source

pub fn psr_iismode(&self) -> &PSR_IISMODE

0x48 - Protocol Status Register [IIS Mode]

source

pub fn psr_iicmode(&self) -> &PSR_IICMODE

0x48 - Protocol Status Register [IIC Mode]

source

pub fn psr_sscmode(&self) -> &PSR_SSCMODE

0x48 - Protocol Status Register [SSC Mode]

source

pub fn psr_ascmode(&self) -> &PSR_ASCMODE

0x48 - Protocol Status Register [ASC Mode]

source

pub fn psr(&self) -> &PSR

0x48 - Protocol Status Register

source

pub fn pscr(&self) -> &PSCR

0x4c - Protocol Status Clear Register

source

pub fn rbufsr(&self) -> &RBUFSR

0x50 - Receiver Buffer Status Register

source

pub fn rbuf(&self) -> &RBUF

0x54 - Receiver Buffer Register

source

pub fn rbufd(&self) -> &RBUFD

0x58 - Receiver Buffer Register for Debugger

source

pub fn rbuf0(&self) -> &RBUF0

0x5c - Receiver Buffer Register 0

source

pub fn rbuf1(&self) -> &RBUF1

0x60 - Receiver Buffer Register 1

source

pub fn rbuf01sr(&self) -> &RBUF01SR

0x64 - Receiver Buffer 01 Status Register

source

pub fn fmr(&self) -> &FMR

0x68 - Flag Modification Register

source

pub fn tbuf(&self, n: usize) -> &TBUF

0x80..0x100 - Transmit Buffer

source

pub fn tbuf_iter(&self) -> impl Iterator<Item = &TBUF>

Iterator for array of: 0x80..0x100 - Transmit Buffer

source

pub fn byp(&self) -> &BYP

0x100 - Bypass Data Register

source

pub fn bypcr(&self) -> &BYPCR

0x104 - Bypass Control Register

source

pub fn tbctr(&self) -> &TBCTR

0x108 - Transmitter Buffer Control Register

source

pub fn rbctr(&self) -> &RBCTR

0x10c - Receiver Buffer Control Register

source

pub fn trbptr(&self) -> &TRBPTR

0x110 - Transmit/Receive Buffer Pointer Register

source

pub fn trbsr(&self) -> &TRBSR

0x114 - Transmit/Receive Buffer Status Register

source

pub fn trbscr(&self) -> &TRBSCR

0x118 - Transmit/Receive Buffer Status Clear Register

source

pub fn outr(&self) -> &OUTR

0x11c - Receiver Buffer Output Register

source

pub fn outdr(&self) -> &OUTDR

0x120 - Receiver Buffer Output Register L for Debugger

source

pub fn in_(&self, n: usize) -> &IN

0x180..0x200 - Transmit FIFO Buffer

source

pub fn in__iter(&self) -> impl Iterator<Item = &IN>

Iterator for array of: 0x180..0x200 - Transmit FIFO Buffer

Trait Implementations§

source§

impl Debug for USIC1_CH1

source§

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

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

impl Deref for USIC1_CH1

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for USIC1_CH1

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

§

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

§

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.