#[non_exhaustive]pub struct Config {
pub memory_size: MemorySize,
pub address_size: AddressSize,
pub prescaler: u8,
pub fifo_threshold: FIFOThresholdLevel,
pub cs_high_time: ChipSelectHighTime,
pub sample_shifting: SampleShifting,
pub gpio_speed: Speed,
}Expand description
QSPI driver configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.memory_size: MemorySizeFlash memory size representend as 2^[0-32], as reasonable minimum 1KiB(9) was chosen.
If you need other value the whose predefined use Other variant.
address_size: AddressSizeAddress size (8/16/24/32-bit)
prescaler: u8Scalar factor for generating CLK [0-255]
fifo_threshold: FIFOThresholdLevelNumber of bytes to trigger FIFO threshold flag.
cs_high_time: ChipSelectHighTimeMinimum number of cycles that chip select must be high between issued commands
sample_shifting: SampleShiftingShift sampling point of input data (none, or half-cycle)
gpio_speed: SpeedGPIO Speed
Trait Implementations§
Source§impl Format for Configwhere
MemorySize: Format,
AddressSize: Format,
FIFOThresholdLevel: Format,
ChipSelectHighTime: Format,
SampleShifting: Format,
Speed: Format,
impl Format for Configwhere
MemorySize: Format,
AddressSize: Format,
FIFOThresholdLevel: Format,
ChipSelectHighTime: Format,
SampleShifting: Format,
Speed: Format,
impl Copy for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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