Struct stm32_metapac::hspi::regs::Wptcr
#[repr(transparent)]pub struct Wptcr(pub u32);
Expand description
HSPI wrap timing configuration register.
Tuple Fields§
§0: u32
Implementations§
§impl Wptcr
impl Wptcr
pub const fn dcyc(&self) -> u8
pub const fn dcyc(&self) -> u8
Number of dummy cycles This field defines the duration of the dummy phase. In both SDR and DTR modes, it specifies a number of CLK cycles (0-31). It is recommended to have at least 5 dummy cycles when using memories with DQS activated.
pub fn set_dcyc(&mut self, val: u8)
pub fn set_dcyc(&mut self, val: u8)
Number of dummy cycles This field defines the duration of the dummy phase. In both SDR and DTR modes, it specifies a number of CLK cycles (0-31). It is recommended to have at least 5 dummy cycles when using memories with DQS activated.
pub const fn dhqc(&self) -> bool
pub const fn dhqc(&self) -> bool
Delay hold quarter cycle Add a quarter cycle delay on the outputs in DTR communication to match hold requirement.
pub fn set_dhqc(&mut self, val: bool)
pub fn set_dhqc(&mut self, val: bool)
Delay hold quarter cycle Add a quarter cycle delay on the outputs in DTR communication to match hold requirement.
pub const fn sshift(&self) -> bool
pub const fn sshift(&self) -> bool
Sample shift By default, the HSPI samples data 1/2 of a CLK cycle after the data is driven by the external device. This bit allows the data to be sampled later in order to consider the external signal delays. The firmware must assure that SSHIFT=0 when the data phase is configured in DTR mode (when DDTR = 1).
pub fn set_sshift(&mut self, val: bool)
pub fn set_sshift(&mut self, val: bool)
Sample shift By default, the HSPI samples data 1/2 of a CLK cycle after the data is driven by the external device. This bit allows the data to be sampled later in order to consider the external signal delays. The firmware must assure that SSHIFT=0 when the data phase is configured in DTR mode (when DDTR = 1).
Trait Implementations§
impl Copy for Wptcr
impl Eq for Wptcr
impl StructuralPartialEq for Wptcr
Auto Trait Implementations§
impl Freeze for Wptcr
impl RefUnwindSafe for Wptcr
impl Send for Wptcr
impl Sync for Wptcr
impl Unpin for Wptcr
impl UnwindSafe for Wptcr
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
)