pub struct PioIrNecRx<'d, PIO: Instance, const SM: usize> { /* private fields */ }Expand description
PIO backed NEC IR receiver This program requires an IR receiver such as the VS1838b that low pass filters IR bursts into long pulses.
Implementations§
Source§impl<'d, PIO: Instance, const SM: usize> PioIrNecRx<'d, PIO, SM>
impl<'d, PIO: Instance, const SM: usize> PioIrNecRx<'d, PIO, SM>
Sourcepub fn new(
common: &mut Common<'d, PIO>,
sm_rx: StateMachine<'d, PIO, SM>,
rx_pin: Peri<'d, impl PioPin>,
program: &PioIrNecRxProgram<'d, PIO>,
) -> Self
pub fn new( common: &mut Common<'d, PIO>, sm_rx: StateMachine<'d, PIO, SM>, rx_pin: Peri<'d, impl PioPin>, program: &PioIrNecRxProgram<'d, PIO>, ) -> Self
Construct a PIO backed NEC IR receiver
Sourcepub async fn read(&mut self) -> Result<NecFrame, NecFrameDecodeError>
pub async fn read(&mut self) -> Result<NecFrame, NecFrameDecodeError>
Wait for a NEC frame
Sourcepub async fn read_extended(
&mut self,
) -> Result<NecExtendedFrame, NecFrameDecodeError>
pub async fn read_extended( &mut self, ) -> Result<NecExtendedFrame, NecFrameDecodeError>
Wait for a NEC frame
Auto Trait Implementations§
impl<'d, PIO, const SM: usize> !UnwindSafe for PioIrNecRx<'d, PIO, SM>
impl<'d, PIO, const SM: usize> Freeze for PioIrNecRx<'d, PIO, SM>where
StateMachine<'d, PIO, SM>: Freeze,
impl<'d, PIO, const SM: usize> RefUnwindSafe for PioIrNecRx<'d, PIO, SM>where
StateMachine<'d, PIO, SM>: RefUnwindSafe,
impl<'d, PIO, const SM: usize> Send for PioIrNecRx<'d, PIO, SM>where
StateMachine<'d, PIO, SM>: Send,
impl<'d, PIO, const SM: usize> Sync for PioIrNecRx<'d, PIO, SM>where
StateMachine<'d, PIO, SM>: Sync,
impl<'d, PIO, const SM: usize> Unpin for PioIrNecRx<'d, PIO, SM>where
StateMachine<'d, PIO, SM>: Unpin,
impl<'d, PIO, const SM: usize> UnsafeUnpin for PioIrNecRx<'d, PIO, SM>where
StateMachine<'d, PIO, SM>: 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