Struct stm32_metapac::fmc::regs::Sdrtr
#[repr(transparent)]pub struct Sdrtr(pub u32);
Expand description
SDRAM refresh timer register.
Tuple Fields§
§0: u32
Implementations§
§impl Sdrtr
impl Sdrtr
pub const fn cre(&self) -> bool
pub const fn cre(&self) -> bool
Clear Refresh error flag This bit is used to clear the Refresh Error Flag (RE) in the Status Register.
pub fn set_cre(&mut self, val: bool)
pub fn set_cre(&mut self, val: bool)
Clear Refresh error flag This bit is used to clear the Refresh Error Flag (RE) in the Status Register.
pub const fn count(&self) -> u16
pub const fn count(&self) -> u16
Refresh Timer Count This 13-bit field defines the refresh rate of the SDRAM device. It is expressed in number of memory clock cycles. It must be set at least to 41 SDRAM clock cycles (0x29). Refresh rate = (COUNT + 1) x SDRAM frequency clock COUNT = (SDRAM refresh period / Number of rows) - 20.
pub fn set_count(&mut self, val: u16)
pub fn set_count(&mut self, val: u16)
Refresh Timer Count This 13-bit field defines the refresh rate of the SDRAM device. It is expressed in number of memory clock cycles. It must be set at least to 41 SDRAM clock cycles (0x29). Refresh rate = (COUNT + 1) x SDRAM frequency clock COUNT = (SDRAM refresh period / Number of rows) - 20.
Trait Implementations§
impl Copy for Sdrtr
impl Eq for Sdrtr
impl StructuralPartialEq for Sdrtr
Auto Trait Implementations§
impl Freeze for Sdrtr
impl RefUnwindSafe for Sdrtr
impl Send for Sdrtr
impl Sync for Sdrtr
impl Unpin for Sdrtr
impl UnwindSafe for Sdrtr
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)