pub fn read_all(&mut self, output: &mut [u8; 128]) {
		for i in 0..128 {
			self.address_port.write(i);
			output[i as usize] = self.data_port.read();
		}
	}
/// Reads all the registers in CMOS
/// # Examples
/// ```rust,no_run
/// # use cmos::{CMOS, CMOSCenturyHandler};
/// let mut cmos = unsafe { CMOS::new() };
/// // Blank array to read into
/// let mut cmos_values: [u8; 128] = [0; 128];
/// // Read values into provided array
/// cmos.read_all(&mut cmos_values);
/// ```
Reads all the registers in CMOS
Reads all the registers in CMOS
pub fn read_all(&mut self, output: &mut [u8; 128]) {
		for i in 0..128 {
			self.address_port.write(i);
			output[i as usize] = self.data_port.read();
		}
	}
pub fn read_all ( & mut self , output : & mut [ u8 ; 128 ] ) { for i in 0 .. 128 { self . address_port . write ( i ) ; output [ i as usize ] = self . data_port . read ( ) ; } }
Reads all the registers in CMOS
Reads all the registers in CMOS
&mut self
output
&mut [u8; 128]
&mut self
output
&mut [u8; 128]
examples
None
use cmos::{cmos, cmoscenturyhandler};
let mut cmos = unsafe { CMOS::new() };
Blank array to read into
let mut cmos_values: [u8; 128] = [0; 128];
Read values into provided array
cmos.read_all(&mut cmos_values);
```
let mut cmos = unsafe { CMOS :: new () } ; Blank array to read into let mut cmos_values : [ u8 ; 128 ] = [ 0 ; 128 ] ; Read values into provided array cmos . read_all ( &mut cmos_values ) ; ` ` `