embassy-rp

Crates

git

Versions

rp235xb

Flavors

Skip to main content

PioHD44780

Struct PioHD44780 

Source
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>

Source

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.

Source

pub async fn add_line(&mut self, s: &[u8])

Write a line to the 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.