Skip to main content

Port

Type Alias Port 

Source
pub type Port<Layout, Base, Access> = Register<Layout, Access, PortIo<Base, Access>>;
Expand description

A specialization of Register representing an x86 I/O port.

Example usage:

use regio::RwSafe;
use regio::x86::Port;

const IO_PORT: Port<u8, u8, RwSafe> = Port::new(0x3f8);

Aliased Type§

pub struct Port<Layout, Base, Access> { /* private fields */ }

Implementations§

Source§

impl<Layout, Base, Access> Port<Layout, Base, Access>
where Layout: LayoutOver<Base>, Base: Copy, Access: Accessible,

Source

pub const fn new(port: u16) -> Self

Constructs a new port register directly from a port address.