#[repr(transparent)]pub struct Espicap(pub u32);Expand description
eSPI Capabilities. Advertised capabilities and limits; host still chooses configuration. SAFERA defines only encodings 0-3 in a four-bit field; other values are unspecified, not inferred. MAXSPD=5-7 is unspecified.
Tuple Fields§
§0: u32Implementations§
Source§impl Espicap
impl Espicap
Sourcepub const fn spicap(&self) -> EspicapSpicap
pub const fn spicap(&self) -> EspicapSpicap
SPI mode allowed (host still has to select):. Encodings: 0: SPI only; 1: BiSPI and SPI; 2: FLEXSPI and SPI; 3: Any
Sourcepub const fn set_spicap(&mut self, val: EspicapSpicap)
pub const fn set_spicap(&mut self, val: EspicapSpicap)
SPI mode allowed (host still has to select):. Encodings: 0: SPI only; 1: BiSPI and SPI; 2: FLEXSPI and SPI; 3: Any
Sourcepub const fn maxspd(&self) -> u8
pub const fn maxspd(&self) -> u8
Maximum SPI Clock Speed. Encodings: 0: <=20 MHz; 1: <=25 MHz (24 Mhz); 2: <=33 MHz (30 MHz); 3: <=50 MHz (48 MHz); 4: <=66 MHz (60 MHz)
Sourcepub const fn set_maxspd(&mut self, val: u8)
pub const fn set_maxspd(&mut self, val: u8)
Maximum SPI Clock Speed. Encodings: 0: <=20 MHz; 1: <=25 MHz (24 Mhz); 2: <=33 MHz (30 MHz); 3: <=50 MHz (48 MHz); 4: <=66 MHz (60 MHz)
Sourcepub const fn set_oobok(&mut self, val: bool)
pub const fn set_oobok(&mut self, val: bool)
OOB Allow. Encodings: 0: Do not allow OOB; 1: Allow OOB
Sourcepub const fn flashmx(&self) -> u8
pub const fn flashmx(&self) -> u8
Maximum Flash Payload Size. Encodings: 0: 64 bytes; 1: 128 bytes; 2: 256 bytes; 3: 512 bytes
Sourcepub const fn set_flashmx(&mut self, val: u8)
pub const fn set_flashmx(&mut self, val: u8)
Maximum Flash Payload Size. Encodings: 0: 64 bytes; 1: 128 bytes; 2: 256 bytes; 3: 512 bytes
Sourcepub const fn saf(&self) -> bool
pub const fn saf(&self) -> bool
Slave-Attached Flash. Encodings: 0: Host cannot support SAF; 1: SAF is possible with the firmware.
Sourcepub const fn set_saf(&mut self, val: bool)
pub const fn set_saf(&mut self, val: bool)
Slave-Attached Flash. Encodings: 0: Host cannot support SAF; 1: SAF is possible with the firmware.
Sourcepub const fn safera(&self) -> u8
pub const fn safera(&self) -> u8
SAF Erase Sector. Encodings: 0: 2 kB; 1: 4 kB; 2: 8 kB; 3: 16 kB
Sourcepub const fn set_safera(&mut self, val: u8)
pub const fn set_safera(&mut self, val: u8)
SAF Erase Sector. Encodings: 0: 2 kB; 1: 4 kB; 2: 8 kB; 3: 16 kB
Sourcepub const fn maf(&self) -> bool
pub const fn maf(&self) -> bool
Master-Attached Flash. Encodings: 0: Host cannot support MAF; 1: If 1, then Master Attached Flash is possible with this firmware
Sourcepub const fn set_maf(&mut self, val: bool)
pub const fn set_maf(&mut self, val: bool)
Master-Attached Flash. Encodings: 0: Host cannot support MAF; 1: If 1, then Master Attached Flash is possible with this firmware
Sourcepub const fn trgt_req_size_supp(&self) -> u8
pub const fn trgt_req_size_supp(&self) -> u8
Target Maximum Read Request Size Supported. Encodings: 1: 64 bytes max read request size; 2: 128 bytes max read request size; 3: 256 bytes max read request size; 4: 512 bytes max read request size; 5: 1024 bytes max read request size; 6: 2048 bytes max read request size; 7: 4096 bytes max read request size
Sourcepub const fn set_trgt_req_size_supp(&mut self, val: u8)
pub const fn set_trgt_req_size_supp(&mut self, val: u8)
Target Maximum Read Request Size Supported. Encodings: 1: 64 bytes max read request size; 2: 128 bytes max read request size; 3: 256 bytes max read request size; 4: 512 bytes max read request size; 5: 1024 bytes max read request size; 6: 2048 bytes max read request size; 7: 4096 bytes max read request size
Sourcepub const fn memmx(&self) -> u8
pub const fn memmx(&self) -> u8
Peripheral Channel Maximum Payload Size Supported. Encodings: 1: 64 bytes address aligned max payload size; 2: 128 bytes address aligned max payload size; 3: 256 bytes address aligned max payload size
Sourcepub const fn set_memmx(&mut self, val: u8)
pub const fn set_memmx(&mut self, val: u8)
Peripheral Channel Maximum Payload Size Supported. Encodings: 1: 64 bytes address aligned max payload size; 2: 128 bytes address aligned max payload size; 3: 256 bytes address aligned max payload size