Struct stm32_metapac::fmc::regs::Sdcmr
#[repr(transparent)]pub struct Sdcmr(pub u32);
Expand description
SDRAM Command Mode register.
Tuple Fields§
§0: u32
Implementations§
§impl Sdcmr
impl Sdcmr
pub const fn mode(&self) -> Mode
pub const fn mode(&self) -> Mode
Command mode These bits define the command issued to the SDRAM device. Note: When a command is issued, at least one Command Target Bank bit ( CTB1 or CTB2) must be set otherwise the command will be ignored. Note: If two SDRAM banks are used, the Auto-refresh and PALL command must be issued simultaneously to the two devices with CTB1 and CTB2 bits set otherwise the command will be ignored. Note: If only one SDRAM bank is used and a command is issued with it’s associated CTB bit set, the other CTB bit of the the unused bank must be kept to 0.
pub fn set_mode(&mut self, val: Mode)
pub fn set_mode(&mut self, val: Mode)
Command mode These bits define the command issued to the SDRAM device. Note: When a command is issued, at least one Command Target Bank bit ( CTB1 or CTB2) must be set otherwise the command will be ignored. Note: If two SDRAM banks are used, the Auto-refresh and PALL command must be issued simultaneously to the two devices with CTB1 and CTB2 bits set otherwise the command will be ignored. Note: If only one SDRAM bank is used and a command is issued with it’s associated CTB bit set, the other CTB bit of the the unused bank must be kept to 0.
pub const fn ctb(&self, n: usize) -> bool
pub const fn ctb(&self, n: usize) -> bool
Command Target Bank 2 This bit indicates whether the command will be issued to SDRAM Bank 2 or not.
pub fn set_ctb(&mut self, n: usize, val: bool)
pub fn set_ctb(&mut self, n: usize, val: bool)
Command Target Bank 2 This bit indicates whether the command will be issued to SDRAM Bank 2 or not.
pub const fn nrfs(&self) -> u8
pub const fn nrfs(&self) -> u8
Number of Auto-refresh These bits define the number of consecutive Auto-refresh commands issued when MODE = ‘011’. ….
pub fn set_nrfs(&mut self, val: u8)
pub fn set_nrfs(&mut self, val: u8)
Number of Auto-refresh These bits define the number of consecutive Auto-refresh commands issued when MODE = ‘011’. ….