embassy-mcxa

Crates

git

Versions

mcx-a256

Flavors

Instance

Trait Instance 

Source
pub trait Instance:
    SealedInstance
    + PeripheralType
    + 'static
    + Send
    + Gate<MrccPeriphConfig = LpspiConfig> {
    type Interrupt: Interrupt;

    const CLOCK_INSTANCE: LpspiInstance;
    const PERF_INT_INCR: fn();
    const PERF_INT_WAKE_INCR: fn();
}
Expand description

SPI Instance

Required Associated Constants§

Required Associated Types§

Source

type Interrupt: Interrupt

Interrupt for this SPI instance.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Instance for LPSPI0

Source§

const CLOCK_INSTANCE: LpspiInstance = crate::clocks::periph_helpers::LpspiInstance::Lpspi0

Source§

const PERF_INT_INCR: fn() = {perf_counters::incr_interrupt_spi0 as fn()}

Source§

const PERF_INT_WAKE_INCR: fn() = {perf_counters::incr_interrupt_spi0_wake as fn()}

Source§

type Interrupt = LPSPI0

Source§

impl Instance for LPSPI1

Source§

const CLOCK_INSTANCE: LpspiInstance = crate::clocks::periph_helpers::LpspiInstance::Lpspi1

Source§

const PERF_INT_INCR: fn() = {perf_counters::incr_interrupt_spi1 as fn()}

Source§

const PERF_INT_WAKE_INCR: fn() = {perf_counters::incr_interrupt_spi1_wake as fn()}

Source§

type Interrupt = LPSPI1