Struct vl53l1_reg::DSS_CONFIG__ROI_MODE_CONTROL
source · pub struct DSS_CONFIG__ROI_MODE_CONTROL(pub u8);
Tuple Fields§
§0: u8
Implementations§
source§impl DSS_CONFIG__ROI_MODE_CONTROL
impl DSS_CONFIG__ROI_MODE_CONTROL
pub fn input_mode(&self) -> u8
pub fn calculate_roi_enable(&self) -> bool
pub fn set_input_mode(&mut self, value: u8)
pub fn set_calculate_roi_enable(&mut self, value: bool)
Trait Implementations§
source§impl<T> BitRangeMut<T> for DSS_CONFIG__ROI_MODE_CONTROLwhere
u8: BitRangeMut<T>,
impl<T> BitRangeMut<T> for DSS_CONFIG__ROI_MODE_CONTROLwhere
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 DSS_CONFIG__ROI_MODE_CONTROL
impl Clone for DSS_CONFIG__ROI_MODE_CONTROL
source§fn clone(&self) -> DSS_CONFIG__ROI_MODE_CONTROL
fn clone(&self) -> DSS_CONFIG__ROI_MODE_CONTROL
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 DSS_CONFIG__ROI_MODE_CONTROL
impl Debug for DSS_CONFIG__ROI_MODE_CONTROL
source§impl Entry for DSS_CONFIG__ROI_MODE_CONTROL
impl Entry for DSS_CONFIG__ROI_MODE_CONTROL
source§const INDEX: Index = Index::DSS_CONFIG__ROI_MODE_CONTROL
const INDEX: Index = Index::DSS_CONFIG__ROI_MODE_CONTROL
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 DSS_CONFIG__ROI_MODE_CONTROL
impl Hash for DSS_CONFIG__ROI_MODE_CONTROL
source§impl PartialEq<DSS_CONFIG__ROI_MODE_CONTROL> for DSS_CONFIG__ROI_MODE_CONTROL
impl PartialEq<DSS_CONFIG__ROI_MODE_CONTROL> for DSS_CONFIG__ROI_MODE_CONTROL
source§fn eq(&self, other: &DSS_CONFIG__ROI_MODE_CONTROL) -> bool
fn eq(&self, other: &DSS_CONFIG__ROI_MODE_CONTROL) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.