Struct Dcr1
#[repr(transparent)]pub struct Dcr1(pub u32);Expand description
device configuration register 1
Tuple Fields§
§0: u32Implementations§
§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). Read-only 0 (mode 0 only) on STM32C5 and STM32WBA2.
pub const fn set_ckmode(&mut self, val: bool)
pub const 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). Read-only 0 (mode 0 only) on STM32C5 and STM32WBA2.
pub const fn set_frck(&mut self, val: bool)
pub const fn set_frck(&mut self, val: bool)
Free running clock. This bit configures the free running clock.
pub const fn set_dlybyp(&mut self, val: bool)
pub const 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. … Only bits 10:8 (CSHT[2:0], up to 8 cycles) are implemented on STM32L5.
pub const fn set_csht(&mut self, val: u8)
pub const 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. … Only bits 10:8 (CSHT[2:0], up to 8 cycles) are implemented on STM32L5.
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 const fn set_devsize(&mut self, val: u8)
pub const 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 extendmem(&self) -> bool
pub const fn extendmem(&self) -> bool
Extended memory support. When set, the OCTOSPI automatically controls which of NCS1 or NCS2 is active depending on the address of the transfer; otherwise NCS1/NCS2 follow CR.CSSEL. Only on STM32H543/553, STM32H5E/H5F, STM32C5 and STM32G5.
pub const fn set_extendmem(&mut self, val: bool)
pub const fn set_extendmem(&mut self, val: bool)
Extended memory support. When set, the OCTOSPI automatically controls which of NCS1 or NCS2 is active depending on the address of the transfer; otherwise NCS1/NCS2 follow CR.CSSEL. Only on STM32H543/553, STM32H5E/H5F, STM32C5 and STM32G5.
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. HyperBus modes (100, 101) are not available on STM32WBA2.
pub const fn set_mtyp(&mut self, val: MemType)
pub const 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. HyperBus modes (100, 101) are not available on STM32WBA2.