Struct stm32_metapac::octospi::regs::Dcr1
#[repr(transparent)]pub struct Dcr1(pub u32);
Expand description
device configuration register 1
Tuple Fields§
§0: u32
Implementations§
§impl Dcr1
impl Dcr1
pub const fn ckmode(&self) -> bool
pub const fn ckmode(&self) -> bool
Mode 0/Mode 3 This bit indicates the level taken by the CLK between commands (when NCS = 1).
pub fn set_ckmode(&mut self, val: bool)
pub fn set_ckmode(&mut self, val: bool)
Mode 0/Mode 3 This bit indicates the level taken by the CLK between commands (when NCS = 1).
pub fn set_frck(&mut self, val: bool)
pub fn set_frck(&mut self, val: bool)
Free running clock. This bit configures the free running clock.
pub fn set_dlybyp(&mut self, val: bool)
pub fn set_dlybyp(&mut self, val: bool)
Delay block bypass
pub const fn csht(&self) -> u8
pub const fn csht(&self) -> u8
Chip-select high time CSHT + 1 defines the minimum number of CLK cycles where the chip-select (NCS) must remain high between commands issued to the external device. …
pub fn set_csht(&mut self, val: u8)
pub fn set_csht(&mut self, val: u8)
Chip-select high time CSHT + 1 defines the minimum number of CLK cycles where the chip-select (NCS) must remain high between commands issued to the external device. …
pub const fn devsize(&self) -> u8
pub const fn devsize(&self) -> u8
Device size. This field defines the size of the external device using the following formula: Number of bytes in device = 2[DEVSIZE+1]. DEVSIZE+1 is effectively the number of address bits required to address the external device. The device capacity can be up to 4 Gbytes (addressed using 32-bits) in Indirect mode, but the addressable space in Memory-mapped mode is limited to 256 Mbytes. In Regular-command protocol, if DMM = 1, DEVSIZE[4:0] indicates the total capacity of the two devices together.
pub fn set_devsize(&mut self, val: u8)
pub fn set_devsize(&mut self, val: u8)
Device size. This field defines the size of the external device using the following formula: Number of bytes in device = 2[DEVSIZE+1]. DEVSIZE+1 is effectively the number of address bits required to address the external device. The device capacity can be up to 4 Gbytes (addressed using 32-bits) in Indirect mode, but the addressable space in Memory-mapped mode is limited to 256 Mbytes. In Regular-command protocol, if DMM = 1, DEVSIZE[4:0] indicates the total capacity of the two devices together.
pub const fn mtyp(&self) -> MemType
pub const fn mtyp(&self) -> MemType
Memory type. This bit indicates the type of memory to be supported. Note: In. this mode, DQS signal polarity is inverted with respect to the memory clock signal. This is the default value and care must be taken to change MTYP[2:0] for memories different from Micron. Others: Reserved
pub fn set_mtyp(&mut self, val: MemType)
pub fn set_mtyp(&mut self, val: MemType)
Memory type. This bit indicates the type of memory to be supported. Note: In. this mode, DQS signal polarity is inverted with respect to the memory clock signal. This is the default value and care must be taken to change MTYP[2:0] for memories different from Micron. Others: Reserved
Trait Implementations§
impl Copy for Dcr1
impl Eq for Dcr1
impl StructuralPartialEq for Dcr1
Auto Trait Implementations§
impl Freeze for Dcr1
impl RefUnwindSafe for Dcr1
impl Send for Dcr1
impl Sync for Dcr1
impl Unpin for Dcr1
impl UnwindSafe for Dcr1
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
)