pub struct Rtc { /* private fields */ }
Expand description
Часы реального времени
Implementations§
Source§impl Rtc
impl Rtc
Sourcepub const PTR: *const RegisterBlock = {0x60400 as *const rtc::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x60400 as *const rtc::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
Sourcepub unsafe fn steal() -> Self
pub unsafe fn steal() -> Self
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
Sourcepub fn rrtc_time(&self) -> &RrtcTime
pub fn rrtc_time(&self) -> &RrtcTime
0x00 - Регистр установки времени. Используется BCD-кодировка
Sourcepub fn rrtc_talrm(&self) -> &RrtcTalrm
pub fn rrtc_talrm(&self) -> &RrtcTalrm
0x08 - регистр хранит время, при совпадении которого со значением регистра RRTC_TIME, будет сгенерировано соответствующее прерывание
Sourcepub fn rrtc_dalrm(&self) -> &RrtcDalrm
pub fn rrtc_dalrm(&self) -> &RrtcDalrm
0x0c - регистр хранит время, при совпадении которого со значением регистра RRTC_TIME, будет сгенерировано соответствующее прерывание.
Sourcepub fn rrtc_reg10(&self) -> &RrtcReg10
pub fn rrtc_reg10(&self) -> &RrtcReg10
0x48 - Регистры общего назначения REG10
Sourcepub fn rrtc_reg11(&self) -> &RrtcReg11
pub fn rrtc_reg11(&self) -> &RrtcReg11
0x4c - Регистры общего назначения REG11
Sourcepub fn rrtc_reg12(&self) -> &RrtcReg12
pub fn rrtc_reg12(&self) -> &RrtcReg12
0x50 - Регистры общего назначения REG12
Sourcepub fn rrtc_reg13(&self) -> &RrtcReg13
pub fn rrtc_reg13(&self) -> &RrtcReg13
0x54 - Регистры общего назначения REG13
Sourcepub fn rrtc_reg14(&self) -> &RrtcReg14
pub fn rrtc_reg14(&self) -> &RrtcReg14
0x58 - Регистры общего назначения REG14
Sourcepub fn rrtc_reg15(&self) -> &RrtcReg15
pub fn rrtc_reg15(&self) -> &RrtcReg15
0x5c - Регистры общего назначения REG14