#[repr(transparent)]pub struct Cfgr1(pub u32);Expand description
Configuration 1.
Tuple Fields§
§0: u32Implementations§
Source§impl Cfgr1
impl Cfgr1
Sourcepub const fn master(&self) -> bool
pub const fn master(&self) -> bool
Controller Mode. Raw bit values: false (0) = SlaveMode: Peripheral mode.; true (1) = MasterMode: Controller mode.
Sourcepub const fn set_master(&mut self, val: bool)
pub const fn set_master(&mut self, val: bool)
Controller Mode. Raw bit values: false (0) = SlaveMode: Peripheral mode.; true (1) = MasterMode: Controller mode.
Sourcepub const fn sample(&self) -> bool
pub const fn sample(&self) -> bool
Sample Point. Raw bit values: false (0) = OnSckEdge: SCK edge.; true (1) = OnDelayedSckEdge: Delayed SCK edge.
Sourcepub const fn set_sample(&mut self, val: bool)
pub const fn set_sample(&mut self, val: bool)
Sample Point. Raw bit values: false (0) = OnSckEdge: SCK edge.; true (1) = OnDelayedSckEdge: Delayed SCK edge.
Sourcepub const fn set_autopcs(&mut self, val: bool)
pub const fn set_autopcs(&mut self, val: bool)
Automatic PCS.
Sourcepub const fn set_nostall(&mut self, val: bool)
pub const fn set_nostall(&mut self, val: bool)
No Stall.
Sourcepub const fn partial(&self) -> bool
pub const fn partial(&self) -> bool
Partial Enable. Raw bit values: false (0) = Discarded: Discard.; true (1) = Stored: Store.
Sourcepub const fn set_partial(&mut self, val: bool)
pub const fn set_partial(&mut self, val: bool)
Partial Enable. Raw bit values: false (0) = Discarded: Discard.; true (1) = Stored: Store.
Sourcepub const fn set_pcspol(&mut self, val: Pcspol)
pub const fn set_pcspol(&mut self, val: Pcspol)
Peripheral Chip Select Polarity.
Sourcepub const fn set_matcfg(&mut self, val: Matcfg)
pub const fn set_matcfg(&mut self, val: Matcfg)
Match Configuration.
Sourcepub const fn set_pincfg(&mut self, val: Pincfg)
pub const fn set_pincfg(&mut self, val: Pincfg)
Pin Configuration.
Sourcepub const fn outcfg(&self) -> bool
pub const fn outcfg(&self) -> bool
Output Configuration. Raw bit values: false (0) = RetainLastvalue: Retain last value.; true (1) = Tristated: 3-stated.
Sourcepub const fn set_outcfg(&mut self, val: bool)
pub const fn set_outcfg(&mut self, val: bool)
Output Configuration. Raw bit values: false (0) = RetainLastvalue: Retain last value.; true (1) = Tristated: 3-stated.
Sourcepub const fn pcscfg(&self) -> bool
pub const fn pcscfg(&self) -> bool
Peripheral Chip Select Configuration. Raw bit values: false (0) = ChipSelect: PCS[3:2] configured for chip select function.; true (1) = Halfduplex4bit: PCS[3:2] configured for half-duplex 4-bit transfers (PCS[3:2] = DATA[3:2]).
Sourcepub const fn set_pcscfg(&mut self, val: bool)
pub const fn set_pcscfg(&mut self, val: bool)
Peripheral Chip Select Configuration. Raw bit values: false (0) = ChipSelect: PCS[3:2] configured for chip select function.; true (1) = Halfduplex4bit: PCS[3:2] configured for half-duplex 4-bit transfers (PCS[3:2] = DATA[3:2]).