#[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: MemorySize
Flash 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: AddressSize
Address size (8/16/24/32-bit)
prescaler: u8
Scalar factor for generating CLK [0-255]
fifo_threshold: FIFOThresholdLevel
Number of bytes to trigger FIFO threshold flag.
cs_high_time: ChipSelectHighTime
Minimum number of cycles that chip select must be high between issued commands
sample_shifting: SampleShifting
Shift sampling point of input data (none, or half-cycle)
gpio_speed: Speed
GPIO 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