pub struct Uart {
pub tx: Option<Sender>,
pub rx: Option<Receiver>,
/* private fields */
}
Fields§
§tx: Option<Sender>
§rx: Option<Receiver>
Implementations§
Source§impl Uart
impl Uart
pub fn new_port_8250(base: usize) -> Self
pub fn mmio_base_add(&mut self, offset: usize)
pub fn new_by_fdt_node(node: &Node<'_>, f: FnPhysToVirt) -> Option<Self>
pub fn set_irq_enable(&mut self, enable: bool)
pub fn get_irq_enable(&mut self) -> bool
pub fn clean_irq_event(&mut self, event: IrqEvent)
pub fn get_irq_event(&mut self) -> IrqEvent
Auto Trait Implementations§
impl Freeze for Uart
impl RefUnwindSafe for Uart
impl Send for Uart
impl Sync for Uart
impl Unpin for Uart
impl UnwindSafe for Uart
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