Trait display_interface_parallel_gpio::OutputBus[][src]

pub trait OutputBus {
    type Word: Copy;
    fn set_value(&mut self, value: Self::Word) -> Result<(), DisplayError>;
}
Expand description

This trait represents the data pins of a parallel bus.

See Generic8BitBus and Generic16BitBus for generic implementations.

Associated Types

type Word: Copy[src]

Expand description

u8 for 8-bit buses, u16 for 16-bit buses, etc.

Loading content...

Required methods

fn set_value(&mut self, value: Self::Word) -> Result<(), DisplayError>[src]

Loading content...

Implementors

impl<P0, P1, P2, P3, P4, P5, P6, P7> OutputBus for Generic8BitBus<P0, P1, P2, P3, P4, P5, P6, P7> where
    P0: OutputPin,
    P1: OutputPin,
    P2: OutputPin,
    P3: OutputPin,
    P4: OutputPin,
    P5: OutputPin,
    P6: OutputPin,
    P7: OutputPin
[src]

type Word = u8

fn set_value(&mut self, value: Self::Word) -> Result<(), DisplayError>[src]

impl<P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15> OutputBus for Generic16BitBus<P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15> where
    P0: OutputPin,
    P1: OutputPin,
    P2: OutputPin,
    P3: OutputPin,
    P4: OutputPin,
    P5: OutputPin,
    P6: OutputPin,
    P7: OutputPin,
    P8: OutputPin,
    P9: OutputPin,
    P10: OutputPin,
    P11: OutputPin,
    P12: OutputPin,
    P13: OutputPin,
    P14: OutputPin,
    P15: OutputPin
[src]

type Word = u16

fn set_value(&mut self, value: Self::Word) -> Result<(), DisplayError>[src]

Loading content...