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