pub struct AdcMicrophone<'a, P: Pin> { /* private fields */ }
Implementations§
Source§impl<'a, P: Pin> AdcMicrophone<'a, P>
impl<'a, P: Pin> AdcMicrophone<'a, P>
pub fn new( adc: &'a dyn AdcChannel<'a>, enable_pin: Option<&'a P>, spl_buffer: &'a mut [u16], ) -> AdcMicrophone<'a, P>
Trait Implementations§
Source§impl<P: Pin> Client for AdcMicrophone<'_, P>
impl<P: Pin> Client for AdcMicrophone<'_, P>
Source§fn sample_ready(&self, sample: u16)
fn sample_ready(&self, sample: u16)
Called when a sample is ready.
Source§impl<'a, P: Pin> SoundPressure<'a> for AdcMicrophone<'a, P>
impl<'a, P: Pin> SoundPressure<'a> for AdcMicrophone<'a, P>
Auto Trait Implementations§
impl<'a, P> !Freeze for AdcMicrophone<'a, P>
impl<'a, P> !RefUnwindSafe for AdcMicrophone<'a, P>
impl<'a, P> !Send for AdcMicrophone<'a, P>
impl<'a, P> !Sync for AdcMicrophone<'a, P>
impl<'a, P> Unpin for AdcMicrophone<'a, P>
impl<'a, P> !UnwindSafe for AdcMicrophone<'a, P>
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