Struct stm32_metapac::hspi::regs::Dcr4
#[repr(transparent)]pub struct Dcr4(pub u32);
Expand description
HSPI device configuration register 4.
Tuple Fields§
§0: u32
Implementations§
§impl Dcr4
impl Dcr4
pub const fn refresh(&self) -> u32
pub const fn refresh(&self) -> u32
Refresh rate This field enables the refresh rate feature. The nCS is released every REFRESH+1 clock cycles for writes, and REFRESH+4 clock cycles for reads. Note: These two values can be extended with few clock cycles when refresh occurs during a byte transmission in single, dual or quad mode, because the byte transmission must be completed. others: Maximum communication length is set to REFRESH+1 clock cycles.
pub fn set_refresh(&mut self, val: u32)
pub fn set_refresh(&mut self, val: u32)
Refresh rate This field enables the refresh rate feature. The nCS is released every REFRESH+1 clock cycles for writes, and REFRESH+4 clock cycles for reads. Note: These two values can be extended with few clock cycles when refresh occurs during a byte transmission in single, dual or quad mode, because the byte transmission must be completed. others: Maximum communication length is set to REFRESH+1 clock cycles.
Trait Implementations§
impl Copy for Dcr4
impl Eq for Dcr4
impl StructuralPartialEq for Dcr4
Auto Trait Implementations§
impl Freeze for Dcr4
impl RefUnwindSafe for Dcr4
impl Send for Dcr4
impl Sync for Dcr4
impl Unpin for Dcr4
impl UnwindSafe for Dcr4
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
)