cmos-0.1.1 doesn't have any documentation.
CMOS
A utility to read, write CMOS and RTC data. Standard library not required.
Requirements
Using the library (only tested on x86, nightly compiler required)
Add the crate to your project
# Cargo.toml
Examples
To read the RTC using the century register.
use ;
// Create a CMOS object (unsafe due to the use of port I/O)
let mut cmos = unsafe ;
// Read the rtc date time using this year
let rtc = cmos.read_rtc;
To read the RTC using the current year.
use ;
// Create a CMOS object (unsafe due to the use of port I/O)
let mut cmos = unsafe ;
// Read the rtc date time using this year
let rtc = cmos.read_rtc;
Check the docs for more information.
Contributing
Feel free to contribute what you want. Just send in a pull request!
License
MIT