Struct stm32_metapac::hspi::regs::Dcr1
#[repr(transparent)]pub struct Dcr1(pub u32);
Expand description
HSPI 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_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. … 63: nCS stays high for at least 64 cycles between external device commands. Note: When the extended CSHT timeout feature is not supported, CSHT[5:3] are reserved and the number of cycles is limited to eight (refer to implementation).
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. … 63: nCS stays high for at least 64 cycles between external device commands. Note: When the extended CSHT timeout feature is not supported, CSHT[5:3] are reserved and the number of cycles is limited to eight (refer to implementation).
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 mode, 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 mode, if DMM = 1, DEVSIZE[4:0] indicates the total capacity of the two devices together.
pub const fn mtyp(&self) -> u8
pub const fn mtyp(&self) -> u8
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: u8)
pub fn set_mtyp(&mut self, val: u8)
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
)