pub struct Serial {
base: u16,
}
Expand description
Serial console
Fields§
§base: u16
Base address of the data port
Implementations§
source§impl Serial
impl Serial
pub const fn new(base: u16) -> Self
sourcepub fn init(&self)
pub fn init(&self)
Initialize the serial output with:
- baud rate of 115200
- 8 bit word length
- 1 stop bit
- no parity
sourcefn data(&self) -> Port<u8>
fn data(&self) -> Port<u8>
Data register (or lower half of the divisor if divisor_latch_access
is enabled)
sourcefn int_en(&self) -> Port<u8>
fn int_en(&self) -> Port<u8>
Interrupt enable register (or upper half of the divisor if divisor_latch_access
is enabled)