pub struct Config {
pub memory_size: MemorySize,
pub address_size: AddressSize,
pub prescaler: u8,
pub fifo_threshold: FIFOThresholdLevel,
pub cs_high_time: ChipSelectHighTime,
}Expand description
QSPI driver configuration.
Fields§
§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
Trait Implementations§
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