hardware 0.0.9

A no_std bare-metal hardware abstraction layer — all port I/O, memory and swap allocations are guarded at runtime. Do not consider this dependency stable before x.1.x
Documentation
1
2
3
4
5
6
7
pub fn check_temp() {
    if let Some(v) = crate::hardware_access::read_msr(0x19C) {
        let digital = ((v >> 16) & 0x7f) as u8;
        static TEMP_SIG: core::sync::atomic::AtomicU8 = core::sync::atomic::AtomicU8::new(0);
        TEMP_SIG.store(digital, core::sync::atomic::Ordering::Release);
    }
}