Struct vl53l1_reg::RESULT__RANGE_STATUS
source · pub struct RESULT__RANGE_STATUS(pub u8);
Tuple Fields§
§0: u8
Implementations§
source§impl RESULT__RANGE_STATUS
impl RESULT__RANGE_STATUS
pub fn range_status(&self) -> u8
pub fn max_threshold_hit(&self) -> u8
pub fn min_threshold_hit(&self) -> u8
pub fn gph_id_range_status(&self) -> bool
pub fn set_range_status(&mut self, value: u8)
pub fn set_max_threshold_hit(&mut self, value: u8)
pub fn set_min_threshold_hit(&mut self, value: u8)
pub fn set_gph_id_range_status(&mut self, value: bool)
Trait Implementations§
source§impl<T> BitRangeMut<T> for RESULT__RANGE_STATUSwhere
u8: BitRangeMut<T>,
impl<T> BitRangeMut<T> for RESULT__RANGE_STATUSwhere
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__RANGE_STATUS
impl Clone for RESULT__RANGE_STATUS
source§fn clone(&self) -> RESULT__RANGE_STATUS
fn clone(&self) -> RESULT__RANGE_STATUS
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__RANGE_STATUS
impl Debug for RESULT__RANGE_STATUS
source§impl Default for RESULT__RANGE_STATUS
impl Default for RESULT__RANGE_STATUS
source§impl Entry for RESULT__RANGE_STATUS
impl Entry for RESULT__RANGE_STATUS
source§const INDEX: Index = Index::RESULT__RANGE_STATUS
const INDEX: Index = Index::RESULT__RANGE_STATUS
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__RANGE_STATUS
impl Hash for RESULT__RANGE_STATUS
source§impl PartialEq<RESULT__RANGE_STATUS> for RESULT__RANGE_STATUS
impl PartialEq<RESULT__RANGE_STATUS> for RESULT__RANGE_STATUS
source§fn eq(&self, other: &RESULT__RANGE_STATUS) -> bool
fn eq(&self, other: &RESULT__RANGE_STATUS) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.