#[repr(C)]pub struct mss_qspi_config {
pub xip: u8,
pub xip_addr: u8,
pub spi_mode: mss_qspi_protocol_mode,
pub clk_div: mss_qspi_clk_div,
pub io_format: mss_qspi_io_format,
pub sample: u8,
}Expand description
//** This is the structure definition for the MSS QSPI configuration instance. It defines the configuration data that the application exchanges with the driver.
The following parameters are the configuration options for MSS QSPI.
| Parameter | Description |
|---|---|
| xip | Enable or disable XIP mode |
| xip_addr | Number of address bytes used in XIP mode |
| spi_mode | Select either Motorola mode0 or mode3 |
| clk_div | HCLK Clock divider for generating SPI clock |
| io_format | QSPI transfer format, extended, dual, quad and so on. |
| sample | Select the event on which the QSPI samples the incoming data |
Fields§
§xip: u8§xip_addr: u8§spi_mode: mss_qspi_protocol_mode§clk_div: mss_qspi_clk_div§io_format: mss_qspi_io_format§sample: u8Trait Implementations§
Source§impl Clone for mss_qspi_config
impl Clone for mss_qspi_config
Source§fn clone(&self) -> mss_qspi_config
fn clone(&self) -> mss_qspi_config
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for mss_qspi_config
impl Debug for mss_qspi_config
impl Copy for mss_qspi_config
Auto Trait Implementations§
impl Freeze for mss_qspi_config
impl RefUnwindSafe for mss_qspi_config
impl Send for mss_qspi_config
impl Sync for mss_qspi_config
impl Unpin for mss_qspi_config
impl UnwindSafe for mss_qspi_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