Struct atmega_hal::pac::EEPROM
source · pub struct EEPROM { /* private fields */ }Expand description
EEPROM
Implementations§
source§impl EEPROM
impl EEPROM
sourcepub const PTR: *const RegisterBlock = {0x3f as *const avr_device::atmega2560::eeprom::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x3f as *const avr_device::atmega2560::eeprom::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Trait Implementations§
source§impl EepromOps<Atmega> for EEPROM
impl EepromOps<Atmega> for EEPROM
const CAPACITY: u16 = 4_096u16
source§fn raw_read_byte(&self, address: u16) -> u8
fn raw_read_byte(&self, address: u16) -> u8
Read a single byte from offset
address. Does not do a bounds check. Read moresource§fn raw_write_byte(&mut self, address: u16, data: u8)
fn raw_write_byte(&mut self, address: u16, data: u8)
Erase and write a single byte at offset
address. Does not do a bounds check. Read moresource§fn raw_erase_byte(&mut self, address: u16)
fn raw_erase_byte(&mut self, address: u16)
Erase a single byte at offset
address. Does not do a bounds check. Read more