pub struct PioI2sIn<'d, P: Instance, const S: usize> { /* private fields */ }Expand description
Pio backed I2S input driver
Implementations§
Source§impl<'d, P: Instance, const S: usize> PioI2sIn<'d, P, S>
impl<'d, P: Instance, const S: usize> PioI2sIn<'d, P, S>
Sourcepub fn new<D: ChannelInstance>(
common: &mut Common<'d, P>,
sm: StateMachine<'d, P, S>,
data_pin: Peri<'d, impl PioPin>,
bit_clock_pin: Peri<'d, impl PioPin>,
lr_clock_pin: Peri<'d, impl PioPin>,
dma: Peri<'d, D>,
irq: impl Binding<D::Interrupt, InterruptHandler<D>> + 'd,
data_pulldown: bool,
sample_rate: u32,
bit_depth: u32,
channels: u32,
program: &PioI2sInProgram<'d, P>,
) -> Self
pub fn new<D: ChannelInstance>( common: &mut Common<'d, P>, sm: StateMachine<'d, P, S>, data_pin: Peri<'d, impl PioPin>, bit_clock_pin: Peri<'d, impl PioPin>, lr_clock_pin: Peri<'d, impl PioPin>, dma: Peri<'d, D>, irq: impl Binding<D::Interrupt, InterruptHandler<D>> + 'd, data_pulldown: bool, sample_rate: u32, bit_depth: u32, channels: u32, program: &PioI2sInProgram<'d, P>, ) -> Self
Configure a state machine to act as both the controller (provider of SCK and WS) and receiver (of SD) for an I2S signal
Sourcepub fn start_batched(&mut self, b: &mut PioBatch<'d, P>)
pub fn start_batched(&mut self, b: &mut PioBatch<'d, P>)
Start at the the same as other drivers
Sourcepub fn stop_batched(&mut self, b: &mut PioBatch<'d, P>)
pub fn stop_batched(&mut self, b: &mut PioBatch<'d, P>)
Stop at the the same as other drivers
Auto Trait Implementations§
impl<'d, P, const S: usize> !UnwindSafe for PioI2sIn<'d, P, S>
impl<'d, P, const S: usize> Freeze for PioI2sIn<'d, P, S>where
StateMachine<'d, P, S>: Freeze,
impl<'d, P, const S: usize> RefUnwindSafe for PioI2sIn<'d, P, S>where
StateMachine<'d, P, S>: RefUnwindSafe,
impl<'d, P, const S: usize> Send for PioI2sIn<'d, P, S>where
StateMachine<'d, P, S>: Send,
impl<'d, P, const S: usize> Sync for PioI2sIn<'d, P, S>where
StateMachine<'d, P, S>: Sync,
impl<'d, P, const S: usize> Unpin for PioI2sIn<'d, P, S>where
StateMachine<'d, P, S>: Unpin,
impl<'d, P, const S: usize> UnsafeUnpin for PioI2sIn<'d, P, S>where
StateMachine<'d, 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