pub struct UART0 { /* private fields */ }Expand description
UART0
Implementations§
Source§impl UART0
impl UART0
Sourcepub const PTR: *const RegisterBlock = {0x40070000 as *const rp235x_hal::rp235x_pac::uart0::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40070000 as *const rp235x_hal::rp235x_pac::uart0::RegisterBlock}
Pointer to the register block
Sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Sourcepub unsafe fn steal() -> UART0
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>§
Sourcepub fn uartdr(&self) -> &Reg<UARTDR_SPEC>
pub fn uartdr(&self) -> &Reg<UARTDR_SPEC>
0x00 - Data Register, UARTDR
Sourcepub fn uartrsr(&self) -> &Reg<UARTRSR_SPEC>
pub fn uartrsr(&self) -> &Reg<UARTRSR_SPEC>
0x04 - Receive Status Register/Error Clear Register, UARTRSR/UARTECR
Sourcepub fn uartfr(&self) -> &Reg<UARTFR_SPEC>
pub fn uartfr(&self) -> &Reg<UARTFR_SPEC>
0x18 - Flag Register, UARTFR
Sourcepub fn uartilpr(&self) -> &Reg<UARTILPR_SPEC>
pub fn uartilpr(&self) -> &Reg<UARTILPR_SPEC>
0x20 - IrDA Low-Power Counter Register, UARTILPR
Sourcepub fn uartibrd(&self) -> &Reg<UARTIBRD_SPEC>
pub fn uartibrd(&self) -> &Reg<UARTIBRD_SPEC>
0x24 - Integer Baud Rate Register, UARTIBRD
Sourcepub fn uartfbrd(&self) -> &Reg<UARTFBRD_SPEC>
pub fn uartfbrd(&self) -> &Reg<UARTFBRD_SPEC>
0x28 - Fractional Baud Rate Register, UARTFBRD
Sourcepub fn uartlcr_h(&self) -> &Reg<UARTLCR_H_SPEC>
pub fn uartlcr_h(&self) -> &Reg<UARTLCR_H_SPEC>
0x2c - Line Control Register, UARTLCR_H
Sourcepub fn uartcr(&self) -> &Reg<UARTCR_SPEC>
pub fn uartcr(&self) -> &Reg<UARTCR_SPEC>
0x30 - Control Register, UARTCR
Sourcepub fn uartifls(&self) -> &Reg<UARTIFLS_SPEC>
pub fn uartifls(&self) -> &Reg<UARTIFLS_SPEC>
0x34 - Interrupt FIFO Level Select Register, UARTIFLS
Sourcepub fn uartimsc(&self) -> &Reg<UARTIMSC_SPEC>
pub fn uartimsc(&self) -> &Reg<UARTIMSC_SPEC>
0x38 - Interrupt Mask Set/Clear Register, UARTIMSC
Sourcepub fn uartris(&self) -> &Reg<UARTRIS_SPEC>
pub fn uartris(&self) -> &Reg<UARTRIS_SPEC>
0x3c - Raw Interrupt Status Register, UARTRIS
Sourcepub fn uartmis(&self) -> &Reg<UARTMIS_SPEC>
pub fn uartmis(&self) -> &Reg<UARTMIS_SPEC>
0x40 - Masked Interrupt Status Register, UARTMIS
Sourcepub fn uarticr(&self) -> &Reg<UARTICR_SPEC>
pub fn uarticr(&self) -> &Reg<UARTICR_SPEC>
0x44 - Interrupt Clear Register, UARTICR
Sourcepub fn uartdmacr(&self) -> &Reg<UARTDMACR_SPEC>
pub fn uartdmacr(&self) -> &Reg<UARTDMACR_SPEC>
0x48 - DMA Control Register, UARTDMACR
Sourcepub fn uartperiphid0(&self) -> &Reg<UARTPERIPHID0_SPEC>
pub fn uartperiphid0(&self) -> &Reg<UARTPERIPHID0_SPEC>
0xfe0 - UARTPeriphID0 Register
Sourcepub fn uartperiphid1(&self) -> &Reg<UARTPERIPHID1_SPEC>
pub fn uartperiphid1(&self) -> &Reg<UARTPERIPHID1_SPEC>
0xfe4 - UARTPeriphID1 Register
Sourcepub fn uartperiphid2(&self) -> &Reg<UARTPERIPHID2_SPEC>
pub fn uartperiphid2(&self) -> &Reg<UARTPERIPHID2_SPEC>
0xfe8 - UARTPeriphID2 Register
Sourcepub fn uartperiphid3(&self) -> &Reg<UARTPERIPHID3_SPEC>
pub fn uartperiphid3(&self) -> &Reg<UARTPERIPHID3_SPEC>
0xfec - UARTPeriphID3 Register
Sourcepub fn uartpcellid0(&self) -> &Reg<UARTPCELLID0_SPEC>
pub fn uartpcellid0(&self) -> &Reg<UARTPCELLID0_SPEC>
0xff0 - UARTPCellID0 Register
Sourcepub fn uartpcellid1(&self) -> &Reg<UARTPCELLID1_SPEC>
pub fn uartpcellid1(&self) -> &Reg<UARTPCELLID1_SPEC>
0xff4 - UARTPCellID1 Register
Sourcepub fn uartpcellid2(&self) -> &Reg<UARTPCELLID2_SPEC>
pub fn uartpcellid2(&self) -> &Reg<UARTPCELLID2_SPEC>
0xff8 - UARTPCellID2 Register
Sourcepub fn uartpcellid3(&self) -> &Reg<UARTPCELLID3_SPEC>
pub fn uartpcellid3(&self) -> &Reg<UARTPCELLID3_SPEC>
0xffc - UARTPCellID3 Register
Trait Implementations§
Source§impl UartDevice for UART0
impl UartDevice for UART0
impl Send for UART0
impl<P> ValidPinCts<UART0> for Pin<Gpio14, FunctionUart, P>where
P: PullType,
impl<P> ValidPinCts<UART0> for Pin<Gpio18, FunctionUart, P>where
P: PullType,
impl<P> ValidPinCts<UART0> for Pin<Gpio2, FunctionUart, P>where
P: PullType,
impl<P> ValidPinRts<UART0> for Pin<Gpio15, FunctionUart, P>where
P: PullType,
impl<P> ValidPinRts<UART0> for Pin<Gpio19, FunctionUart, P>where
P: PullType,
impl<P> ValidPinRts<UART0> for Pin<Gpio3, FunctionUart, P>where
P: PullType,
impl<P> ValidPinRx<UART0> for Pin<Gpio1, FunctionUart, P>where
P: PullType,
impl<P> ValidPinRx<UART0> for Pin<Gpio13, FunctionUart, P>where
P: PullType,
impl<P> ValidPinRx<UART0> for Pin<Gpio15, FunctionUartAux, P>where
P: PullType,
impl<P> ValidPinRx<UART0> for Pin<Gpio17, FunctionUart, P>where
P: PullType,
impl<P> ValidPinRx<UART0> for Pin<Gpio19, FunctionUartAux, P>where
P: PullType,
impl<P> ValidPinRx<UART0> for Pin<Gpio29, FunctionUart, P>where
P: PullType,
impl<P> ValidPinRx<UART0> for Pin<Gpio3, FunctionUartAux, P>where
P: PullType,
impl<P> ValidPinTx<UART0> for Pin<Gpio0, FunctionUart, P>where
P: PullType,
impl<P> ValidPinTx<UART0> for Pin<Gpio12, FunctionUart, P>where
P: PullType,
impl<P> ValidPinTx<UART0> for Pin<Gpio14, FunctionUartAux, P>where
P: PullType,
impl<P> ValidPinTx<UART0> for Pin<Gpio16, FunctionUart, P>where
P: PullType,
impl<P> ValidPinTx<UART0> for Pin<Gpio18, FunctionUartAux, P>where
P: PullType,
impl<P> ValidPinTx<UART0> for Pin<Gpio2, FunctionUartAux, P>where
P: PullType,
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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