pub struct PioHD44780<'l, P: Instance, const S: usize> { /* private fields */ }Expand description
Pio backed HD44780 driver
Implementations§
Source§impl<'l, P: Instance, const S: usize> PioHD44780<'l, P, S>
impl<'l, P: Instance, const S: usize> PioHD44780<'l, P, S>
Sourcepub async fn new<D: ChannelInstance>(
common: &mut Common<'l, P>,
sm: StateMachine<'l, P, S>,
irq: Irq<'l, P, S>,
dma: Peri<'l, D>,
dma_irq: impl Binding<D::Interrupt, InterruptHandler<D>> + 'l,
rs: Peri<'l, impl PioPin>,
rw: Peri<'l, impl PioPin>,
e: Peri<'l, impl PioPin>,
db4: Peri<'l, impl PioPin>,
db5: Peri<'l, impl PioPin>,
db6: Peri<'l, impl PioPin>,
db7: Peri<'l, impl PioPin>,
word_prg: &PioHD44780CommandWordProgram<'l, P>,
seq_prg: &PioHD44780CommandSequenceProgram<'l, P>,
) -> PioHD44780<'l, P, S>
pub async fn new<D: ChannelInstance>( common: &mut Common<'l, P>, sm: StateMachine<'l, P, S>, irq: Irq<'l, P, S>, dma: Peri<'l, D>, dma_irq: impl Binding<D::Interrupt, InterruptHandler<D>> + 'l, rs: Peri<'l, impl PioPin>, rw: Peri<'l, impl PioPin>, e: Peri<'l, impl PioPin>, db4: Peri<'l, impl PioPin>, db5: Peri<'l, impl PioPin>, db6: Peri<'l, impl PioPin>, db7: Peri<'l, impl PioPin>, word_prg: &PioHD44780CommandWordProgram<'l, P>, seq_prg: &PioHD44780CommandSequenceProgram<'l, P>, ) -> PioHD44780<'l, P, S>
Configure the given state machine to first init, then write data to, a HD44780 display.
Auto Trait Implementations§
impl<'l, P, const S: usize> !UnwindSafe for PioHD44780<'l, P, S>
impl<'l, P, const S: usize> Freeze for PioHD44780<'l, P, S>where
StateMachine<'l, P, S>: Freeze,
impl<'l, P, const S: usize> RefUnwindSafe for PioHD44780<'l, P, S>where
StateMachine<'l, P, S>: RefUnwindSafe,
impl<'l, P, const S: usize> Send for PioHD44780<'l, P, S>where
StateMachine<'l, P, S>: Send,
impl<'l, P, const S: usize> Sync for PioHD44780<'l, P, S>where
StateMachine<'l, P, S>: Sync,
impl<'l, P, const S: usize> Unpin for PioHD44780<'l, P, S>where
StateMachine<'l, P, S>: Unpin,
impl<'l, P, const S: usize> UnsafeUnpin for PioHD44780<'l, P, S>where
StateMachine<'l, P, S>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more