Trait Pins

Source
pub trait Pins<const N: u8, const L: usize> {
    const PIN_COUNT: u8;
    const FLEXIO_PIN_OFFSETS: &'static [u8];

    // Required method
    fn configure(&mut self);
}
Expand description

The pins to use for WS2812.

Required Associated Constants§

Source

const PIN_COUNT: u8

The amount of pins this object contains.

Source

const FLEXIO_PIN_OFFSETS: &'static [u8]

The FlexIO pin offsets

Required Methods§

Source

fn configure(&mut self)

Configures the pins.

This is not intended to be called by the user; it will be used inside of the driver.

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<const N: u8, P0: Pin<N>> Pins<N, {count!($($n)+) as usize}> for (P0,)

Source§

const PIN_COUNT: u8 = 1u8

Source§

const FLEXIO_PIN_OFFSETS: &'static [u8]

Source§

fn configure(&mut self)

Source§

impl<const N: u8, P0: Pin<N>, P1: Pin<N>> Pins<N, {count!($($n)+) as usize}> for (P0, P1)

Source§

const PIN_COUNT: u8 = 2u8

Source§

const FLEXIO_PIN_OFFSETS: &'static [u8]

Source§

fn configure(&mut self)

Source§

impl<const N: u8, P0: Pin<N>, P1: Pin<N>, P2: Pin<N>> Pins<N, {count!($($n)+) as usize}> for (P0, P1, P2)

Source§

const PIN_COUNT: u8 = 3u8

Source§

const FLEXIO_PIN_OFFSETS: &'static [u8]

Source§

fn configure(&mut self)

Source§

impl<const N: u8, P0: Pin<N>, P1: Pin<N>, P2: Pin<N>, P3: Pin<N>> Pins<N, {count!($($n)+) as usize}> for (P0, P1, P2, P3)

Source§

const PIN_COUNT: u8 = 4u8

Source§

const FLEXIO_PIN_OFFSETS: &'static [u8]

Source§

fn configure(&mut self)

Implementors§