Struct capsules_extra::adc_microphone::AdcMicrophone
source · 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<'a, P: Pin> Client for AdcMicrophone<'a, P>
impl<'a, P: Pin> Client for AdcMicrophone<'a, 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