kernel::hil::adc

Trait HighSpeedClient

Source
pub trait HighSpeedClient {
    // Required method
    fn samples_ready(&self, buf: &'static mut [u16], length: usize);
}
Expand description

Trait for handling callbacks from high-speed ADC calls.

Required Methods§

Source

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

Implementors§