Struct stm32f1xx_hal::backup_domain::BackupDomain
source · pub struct BackupDomain { /* private fields */ }
Expand description
The existence of this struct indicates that writing to the the backup
domain has been enabled. It is acquired by calling constrain
on rcc::Rcc::BKP
Implementations§
source§impl BackupDomain
impl BackupDomain
sourcepub fn read_data_register_low(&self, register: usize) -> u16
pub fn read_data_register_low(&self, register: usize) -> u16
Read a 16-bit value from one of the DR1 to DR10 registers part of the Backup Data Register. The register argument is a zero based index to the DRx registers: 0 is DR1, up to 9 for DR10. Providing a number above 9 will panic.
sourcepub fn read_data_register_high(&self, register: usize) -> u16
pub fn read_data_register_high(&self, register: usize) -> u16
Read a 16-bit value from one of the DR11 to DR42 registers part of the Backup Data Register. The register argument is a zero based index to the DRx registers: 0 is DR11, up to 31 for DR42. Providing a number above 31 will panic. NOTE: not available on medium- and low-density devices!
sourcepub fn write_data_register_low(&self, register: usize, data: u16)
pub fn write_data_register_low(&self, register: usize, data: u16)
Write a 16-bit value to one of the DR1 to DR10 registers part of the Backup Data Register. The register argument is a zero based index to the DRx registers: 0 is DR1, up to 9 for DR10. Providing a number above 9 will panic.
sourcepub fn write_data_register_high(&self, register: usize, data: u16)
pub fn write_data_register_high(&self, register: usize, data: u16)
Write a 16-bit value to one of the DR11 to DR42 registers part of the Backup Data Register. The register argument is a zero based index to the DRx registers: 0 is DR11, up to 31 for DR42. Providing a number above 31 will panic. NOTE: not available on medium- and low-density devices!