UART0

Struct UART0 

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

UART0

Implementations§

Source§

impl UART0

Source

pub const PTR: *const RegisterBlock = {0x40070000 as *const rp235x_hal::rp235x_pac::uart0::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() -> UART0

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 uartdr(&self) -> &Reg<UARTDR_SPEC>

0x00 - Data Register, UARTDR

Source

pub fn uartrsr(&self) -> &Reg<UARTRSR_SPEC>

0x04 - Receive Status Register/Error Clear Register, UARTRSR/UARTECR

Source

pub fn uartfr(&self) -> &Reg<UARTFR_SPEC>

0x18 - Flag Register, UARTFR

Source

pub fn uartilpr(&self) -> &Reg<UARTILPR_SPEC>

0x20 - IrDA Low-Power Counter Register, UARTILPR

Source

pub fn uartibrd(&self) -> &Reg<UARTIBRD_SPEC>

0x24 - Integer Baud Rate Register, UARTIBRD

Source

pub fn uartfbrd(&self) -> &Reg<UARTFBRD_SPEC>

0x28 - Fractional Baud Rate Register, UARTFBRD

Source

pub fn uartlcr_h(&self) -> &Reg<UARTLCR_H_SPEC>

0x2c - Line Control Register, UARTLCR_H

Source

pub fn uartcr(&self) -> &Reg<UARTCR_SPEC>

0x30 - Control Register, UARTCR

Source

pub fn uartifls(&self) -> &Reg<UARTIFLS_SPEC>

0x34 - Interrupt FIFO Level Select Register, UARTIFLS

Source

pub fn uartimsc(&self) -> &Reg<UARTIMSC_SPEC>

0x38 - Interrupt Mask Set/Clear Register, UARTIMSC

Source

pub fn uartris(&self) -> &Reg<UARTRIS_SPEC>

0x3c - Raw Interrupt Status Register, UARTRIS

Source

pub fn uartmis(&self) -> &Reg<UARTMIS_SPEC>

0x40 - Masked Interrupt Status Register, UARTMIS

Source

pub fn uarticr(&self) -> &Reg<UARTICR_SPEC>

0x44 - Interrupt Clear Register, UARTICR

Source

pub fn uartdmacr(&self) -> &Reg<UARTDMACR_SPEC>

0x48 - DMA Control Register, UARTDMACR

Source

pub fn uartperiphid0(&self) -> &Reg<UARTPERIPHID0_SPEC>

0xfe0 - UARTPeriphID0 Register

Source

pub fn uartperiphid1(&self) -> &Reg<UARTPERIPHID1_SPEC>

0xfe4 - UARTPeriphID1 Register

Source

pub fn uartperiphid2(&self) -> &Reg<UARTPERIPHID2_SPEC>

0xfe8 - UARTPeriphID2 Register

Source

pub fn uartperiphid3(&self) -> &Reg<UARTPERIPHID3_SPEC>

0xfec - UARTPeriphID3 Register

Source

pub fn uartpcellid0(&self) -> &Reg<UARTPCELLID0_SPEC>

0xff0 - UARTPCellID0 Register

Source

pub fn uartpcellid1(&self) -> &Reg<UARTPCELLID1_SPEC>

0xff4 - UARTPCellID1 Register

Source

pub fn uartpcellid2(&self) -> &Reg<UARTPCELLID2_SPEC>

0xff8 - UARTPCellID2 Register

Source

pub fn uartpcellid3(&self) -> &Reg<UARTPCELLID3_SPEC>

0xffc - UARTPCellID3 Register

Trait Implementations§

Source§

impl Debug for UART0

Source§

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

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

impl Deref for UART0

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<UART0 as Deref>::Target

Dereferences the value.
Source§

impl UartDevice for UART0

Source§

fn tx_dreq() -> u8

The DREQ number for which TX DMA requests are triggered.

Source§

fn rx_dreq() -> u8

The DREQ number for which RX DMA requests are triggered.

Source§

const ID: usize = 0usize

Index of the Uart.
Source§

impl Send for UART0

Source§

impl<P> ValidPinCts<UART0> for Pin<Gpio14, FunctionUart, P>
where P: PullType,

Source§

impl<P> ValidPinCts<UART0> for Pin<Gpio18, FunctionUart, P>
where P: PullType,

Source§

impl<P> ValidPinCts<UART0> for Pin<Gpio2, FunctionUart, P>
where P: PullType,

Source§

impl<P> ValidPinRts<UART0> for Pin<Gpio15, FunctionUart, P>
where P: PullType,

Source§

impl<P> ValidPinRts<UART0> for Pin<Gpio19, FunctionUart, P>
where P: PullType,

Source§

impl<P> ValidPinRts<UART0> for Pin<Gpio3, FunctionUart, P>
where P: PullType,

Source§

impl<P> ValidPinRx<UART0> for Pin<Gpio1, FunctionUart, P>
where P: PullType,

Source§

impl<P> ValidPinRx<UART0> for Pin<Gpio13, FunctionUart, P>
where P: PullType,

Source§

impl<P> ValidPinRx<UART0> for Pin<Gpio15, FunctionUartAux, P>
where P: PullType,

Source§

impl<P> ValidPinRx<UART0> for Pin<Gpio17, FunctionUart, P>
where P: PullType,

Source§

impl<P> ValidPinRx<UART0> for Pin<Gpio19, FunctionUartAux, P>
where P: PullType,

Source§

impl<P> ValidPinRx<UART0> for Pin<Gpio29, FunctionUart, P>
where P: PullType,

Source§

impl<P> ValidPinRx<UART0> for Pin<Gpio3, FunctionUartAux, P>
where P: PullType,

Source§

impl<P> ValidPinTx<UART0> for Pin<Gpio0, FunctionUart, P>
where P: PullType,

Source§

impl<P> ValidPinTx<UART0> for Pin<Gpio12, FunctionUart, P>
where P: PullType,

Source§

impl<P> ValidPinTx<UART0> for Pin<Gpio14, FunctionUartAux, P>
where P: PullType,

Source§

impl<P> ValidPinTx<UART0> for Pin<Gpio16, FunctionUart, P>
where P: PullType,

Source§

impl<P> ValidPinTx<UART0> for Pin<Gpio18, FunctionUartAux, P>
where P: PullType,

Source§

impl<P> ValidPinTx<UART0> for Pin<Gpio2, FunctionUartAux, P>
where P: PullType,

Source§

impl<P> ValidPinTx<UART0> for Pin<Gpio28, FunctionUart, P>
where P: PullType,

Auto Trait Implementations§

§

impl Freeze for UART0

§

impl RefUnwindSafe for UART0

§

impl !Sync for UART0

§

impl Unpin for UART0

§

impl UnwindSafe for UART0

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<Choices> CoproductSubsetter<CNil, HNil> for Choices

Source§

type Remainder = Choices

Source§

fn subset( self, ) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>

Extract a subset of the possible types in a coproduct (or get the remaining possibilities) 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Is for T
where T: Sealed + Borrow<T> + BorrowMut<T>,

Source§

type Type = T

Source§

impl<T, U, I> LiftInto<U, I> for T
where U: LiftFrom<T, I>,

Source§

fn lift_into(self) -> U

Performs the indexed conversion.
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<Source> Sculptor<HNil, HNil> for Source

Source§

type Remainder = Source

Source§

fn sculpt(self) -> (HNil, <Source as Sculptor<HNil, HNil>>::Remainder)

Consumes the current HList and returns an HList with the requested shape. Read more
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.