#[repr(transparent)]pub struct Mcr2(pub u32);Expand description
Module Control Register 2
Tuple Fields§
§0: u32Implementations§
Source§impl Mcr2
impl Mcr2
Sourcepub const fn clrahbbufopt(&self) -> Clrahbbufopt
pub const fn clrahbbufopt(&self) -> Clrahbbufopt
This bit determines whether AHB RX Buffer and AHB TX Buffer will be cleaned automatically when FlexSPI returns STOP mode ACK. Software should set this bit if AHB RX Buffer or AHB TX Buffer will be powered off in STOP mode. Otherwise AHB read access after exiting STOP mode may hit AHB RX Buffer or AHB TX Buffer but their data entries are invalid.
Sourcepub const fn set_clrahbbufopt(&mut self, val: Clrahbbufopt)
pub const fn set_clrahbbufopt(&mut self, val: Clrahbbufopt)
This bit determines whether AHB RX Buffer and AHB TX Buffer will be cleaned automatically when FlexSPI returns STOP mode ACK. Software should set this bit if AHB RX Buffer or AHB TX Buffer will be powered off in STOP mode. Otherwise AHB read access after exiting STOP mode may hit AHB RX Buffer or AHB TX Buffer but their data entries are invalid.
Sourcepub const fn clrlearnphase(&self) -> bool
pub const fn clrlearnphase(&self) -> bool
The sampling clock phase selection will be reset to phase 0 when this bit is written with 0x1. This bit will be auto-cleared immediately.
Sourcepub const fn set_clrlearnphase(&mut self, val: bool)
pub const fn set_clrlearnphase(&mut self, val: bool)
The sampling clock phase selection will be reset to phase 0 when this bit is written with 0x1. This bit will be auto-cleared immediately.
Sourcepub const fn samedeviceen(&self) -> Samedeviceen
pub const fn samedeviceen(&self) -> Samedeviceen
All external devices are same devices (both in types and size) for A1/A2/B1/B2.
Sourcepub const fn set_samedeviceen(&mut self, val: Samedeviceen)
pub const fn set_samedeviceen(&mut self, val: Samedeviceen)
All external devices are same devices (both in types and size) for A1/A2/B1/B2.
Sourcepub const fn sckbdiffopt(&self) -> Sckbdiffopt
pub const fn sckbdiffopt(&self) -> Sckbdiffopt
B_SCLK pad can be used as A_SCLK differential clock output (inverted clock to A_SCLK). In this case, port B flash access is not available. After changing the value of this field, MCR0[SWRESET] should be set.
Sourcepub const fn set_sckbdiffopt(&mut self, val: Sckbdiffopt)
pub const fn set_sckbdiffopt(&mut self, val: Sckbdiffopt)
B_SCLK pad can be used as A_SCLK differential clock output (inverted clock to A_SCLK). In this case, port B flash access is not available. After changing the value of this field, MCR0[SWRESET] should be set.
Sourcepub const fn resumewait(&self) -> u8
pub const fn resumewait(&self) -> u8
Wait cycle (in AHB clock cycle) for idle state before suspended command sequence resumed.
Sourcepub const fn set_resumewait(&mut self, val: u8)
pub const fn set_resumewait(&mut self, val: u8)
Wait cycle (in AHB clock cycle) for idle state before suspended command sequence resumed.