pub struct RangingMeasurementData {
    pub stream_count: u8,
    pub signal_rate_rtn_mega_cps: FixPoint1616,
    pub ambient_rate_rtn_mega_cps: FixPoint1616,
    pub effective_spad_rtn_count: u16,
    pub sigma_milli_meter: FixPoint1616,
    pub range_milli_meter: i16,
    pub range_status: RangeStatus,
    /* private fields */
}
Expand description

Single range measurement data.

Fields§

§stream_count: u8

8-bit Stream Count.

§signal_rate_rtn_mega_cps: FixPoint1616

Return signal rate (MCPS)\n these is a 16.16 fix point value, which is effectively a measure of target reflectance.

§ambient_rate_rtn_mega_cps: FixPoint1616

Return ambient rate (MCPS)\n these is a 16.16 fix point value, which is effectively a measure of the ambien t light.

§effective_spad_rtn_count: u16

Return the effective SPAD count for the return signal.

To obtain Real value it should be divided by 256.

§sigma_milli_meter: FixPoint1616

Return the Sigma value in millimeter.

§range_milli_meter: i16

Range distance in millimeter.

This should be between RangeMinMilliMeter and RangeMaxMilliMeter

§range_status: RangeStatus

Range Status for the current measurement.

This is device dependent.

Value = 0 means value is valid.

Implementations§

The signal rate in “mega count per second” (MCPS) as a Real value.

The return ambient rate as a Real value.

Estimation of the standard deviation of the current ranging in mm as a Real value.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.