Struct stm32_metapac::fmc::regs::Sdcr
#[repr(transparent)]pub struct Sdcr(pub u32);
Expand description
SDRAM control registers 1.
Tuple Fields§
§0: u32
Implementations§
§impl Sdcr
impl Sdcr
pub const fn nc(&self) -> Nc
pub const fn nc(&self) -> Nc
Number of column address bits These bits define the number of bits of a column address.
pub fn set_nc(&mut self, val: Nc)
pub fn set_nc(&mut self, val: Nc)
Number of column address bits These bits define the number of bits of a column address.
pub const fn nr(&self) -> Nr
pub const fn nr(&self) -> Nr
Number of row address bits These bits define the number of bits of a row address.
pub fn set_nr(&mut self, val: Nr)
pub fn set_nr(&mut self, val: Nr)
Number of row address bits These bits define the number of bits of a row address.
pub fn set_mwid(&mut self, val: Mwid)
pub fn set_mwid(&mut self, val: Mwid)
Memory data bus width. These bits define the memory device width.
pub fn set_nb(&mut self, val: Nb)
pub fn set_nb(&mut self, val: Nb)
Number of internal banks This bit sets the number of internal banks.
pub const fn cas(&self) -> Cas
pub const fn cas(&self) -> Cas
CAS Latency This bits sets the SDRAM CAS latency in number of memory clock cycles.
pub fn set_cas(&mut self, val: Cas)
pub fn set_cas(&mut self, val: Cas)
CAS Latency This bits sets the SDRAM CAS latency in number of memory clock cycles.
pub const fn wp(&self) -> bool
pub const fn wp(&self) -> bool
Write protection This bit enables write mode access to the SDRAM bank.
pub fn set_wp(&mut self, val: bool)
pub fn set_wp(&mut self, val: bool)
Write protection This bit enables write mode access to the SDRAM bank.
pub const fn sdclk(&self) -> Sdclk
pub const fn sdclk(&self) -> Sdclk
SDRAM clock configuration These bits define the SDRAM clock period for both SDRAM banks and allow disabling the clock before changing the frequency. In this case the SDRAM must be re-initialized. Note: The corresponding bits in the FMC_SDCR2 register are don’t care.
pub fn set_sdclk(&mut self, val: Sdclk)
pub fn set_sdclk(&mut self, val: Sdclk)
SDRAM clock configuration These bits define the SDRAM clock period for both SDRAM banks and allow disabling the clock before changing the frequency. In this case the SDRAM must be re-initialized. Note: The corresponding bits in the FMC_SDCR2 register are don’t care.
pub const fn rburst(&self) -> bool
pub const fn rburst(&self) -> bool
Burst read This bit enables Burst read mode. The SDRAM controller anticipates the next read commands during the CAS latency and stores data in the Read FIFO. Note: The corresponding bit in the FMC_SDCR2 register is don’t care.
pub fn set_rburst(&mut self, val: bool)
pub fn set_rburst(&mut self, val: bool)
Burst read This bit enables Burst read mode. The SDRAM controller anticipates the next read commands during the CAS latency and stores data in the Read FIFO. Note: The corresponding bit in the FMC_SDCR2 register is don’t care.
Trait Implementations§
impl Copy for Sdcr
impl Eq for Sdcr
impl StructuralPartialEq for Sdcr
Auto Trait Implementations§
impl Freeze for Sdcr
impl RefUnwindSafe for Sdcr
impl Send for Sdcr
impl Sync for Sdcr
impl Unpin for Sdcr
impl UnwindSafe for Sdcr
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
)