#[repr(transparent)]pub struct Ifconfig1(pub u32);
Expand description
Interface configuration.
Tuple Fields§
§0: u32
Implementations§
Source§impl Ifconfig1
impl Ifconfig1
Sourcepub const fn sckdelay(&self) -> u8
pub const fn sckdelay(&self) -> u8
Minimum amount of time that the CSN pin must stay high before it can go low again. Value is specified in number of 32 MHz periods (31.25 ns).
Sourcepub const fn set_sckdelay(&mut self, val: u8)
pub const fn set_sckdelay(&mut self, val: u8)
Minimum amount of time that the CSN pin must stay high before it can go low again. Value is specified in number of 32 MHz periods (31.25 ns).
Sourcepub const fn dpmen(&self) -> bool
pub const fn dpmen(&self) -> bool
Enter/exit deep power-down mode (DPM) for external flash memory.
Sourcepub const fn set_dpmen(&mut self, val: bool)
pub const fn set_dpmen(&mut self, val: bool)
Enter/exit deep power-down mode (DPM) for external flash memory.
Sourcepub const fn set_spimode(&mut self, val: Spimode)
pub const fn set_spimode(&mut self, val: Spimode)
Select SPI mode.
Sourcepub const fn sckfreq(&self) -> u8
pub const fn sckfreq(&self) -> u8
SCK frequency is derived from PCLK192M with SCK frequency = PCLK192M / (2*(SCKFREQ + 1)).
Sourcepub const fn set_sckfreq(&mut self, val: u8)
pub const fn set_sckfreq(&mut self, val: u8)
SCK frequency is derived from PCLK192M with SCK frequency = PCLK192M / (2*(SCKFREQ + 1)).
Trait Implementations§
impl Copy for Ifconfig1
impl Eq for Ifconfig1
impl StructuralPartialEq for Ifconfig1
Auto Trait Implementations§
impl Freeze for Ifconfig1
impl RefUnwindSafe for Ifconfig1
impl Send for Ifconfig1
impl Sync for Ifconfig1
impl Unpin for Ifconfig1
impl UnwindSafe for Ifconfig1
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)