Trait kernel::hil::sensors::ProximityClient

source ·
pub trait ProximityClient {
    // Required method
    fn callback(&self, value: u8);
}

Required Methods§

source

fn callback(&self, value: u8)

Called when a proximity reading has completed.

  • value: the most recently read proximity value which ranges [0 , 255]… where 255 -> object is closest readable distance, 0 -> object is farthest readable distance.

Implementors§