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