#low-level #port #osdev #x86-64 #no-std

no-std portable

A minimal and portable low-level x86 IO port handling library

2 unstable releases

0.2.1 Aug 11, 2024
0.1.0 Jul 28, 2024

#398 in Operating systems

Download history 115/week @ 2024-08-10 11/week @ 2024-08-17 26/week @ 2024-09-14 15/week @ 2024-09-21 4/week @ 2024-09-28

64 downloads per month

Custom license

6KB
112 lines

Portable

Provides a minimal and safe low-level x86_64 IO port bindings.

This crate is inspired by x86_64 and designed to be simple, lightweight and pretty to use.

Here is an example reading from 0x01 and writing 0x02 into it:

// At first, read from port
let foo_port = Port::new(0x01);
let data: u8 = foo_port.read();
                                                                   
// And write
foo_port.write(0x02_u8);

Please, take a note that this is a no_std crate and can be used in something like osdev

No runtime deps