Struct capsules_extra::hc_sr04::HcSr04
source · pub struct HcSr04<'a, A: Alarm<'a>> { /* private fields */ }
Expand description
HC-SR04 Ultrasonic Distance Sensor Driver
Implementations§
Trait Implementations§
source§impl<'a, A: Alarm<'a>> AlarmClient for HcSr04<'a, A>
impl<'a, A: Alarm<'a>> AlarmClient for HcSr04<'a, A>
source§impl<'a, A: Alarm<'a>> Distance<'a> for HcSr04<'a, A>
impl<'a, A: Alarm<'a>> Distance<'a> for HcSr04<'a, A>
source§fn set_client(&self, distance_client: &'a dyn DistanceClient)
fn set_client(&self, distance_client: &'a dyn DistanceClient)
Set the client for distance measurement results.
source§fn get_maximum_distance(&self) -> u32
fn get_maximum_distance(&self) -> u32
Get the maximum distance the sensor can measure in mm
source§fn get_minimum_distance(&self) -> u32
fn get_minimum_distance(&self) -> u32
Get the minimum distance the sensor can measure in mm.
Auto Trait Implementations§
impl<'a, A> !Freeze for HcSr04<'a, A>
impl<'a, A> !RefUnwindSafe for HcSr04<'a, A>
impl<'a, A> !Send for HcSr04<'a, A>
impl<'a, A> !Sync for HcSr04<'a, A>
impl<'a, A> Unpin for HcSr04<'a, A>
impl<'a, A> !UnwindSafe for HcSr04<'a, A>
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