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
impl DriverConfig
pub fn new() -> Self
pub fn dma(self, dma: Dma) -> Self
pub fn intr_flags(self, intr_flags: EnumSet<InterruptType>) -> Self
Trait Implementations
Source§impl Clone for DriverConfig
impl Clone for DriverConfig
Source§fn clone(&self) -> DriverConfig
fn clone(&self) -> DriverConfig
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 more