1 unstable release

0.1.1 Nov 28, 2023
0.1.0 Nov 28, 2023

#847 in Hardware support


Used in 3 crates (2 directly)

MIT/Apache

3KB

vgainfo-rs

VGA(0xB8000) info in freestanding Rust.

How use


cargo add vgainfo-rs

Example

#![no_std]
extern crate vgainfo_rs;
use vgainfo_rs::*;

fn reset_screen() {
    let buffer_ptr = LENGTH as *mut VgaCharType;
    let iter = (0..LENGTH).map(|i| unsafe { buffer_ptr.add(i) });

    for ptr in iter {
        let value = unsafe { ptr.read_volatile() };
        unsafe { ptr.write_volatile(value & 0xff00) };
    }
}

Contact me


lib.rs:

vgainfo-rs

VGA(0xB8000) info in freestanding Rust.

Example

#![no_std]
extern crate vgainfo_rs;
use vgainfo_rs::*;

fn reset_screen() {
    let buffer_ptr = LENGTH as *mut VgaCharType;
    let iter = (0..LENGTH).map(|i| unsafe { buffer_ptr.add(i) });

    for ptr in iter {
        let value = unsafe { ptr.read_volatile() };
        unsafe { ptr.write_volatile(value & 0xff00) };
    }
}

No runtime deps