Struct Dcr2
#[repr(transparent)]pub struct Dcr2(pub u32);
Expand description
device configuration register 2
Tuple Fields§
§0: u32
Implementations§
§impl Dcr2
impl Dcr2
pub const fn prescaler(&self) -> u8
pub const fn prescaler(&self) -> u8
Clock prescaler. This field defines the scaler factor for generating the CLK based on the kernel clock (value + 1). 2: FCLK = FKERNEL/3 … 255: FCLK = FKERNEL/256 For odd clock division factors, the CLK duty cycle is not 50 %. The clock signal remains low one cycle longer than it stays high.
pub fn set_prescaler(&mut self, val: u8)
pub fn set_prescaler(&mut self, val: u8)
Clock prescaler. This field defines the scaler factor for generating the CLK based on the kernel clock (value + 1). 2: FCLK = FKERNEL/3 … 255: FCLK = FKERNEL/256 For odd clock division factors, the CLK duty cycle is not 50 %. The clock signal remains low one cycle longer than it stays high.
pub const fn wrapsize(&self) -> u8
pub const fn wrapsize(&self) -> u8
Wrap size. This field indicates the wrap size to which the memory is configured. For memories which have a separate command for wrapped instructions, this field indicates the wrap-size associated with the command held in the OCTOSPI1_WPIR register. 110-111: Reserved
pub fn set_wrapsize(&mut self, val: u8)
pub fn set_wrapsize(&mut self, val: u8)
Wrap size. This field indicates the wrap size to which the memory is configured. For memories which have a separate command for wrapped instructions, this field indicates the wrap-size associated with the command held in the OCTOSPI1_WPIR register. 110-111: Reserved
Trait Implementations§
impl Copy for Dcr2
impl Eq for Dcr2
impl StructuralPartialEq for Dcr2
Auto Trait Implementations§
impl Freeze for Dcr2
impl RefUnwindSafe for Dcr2
impl Send for Dcr2
impl Sync for Dcr2
impl Unpin for Dcr2
impl UnwindSafe for Dcr2
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
)