Skip to main content

Register

Enum Register 

Source
#[repr(u16)]
pub enum Register {
Show 25 variants I2cSlaveDeviceAddress = 1, VhvConfigTimeoutMacropLoopBound = 8, GpioHvMuxCtrl = 48, GpioTioHvStatus = 49, SystemInterrupt = 70, RangeConfigA = 94, RangeConfigB = 97, RangeConfigSigmaThresh = 100, MinCountRateRtnLimitMcps = 102, IntermeasurementMs = 108, ThreshHigh = 114, ThreshLow = 116, PowerGo1 = 131, FirmwareEnable = 133, SystemInterruptClear = 134, SystemStart = 135, ResultRangeStatus = 137, ResultSpadNb = 140, ResultSignalRate = 142, ResultAmbientRate = 144, ResultSigma = 146, ResultDistance = 150, ResultOscCalibrateVal = 222, FirmwareSystemStatus = 229, IdentificationModelId = 271,
}
Expand description

Register addresses for the VL53L4CD sensor.

Variants§

§

I2cSlaveDeviceAddress = 1

I2C slave device address register (0x0001)

§

VhvConfigTimeoutMacropLoopBound = 8

VHV configuration timeout macro loop bound register (0x0008)

§

GpioHvMuxCtrl = 48

GPIO HV mux control register (0x0030)

§

GpioTioHvStatus = 49

GPIO TIO HV status register (0x0031)

§

SystemInterrupt = 70

System interrupt configuration register (0x0046)

§

RangeConfigA = 94

Range configuration A register (0x005E)

§

RangeConfigB = 97

Range configuration B register (0x0061)

§

RangeConfigSigmaThresh = 100

Range configuration sigma threshold register (0x0064)

§

MinCountRateRtnLimitMcps = 102

Minimum count rate return limit MCPS register (0x0066)

§

IntermeasurementMs = 108

Inter-measurement period in milliseconds register (0x006C)

§

ThreshHigh = 114

High threshold register (0x0072)

§

ThreshLow = 116

Low threshold register (0x0074)

§

PowerGo1 = 131

Power GO1 register (0x0083)

§

FirmwareEnable = 133

Firmware enable register (0x0085)

§

SystemInterruptClear = 134

System interrupt clear register (0x0086)

§

SystemStart = 135

System start register (0x0087)

§

ResultRangeStatus = 137

Result range status register (0x0089)

§

ResultSpadNb = 140

Result SPAD number register (0x008C)

§

ResultSignalRate = 142

Result signal rate register (0x008E)

§

ResultAmbientRate = 144

Result ambient rate register (0x0090)

§

ResultSigma = 146

Result sigma register (0x0092)

§

ResultDistance = 150

Result distance register (0x0096)

§

ResultOscCalibrateVal = 222

Result oscillator calibration value register (0x00DE)

§

FirmwareSystemStatus = 229

Firmware system status register (0x00E5)

§

IdentificationModelId = 271

Identification model ID register (0x010F)

Trait Implementations§

Source§

impl Clone for Register

Source§

fn clone(&self) -> Register

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Register

Source§

impl Debug for Register

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Register

Source§

impl From<Register> for u16

Source§

fn from(r: Register) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Register

Source§

fn eq(&self, other: &Register) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Register

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.