ValidStateMachine

Trait ValidStateMachine 

Source
pub trait ValidStateMachine: Sealed {
    type PIO: PIOExt;

    // Required methods
    fn id() -> usize;
    fn tx_dreq() -> u8;
    fn rx_dreq() -> u8;
}
Expand description

Trait to identify a single state machine, as a generic type parameter to UninitStateMachine, InitStateMachine, etc.

Required Associated Types§

Source

type PIO: PIOExt

The PIO block to which this state machine belongs.

Required Methods§

Source

fn id() -> usize

The index of this state machine (between 0 and 3).

Source

fn tx_dreq() -> u8

The DREQ number for which TX DMA requests are triggered.

Source

fn rx_dreq() -> u8

The DREQ number for which RX DMA requests are triggered.

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.

Implementations on Foreign Types§

Source§

impl<P, SM> ValidStateMachine for (P, SM)
where P: PIOExt, SM: StateMachineIndex,

Implementors§