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() -> DriverConfig
pub fn dma(self, dma: Dma) -> DriverConfig
pub fn intr_flags(self, intr_flags: EnumSet<InterruptType>) -> DriverConfig
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 moreSource§impl Debug for DriverConfig
impl Debug for DriverConfig
Source§impl Default for DriverConfig
impl Default for DriverConfig
Source§fn default() -> DriverConfig
fn default() -> DriverConfig
Returns the “default value” for a type. Read more