Trait ws2812_flexio::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.

Implementations on Foreign Types§

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§

fn configure(&mut self)

source§

const PIN_COUNT: u8 = 4u8

source§

const FLEXIO_PIN_OFFSETS: &'static [u8] = _

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§

fn configure(&mut self)

source§

const PIN_COUNT: u8 = 3u8

source§

const FLEXIO_PIN_OFFSETS: &'static [u8] = _

source§

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

source§

fn configure(&mut self)

source§

const PIN_COUNT: u8 = 2u8

source§

const FLEXIO_PIN_OFFSETS: &'static [u8] = _

source§

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

source§

fn configure(&mut self)

source§

const PIN_COUNT: u8 = 1u8

source§

const FLEXIO_PIN_OFFSETS: &'static [u8] = _

Implementors§