[][src]Struct esp_idf_bindgen::spi_flash_trans_t

#[repr(C)]pub struct spi_flash_trans_t {
    pub command: 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,
}

Definition of a common transaction. Also holds the return value.

Fields

command: u8

< Command to send, always 8bits

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

Trait Implementations

impl Clone for spi_flash_trans_t[src]

impl Copy for spi_flash_trans_t[src]

impl Debug for spi_flash_trans_t[src]

Auto Trait Implementations

impl !Send for spi_flash_trans_t

impl !Sync for spi_flash_trans_t

impl Unpin for spi_flash_trans_t

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.