pub struct Uart<M: Mode>(/* private fields */);
Implementations§
Source§impl<M: Mode> Uart<M>
impl<M: Mode> Uart<M>
pub fn disable_fifo(&mut self)
pub fn enable_fifo( &mut self, clear_rx: bool, clear_tx: bool, dma_mode_1: bool, size: FifoSize, )
pub fn read_line_control(&self) -> LineControl
pub fn write_line_control(&mut self, value: LineControl)
pub fn read_modem_control(&self) -> ModemControl
pub fn write_model_control(&mut self, value: ModemControl)
pub fn read_line_status(&self) -> LineStatus
pub fn read_modem_status(&self) -> ModemStatus
Source§impl Uart<Data>
impl Uart<Data>
Sourcepub unsafe fn new(address: UartAddress) -> Self
pub unsafe fn new(address: UartAddress) -> Self
§Safety
- Provided address must be valid for reading as a UART device.
- Provided address must not be otherwise mutably aliased.
pub fn read_data(&self) -> u8
pub fn write_data(&mut self, data: u8)
pub fn read_interrupt_enable(&self) -> InterruptEnable
pub fn write_interrupt_enable(&mut self, value: InterruptEnable)
pub fn configure_mode(self) -> Uart<Configure>
Auto Trait Implementations§
impl<M> Freeze for Uart<M>
impl<M> RefUnwindSafe for Uart<M>where
M: RefUnwindSafe,
impl<M> !Send for Uart<M>
impl<M> !Sync for Uart<M>
impl<M> Unpin for Uart<M>where
M: Unpin,
impl<M> UnwindSafe for Uart<M>where
M: UnwindSafe,
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
Mutably borrows from an owned value. Read more