pub trait RtcNvram: Rtc {
// Required methods
fn read_nvram(
&mut self,
offset: u8,
buffer: &mut [u8],
) -> Result<(), Self::Error>;
fn write_nvram(
&mut self,
offset: u8,
data: &[u8],
) -> Result<(), Self::Error>;
fn nvram_size(&self) -> u16;
}Expand description
RTC with non-volatile memory (NVRAM/SRAM) access
Required Methods§
Sourcefn nvram_size(&self) -> u16
fn nvram_size(&self) -> u16
Get the size of available NVRAM in bytes
§Returns
Total NVRAM size (e.g., 56 for DS1307, 0 for DS3231)