embassy-mcxa

Crates

git

Versions

mcx-a256

Flavors

Instance

Trait Instance 

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

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

I2C Instance

Required Associated Constants§

Required Associated Types§

Source

type Interrupt: Interrupt

Interrupt for this I2C 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 LPI2C0

Source§

const CLOCK_INSTANCE: Lpi2cInstance = crate::clocks::periph_helpers::Lpi2cInstance::Lpi2c0

Source§

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

Source§

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

Source§

type Interrupt = LPI2C0

Source§

impl Instance for LPI2C1

Source§

const CLOCK_INSTANCE: Lpi2cInstance = crate::clocks::periph_helpers::Lpi2cInstance::Lpi2c1

Source§

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

Source§

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

Source§

type Interrupt = LPI2C1

Source§

impl Instance for LPI2C2

Source§

const CLOCK_INSTANCE: Lpi2cInstance = crate::clocks::periph_helpers::Lpi2cInstance::Lpi2c2

Source§

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

Source§

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

Source§

type Interrupt = LPI2C2

Source§

impl Instance for LPI2C3

Source§

const CLOCK_INSTANCE: Lpi2cInstance = crate::clocks::periph_helpers::Lpi2cInstance::Lpi2c3

Source§

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

Source§

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

Source§

type Interrupt = LPI2C3