portable 0.2.1

A minimal and portable low-level x86 IO port handling library
Documentation
  • Coverage
  • 100%
    10 out of 10 items documented1 out of 9 items with examples
  • Size
  • Source code size: 6.19 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • andofwinds/portable
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • andofwinds

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