Struct Tcr
#[repr(transparent)]pub struct Tcr(pub u32);
Expand description
timing configuration register
Tuple Fields§
§0: u32
Implementations§
§impl Tcr
impl Tcr
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 six 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 six dummy cycles when using memories with DQS activated.
pub const fn sshift(&self) -> SampleShift
pub const fn sshift(&self) -> SampleShift
Sample shift By default, the OCTOSPI 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 software must ensure that SSHIFT = 0 when the data phase is configured in DTR mode (when DDTR = 1.)
pub fn set_sshift(&mut self, val: SampleShift)
pub fn set_sshift(&mut self, val: SampleShift)
Sample shift By default, the OCTOSPI 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 software must ensure that SSHIFT = 0 when the data phase is configured in DTR mode (when DDTR = 1.)
Trait Implementations§
impl Copy for Tcr
impl Eq for Tcr
impl StructuralPartialEq for Tcr
Auto Trait Implementations§
impl Freeze for Tcr
impl RefUnwindSafe for Tcr
impl Send for Tcr
impl Sync for Tcr
impl Unpin for Tcr
impl UnwindSafe for Tcr
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
)