kernel::hil::sensors

Trait 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§