pub struct PioIrNecTx<'d, PIO: Instance, const SM1: usize, const SM2: usize> { /* private fields */ }Expand description
PIO backed NEC IR receiver This program only requires an high-side switched IR led.
Implementations§
Source§impl<'d, PIO: Instance, const SM1: usize, const SM2: usize> PioIrNecTx<'d, PIO, SM1, SM2>
impl<'d, PIO: Instance, const SM1: usize, const SM2: usize> PioIrNecTx<'d, PIO, SM1, SM2>
Sourcepub fn new(
common: &mut Common<'d, PIO>,
sm_burst: StateMachine<'d, PIO, SM1>,
sm_control: StateMachine<'d, PIO, SM2>,
tx_pin: Peri<'d, impl PioPin>,
program: &PioIrNecTxProgram<'d, PIO>,
) -> Self
pub fn new( common: &mut Common<'d, PIO>, sm_burst: StateMachine<'d, PIO, SM1>, sm_control: StateMachine<'d, PIO, SM2>, tx_pin: Peri<'d, impl PioPin>, program: &PioIrNecTxProgram<'d, PIO>, ) -> Self
Configure a pio state machine to use the loaded rx program.
Sourcepub async fn write_extended(&mut self, frame: NecExtendedFrame)
pub async fn write_extended(&mut self, frame: NecExtendedFrame)
Encode and send an extended NEC frame
Auto Trait Implementations§
impl<'d, PIO, const SM1: usize, const SM2: usize> !UnwindSafe for PioIrNecTx<'d, PIO, SM1, SM2>
impl<'d, PIO, const SM1: usize, const SM2: usize> Freeze for PioIrNecTx<'d, PIO, SM1, SM2>
impl<'d, PIO, const SM1: usize, const SM2: usize> RefUnwindSafe for PioIrNecTx<'d, PIO, SM1, SM2>
impl<'d, PIO, const SM1: usize, const SM2: usize> Send for PioIrNecTx<'d, PIO, SM1, SM2>
impl<'d, PIO, const SM1: usize, const SM2: usize> Sync for PioIrNecTx<'d, PIO, SM1, SM2>
impl<'d, PIO, const SM1: usize, const SM2: usize> Unpin for PioIrNecTx<'d, PIO, SM1, SM2>
impl<'d, PIO, const SM1: usize, const SM2: usize> UnsafeUnpin for PioIrNecTx<'d, PIO, SM1, SM2>
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