Updated EEPROMBYTECHECKLESS documentation

This commit is contained in:
PrimmR 2023-09-12 17:37:45 +01:00
parent c3acb2455a
commit 4a85696f19

View file

@ -139,6 +139,8 @@ impl EEPROMBYTE {
} }
} }
///Use this struct to store and read single bytes to/from eeprom memory without using a check digit.
///Unlike the other eeprom structs, this does not need to be initialised.
pub struct EEPROMBYTECHECKLESS { pub struct EEPROMBYTECHECKLESS {
idx: i16, idx: i16,
} }
@ -151,8 +153,6 @@ impl EEPROMBYTECHECKLESS {
idx: EEPROM_STORAGE_SPACE_START + idx, idx: EEPROM_STORAGE_SPACE_START + idx,
} }
} }
pub fn init(&self) {
}
pub fn read(&self) -> u8 { pub fn read(&self) -> u8 {
unsafe { arduboy_eeprom_read_raw(self.idx) } unsafe { arduboy_eeprom_read_raw(self.idx) }
} }