#[repr(transparent)]pub struct Espicfg(pub u32);Expand description
eSPI Configuration
Tuple Fields§
§0: u32Implementations§
Source§impl Espicfg
impl Espicfg
Sourcepub const fn saf(&self) -> bool
pub const fn saf(&self) -> bool
Slave-Attached Flash Supported. Encodings: 0: Host cannot support SAF; 1: Slave Attached Flash 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 Supported. Encodings: 0: Host cannot support SAF; 1: Slave Attached Flash is possible with the firmware.
Sourcepub const fn flashsz(&self) -> u8
pub const fn flashsz(&self) -> u8
Flash Size. Encodings: 0: 64 bytes; 1: 128 bytes; 2: 256 bytes; 3: 512 bytes
Sourcepub const fn set_flashsz(&mut self, val: u8)
pub const fn set_flashsz(&mut self, val: u8)
Flash Size. Encodings: 0: 64 bytes; 1: 128 bytes; 2: 256 bytes; 3: 512 bytes
Sourcepub const fn spimod(&self) -> EspicfgSpimod
pub const fn spimod(&self) -> EspicfgSpimod
SPI Mode. Encodings: 0: SPI; 1: BiSPI; 2: FLEXSPI
Sourcepub const fn set_spimod(&mut self, val: EspicfgSpimod)
pub const fn set_spimod(&mut self, val: EspicfgSpimod)
SPI Mode. Encodings: 0: SPI; 1: BiSPI; 2: FLEXSPI
Sourcepub const fn set_alertod(&mut self, val: bool)
pub const fn set_alertod(&mut self, val: bool)
Alert Is Open Drain as Pin
Sourcepub const fn spispd(&self) -> u8
pub const fn spispd(&self) -> u8
SPI Speed. Encodings: 0: 20 MHz or less; 1: 25 MHz or 24 MHz; 2: 33 MHz or 30 MHz; 3: 50 MHz or 48 MHz; 4: 66 MHz or 60 MHz
Sourcepub const fn set_spispd(&mut self, val: u8)
pub const fn set_spispd(&mut self, val: u8)
SPI Speed. Encodings: 0: 20 MHz or less; 1: 25 MHz or 24 MHz; 2: 33 MHz or 30 MHz; 3: 50 MHz or 48 MHz; 4: 66 MHz or 60 MHz
Sourcepub const fn set_busmok(&mut self, val: bool)
pub const fn set_busmok(&mut self, val: bool)
Bus Master OK
Sourcepub const fn set_memena(&mut self, val: bool)
pub const fn set_memena(&mut self, val: bool)
Channel 0 (Memory) Enabled
Sourcepub const fn flshera(&self) -> u8
pub const fn flshera(&self) -> u8
Flash Erase Size and Whether Enabled. Encodings: 0: Flash not enabled; 1: Erase is 4 kB; 2: Erase is 64 kB; 3: Erase allows 4 kB and 64 kB; 4: Erase is 128 kB; 5: Erase is 256 kB
Sourcepub const fn set_flshera(&mut self, val: u8)
pub const fn set_flshera(&mut self, val: u8)
Flash Erase Size and Whether Enabled. Encodings: 0: Flash not enabled; 1: Erase is 4 kB; 2: Erase is 64 kB; 3: Erase allows 4 kB and 64 kB; 4: Erase is 128 kB; 5: Erase is 256 kB
Sourcepub const fn set_flshok(&mut self, val: bool)
pub const fn set_flshok(&mut self, val: bool)
Channel 3 (Flash) Enabled
Sourcepub const fn memsz(&self) -> u8
pub const fn memsz(&self) -> u8
Peripheral Channel Maximum Payload Size Selected. Encodings: 1: 64-byte payload for memory; 2: 128-byte payload for memory and OOB access; 3: 256-byte payload for memory and OOB access
Sourcepub const fn set_memsz(&mut self, val: u8)
pub const fn set_memsz(&mut self, val: u8)
Peripheral Channel Maximum Payload Size Selected. Encodings: 1: 64-byte payload for memory; 2: 128-byte payload for memory and OOB access; 3: 256-byte payload for memory and OOB access