pub struct Uart<M: DlabMode>(/* private fields */);Implementations§
Source§impl<M: DlabMode> Uart<M>
impl<M: DlabMode> Uart<M>
pub fn write_fifo_control(&mut self, fifo_control: FifoControl)
pub fn read_line_control(&self) -> LineControl
pub fn write_line_control(&mut self, value: LineControl)
pub fn write_modem_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_byte(&self) -> u8
pub fn write_byte(&mut self, byte: u8)
pub fn read_interrupt_enable(&self) -> InterruptEnable
pub fn write_interrupt_enable(&mut self, value: InterruptEnable)
Sourcepub fn into_configure_mode(self) -> Uart<Configure>
pub fn into_configure_mode(self) -> Uart<Configure>
Enables access to the divisor latch registers.
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