[][src]Struct mynewt::hw::hal::hal_spi_settings

#[repr(C)]pub struct hal_spi_settings {
    pub data_mode: u8,
    pub data_order: u8,
    pub word_size: u8,
    pub baudrate: u32,
}

since one spi device can control multiple devices, some configuration can be changed on the fly from the hal

Fields

data_mode: u8

Data mode of SPI driver, defined by HAL_SPI_MODEn

data_order: u8

Data order, either HAL_SPI_MSB_FIRST or HAL_SPI_LSB_FIRST

word_size: u8

The word size of the SPI transaction, either 8-bit or 9-bit

baudrate: u32

Baudrate in kHz

Trait Implementations

impl Default for hal_spi_settings[src]

Auto Trait Implementations

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> Same<T> for T

type Output = T

Should always be Self

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.