[][src]Trait kernel::hil::adc::HighSpeedClient

pub trait HighSpeedClient {
    fn samples_ready(&self, buf: &'static mut [u16], length: usize);
}

Trait for handling callbacks from high-speed ADC calls.

Required methods

fn samples_ready(&self, buf: &'static mut [u16], length: usize)

Called when a buffer is full. The length provided will always be less than or equal to the length of the buffer. Expects an additional call to either provide another buffer or stop sampling

Loading content...

Implementors

Loading content...