pub struct Vl53l0x<SCL, SDA> { /* private fields */ }Implementations§
Source§impl<SCL, SDA> Vl53l0x<SCL, SDA>where
SCL: PinScl<I2C1>,
SDA: PinSda<I2C1>,
impl<SCL, SDA> Vl53l0x<SCL, SDA>where
SCL: PinScl<I2C1>,
SDA: PinSda<I2C1>,
Sourcepub fn new(bus: I2cBus<SCL, SDA>) -> Result<Self, Error>
pub fn new(bus: I2cBus<SCL, SDA>) -> Result<Self, Error>
Verify device identity and run mandatory data init (2V8 I/O, stop_variable, MSRC, sequence).
Sourcepub fn static_init(&mut self) -> Result<(), Error>
pub fn static_init(&mut self) -> Result<(), Error>
Read SPAD info from NVM and configure the SPAD enable map.
Sourcepub fn load_tuning(&mut self) -> Result<(), Error>
pub fn load_tuning(&mut self) -> Result<(), Error>
Write ST tuning register block
Sourcepub fn read_range_mm(&mut self) -> Result<u16, Error>
pub fn read_range_mm(&mut self) -> Result<u16, Error>
Single-shot range measurement in mm
Auto Trait Implementations§
impl<SCL, SDA> Freeze for Vl53l0x<SCL, SDA>
impl<SCL, SDA> RefUnwindSafe for Vl53l0x<SCL, SDA>where
SCL: RefUnwindSafe,
SDA: RefUnwindSafe,
impl<SCL, SDA> Send for Vl53l0x<SCL, SDA>
impl<SCL, SDA> !Sync for Vl53l0x<SCL, SDA>
impl<SCL, SDA> Unpin for Vl53l0x<SCL, SDA>
impl<SCL, SDA> UnwindSafe for Vl53l0x<SCL, SDA>where
SCL: UnwindSafe,
SDA: UnwindSafe,
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