Struct esp_idf_sys::spi_flash_trans_t
source · #[repr(C)]pub struct spi_flash_trans_t {
pub reserved: u8,
pub mosi_len: u8,
pub miso_len: u8,
pub address_bitlen: u8,
pub address: u32,
pub mosi_data: *const u8,
pub miso_data: *mut u8,
pub flags: u32,
pub command: u16,
pub dummy_bitlen: u8,
pub io_mode: u32,
}
Expand description
Definition of a common transaction. Also holds the return value.
Fields§
§reserved: u8
< Reserved, must be 0.
mosi_len: u8
< Output data length, in bytes
miso_len: u8
< Input data length, in bytes
address_bitlen: u8
< Length of address in bits, set to 0 if command does not need an address
address: u32
< Address to perform operation on
mosi_data: *const u8
< Output data to salve
miso_data: *mut u8
< [out] Input data from slave, little endian
flags: u32
< Flags for this transaction. Set to 0 for now.
command: u16
< Command to send
dummy_bitlen: u8
< Basic dummy bits to use
io_mode: u32
< Flash working mode when SPI_FLASH_IGNORE_BASEIO
is specified.
Trait Implementations§
source§impl Clone for spi_flash_trans_t
impl Clone for spi_flash_trans_t
source§fn clone(&self) -> spi_flash_trans_t
fn clone(&self) -> spi_flash_trans_t
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for spi_flash_trans_t
impl Debug for spi_flash_trans_t
source§impl Default for spi_flash_trans_t
impl Default for spi_flash_trans_t
impl Copy for spi_flash_trans_t
Auto Trait Implementations§
impl Freeze for spi_flash_trans_t
impl RefUnwindSafe for spi_flash_trans_t
impl !Send for spi_flash_trans_t
impl !Sync for spi_flash_trans_t
impl Unpin for spi_flash_trans_t
impl UnwindSafe for spi_flash_trans_t
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)