esp_idf_hal::spi

Type Alias SpiDriverConfig

Source
pub type SpiDriverConfig = DriverConfig;

Aliased Type§

struct SpiDriverConfig {
    pub dma: Dma,
    pub intr_flags: EnumSet<InterruptType>,
}

Fields§

§dma: Dma§intr_flags: EnumSet<InterruptType>

Implementations

Source§

impl DriverConfig

Source

pub fn new() -> Self

Source

pub fn dma(self, dma: Dma) -> Self

Source

pub fn intr_flags(self, intr_flags: EnumSet<InterruptType>) -> Self

Trait Implementations

Source§

impl Clone for DriverConfig

Source§

fn clone(&self) -> DriverConfig

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DriverConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DriverConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more