Trait UartAddress

Source
pub unsafe trait UartAddress {
    // Required methods
    fn get_read_address(&self, register: ReadableRegister) -> RegisterAddress;
    fn get_write_address(&self, register: WriteableRegister) -> RegisterAddress;
}
Expand description

Represents an address type for a UART device, allowing idiomatic access to register addresses, and allowing any number of constraints to be encoded based on the hardware implemenation of the UART IO (whether port or memory mapped).

§Safety

Required Methods§

Implementors§