cpuio 0.2.0

Bare metal (no_std) inb, outb, inw, outw, inl, outw instructions with Rust-like API

Crate cpuio [] [src]

CPU-level input/output instructions, including inb, outb, etc., and a high level Rust wrapper.

Structs

Port

An I/O port over an arbitrary type supporting the InOut interface.

UnsafePort

An unsafe I/O port over an arbitrary type supporting the InOut interface.

Traits

InOut

This trait is defined for any type which can be read or written over a port. The processor supports I/O with u8, u16 and u32. The functions in this trait are all unsafe because they can write to arbitrary ports.

Functions

inb

Read a u8-sized value from port.

inl

Read a u32-sized value from port.

inw

Read a u16-sized value from port.

outb

Write a u8-sized value to port.

outl

Write a u32-sized value to port.

outw

Write a u8-sized value to port.