Struct vl53l1_reg::RESULT__THRESH_INFO
source · pub struct RESULT__THRESH_INFO(pub u8);
Tuple Fields§
§0: u8
Implementations§
source§impl RESULT__THRESH_INFO
impl RESULT__THRESH_INFO
pub fn distance_int_info(&self) -> u8
pub fn rate_int_info(&self) -> u8
pub fn set_distance_int_info(&mut self, value: u8)
pub fn set_rate_int_info(&mut self, value: u8)
Trait Implementations§
source§impl<T> BitRangeMut<T> for RESULT__THRESH_INFOwhere
u8: BitRangeMut<T>,
impl<T> BitRangeMut<T> for RESULT__THRESH_INFOwhere
u8: BitRangeMut<T>,
source§fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
Set a range of bits.
source§impl Clone for RESULT__THRESH_INFO
impl Clone for RESULT__THRESH_INFO
source§fn clone(&self) -> RESULT__THRESH_INFO
fn clone(&self) -> RESULT__THRESH_INFO
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RESULT__THRESH_INFO
impl Debug for RESULT__THRESH_INFO
source§impl Default for RESULT__THRESH_INFO
impl Default for RESULT__THRESH_INFO
source§impl Entry for RESULT__THRESH_INFO
impl Entry for RESULT__THRESH_INFO
source§const INDEX: Index = Index::RESULT__THRESH_INFO
const INDEX: Index = Index::RESULT__THRESH_INFO
The unique index indicating the location of the entry within the register map.
source§fn into_array(self) -> Self::Array
fn into_array(self) -> Self::Array
Encode self in an array, ready for transmission over I2C (to MSB).
source§fn from_array(arr: Self::Array) -> Self
fn from_array(arr: Self::Array) -> Self
Decode self from an of bytes in the order they were received over I2C (from MSB).
source§impl Hash for RESULT__THRESH_INFO
impl Hash for RESULT__THRESH_INFO
source§impl PartialEq<RESULT__THRESH_INFO> for RESULT__THRESH_INFO
impl PartialEq<RESULT__THRESH_INFO> for RESULT__THRESH_INFO
source§fn eq(&self, other: &RESULT__THRESH_INFO) -> bool
fn eq(&self, other: &RESULT__THRESH_INFO) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.