Struct Cr
#[repr(transparent)]pub struct Cr(pub u32);Expand description
control register
Tuple Fields§
§0: u32Implementations§
§impl Cr
impl Cr
pub const fn muxen(&self) -> bool
pub const fn muxen(&self) -> bool
Multiplexed mode enable. This bit enables the multiplexing of the two OCTOSPIs over the same bus.
pub const fn set_muxen(&mut self, val: bool)
pub const fn set_muxen(&mut self, val: bool)
Multiplexed mode enable. This bit enables the multiplexing of the two OCTOSPIs over the same bus.
pub const fn mode(&self) -> bool
pub const fn mode(&self) -> bool
Multiplexing mode. 0: if MUXEN = 0 direct mode, if MUXEN = 1 arbitration mode to output Port 1. 1: if MUXEN = 0 swapped mode, if MUXEN = 1 arbitration mode to output Port 2.
pub const fn set_mode(&mut self, val: bool)
pub const fn set_mode(&mut self, val: bool)
Multiplexing mode. 0: if MUXEN = 0 direct mode, if MUXEN = 1 arbitration mode to output Port 1. 1: if MUXEN = 0 swapped mode, if MUXEN = 1 arbitration mode to output Port 2.
pub const fn cssel_ovr_en(&self) -> bool
pub const fn cssel_ovr_en(&self) -> bool
Chip select selector override enable. When set, CSSEL_OVR_O overwrites the CSSEL signal values coming from OCTOSPI1 and OCTOSPI2.
pub const fn set_cssel_ovr_en(&mut self, val: bool)
pub const fn set_cssel_ovr_en(&mut self, val: bool)
Chip select selector override enable. When set, CSSEL_OVR_O overwrites the CSSEL signal values coming from OCTOSPI1 and OCTOSPI2.
pub const fn cssel_ovr_o(&self, n: usize) -> Cssel
pub const fn cssel_ovr_o(&self, n: usize) -> Cssel
Chip select selector override setting for OCTOSPIn (CSSEL_OVR_O[0] is OCTOSPI1, CSSEL_OVR_O[1] is OCTOSPI2).
pub const fn set_cssel_ovr_o(&mut self, n: usize, val: Cssel)
pub const fn set_cssel_ovr_o(&mut self, n: usize, val: Cssel)
Chip select selector override setting for OCTOSPIn (CSSEL_OVR_O[0] is OCTOSPI1, CSSEL_OVR_O[1] is OCTOSPI2).
pub const fn req2ack_time(&self) -> u8
pub const fn req2ack_time(&self) -> u8
REQ to ACK time. In multiplexed mode (MUXEN = 1), this field defines the time between two transactions. The value is the number of OCTOSPI clock cycles - 1.
pub const fn set_req2ack_time(&mut self, val: u8)
pub const fn set_req2ack_time(&mut self, val: u8)
REQ to ACK time. In multiplexed mode (MUXEN = 1), this field defines the time between two transactions. The value is the number of OCTOSPI clock cycles - 1.