Trait OutputBus

Source
pub trait OutputBus {
    type Word: Copy;

    // Required method
    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.

Required Associated Types§

Source

type Word: Copy

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

Required Methods§

Source

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

Implementors§

Source§

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,

Source§

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,