#[repr(transparent)]pub struct Espicap(pub u32);Expand description
eSPI Capabilities of MCU to send to Host
Tuple Fields§
§0: u32Implementations§
Source§impl Espicap
impl Espicap
Sourcepub const fn set_spicap(&mut self, val: Spicap)
pub const fn set_spicap(&mut self, val: Spicap)
SPI mode allowed (host still has to select):
Sourcepub const fn set_maxspd(&mut self, val: Maxspd)
pub const fn set_maxspd(&mut self, val: Maxspd)
Maximum SPI Clock speed to allow (host still chooses):
Sourcepub const fn memmx(&self) -> bool
pub const fn memmx(&self) -> bool
If 1, allow 128 byte payload for memory and OOB access, else limit to 64
Sourcepub const fn set_memmx(&mut self, val: bool)
pub const fn set_memmx(&mut self, val: bool)
If 1, allow 128 byte payload for memory and OOB access, else limit to 64
Sourcepub const fn set_flashmx(&mut self, val: Flashmx)
pub const fn set_flashmx(&mut self, val: Flashmx)
Selects max Flash payload size to allow:
Sourcepub const fn set_saf(&mut self, val: bool)
pub const fn set_saf(&mut self, val: bool)
If 1, then Slave Attached Flash is possible with this firmware
Sourcepub const fn set_safera(&mut self, val: Safera)
pub const fn set_safera(&mut self, val: Safera)
Min Erase sector size allowed if SAF used
Trait Implementations§
impl Copy for Espicap
impl Eq for Espicap
impl StructuralPartialEq for Espicap
Auto Trait Implementations§
impl Freeze for Espicap
impl RefUnwindSafe for Espicap
impl Send for Espicap
impl Sync for Espicap
impl Unpin for Espicap
impl UnwindSafe for Espicap
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