Librairie adaptée au laboratoire 2

Dependencies:   ST_INTERFACES X_NUCLEO_COMMON

Fork of X_NUCLEO_6180XA1 by ST

Embed: (wiki syntax)

« Back to documentation index

Ranging calibration functions

Ranging calibration functions

Ranging calibration functions. More...

Functions

int8_t get_offset_calibration_data ()
 Get part to part calibration offset.
void set_offset_calibration_data (int8_t offset)
 Set or over-write part to part calibration offset.
int set_x_talk_compensation_rate (FixPoint97_t Rate)
 Set Cross talk compensation rate.

Detailed Description

Ranging calibration functions.


Function Documentation

int8_t get_offset_calibration_data (  ) [inherited]

Get part to part calibration offset.

Function Description
Should only be used after a successful call to VL6180X_InitData to backup device nvm value
Returns:
part to part calibration offset from device

Definition at line 909 of file VL6180X.h.

void set_offset_calibration_data ( int8_t  offset ) [inherited]

Set or over-write part to part calibration offset.

See also:
VL6180X_InitData(), VL6180X_GetOffsetCalibrationData()
Parameters:
offsetOffset

Definition at line 919 of file VL6180X.h.

int set_x_talk_compensation_rate ( FixPoint97_t  Rate ) [inherited]

Set Cross talk compensation rate.

Function Description
It programs register SYSRANGE_CROSSTALK_COMPENSATION_RATE
Parameters:
RateCompensation rate (9.7 fix point) see datasheet for details
Returns:
0 on success

Definition at line 933 of file VL6180X.h.