MRMS
Macros | Typedefs
Error and Warning code returned by API

Macros

#define VL53L0X_ERROR_NONE   ((VL53L0X_Error) 0)
 
#define VL53L0X_ERROR_CALIBRATION_WARNING   ((VL53L0X_Error) -1)
 
#define VL53L0X_ERROR_MIN_CLIPPED   ((VL53L0X_Error) -2)
 
#define VL53L0X_ERROR_UNDEFINED   ((VL53L0X_Error) -3)
 
#define VL53L0X_ERROR_INVALID_PARAMS   ((VL53L0X_Error) -4)
 
#define VL53L0X_ERROR_NOT_SUPPORTED   ((VL53L0X_Error) -5)
 
#define VL53L0X_ERROR_RANGE_ERROR   ((VL53L0X_Error) -6)
 
#define VL53L0X_ERROR_TIME_OUT   ((VL53L0X_Error) -7)
 
#define VL53L0X_ERROR_MODE_NOT_SUPPORTED   ((VL53L0X_Error) -8)
 
#define VL53L0X_ERROR_BUFFER_TOO_SMALL   ((VL53L0X_Error) -9)
 
#define VL53L0X_ERROR_GPIO_NOT_EXISTING   ((VL53L0X_Error) -10)
 
#define VL53L0X_ERROR_GPIO_FUNCTIONALITY_NOT_SUPPORTED   ((VL53L0X_Error) -11)
 
#define VL53L0X_ERROR_INTERRUPT_NOT_CLEARED   ((VL53L0X_Error) -12)
 
#define VL53L0X_ERROR_CONTROL_INTERFACE   ((VL53L0X_Error) -20)
 
#define VL53L0X_ERROR_INVALID_COMMAND   ((VL53L0X_Error) -30)
 
#define VL53L0X_ERROR_DIVISION_BY_ZERO   ((VL53L0X_Error) -40)
 
#define VL53L0X_ERROR_REF_SPAD_INIT   ((VL53L0X_Error) -50)
 
#define VL53L0X_ERROR_NOT_IMPLEMENTED   ((VL53L0X_Error) -99)
 

Typedefs

typedef int8_t VL53L0X_Error
 

Detailed Description

The following DEFINE are used to identify the PAL ERROR

Macro Definition Documentation

◆ VL53L0X_ERROR_BUFFER_TOO_SMALL

#define VL53L0X_ERROR_BUFFER_TOO_SMALL   ((VL53L0X_Error) -9)

...

◆ VL53L0X_ERROR_CALIBRATION_WARNING

#define VL53L0X_ERROR_CALIBRATION_WARNING   ((VL53L0X_Error) -1)

Warning invalid calibration data may be in used VL53L0X_InitData() VL53L0X_GetOffsetCalibrationData VL53L0X_SetOffsetCalibrationData

◆ VL53L0X_ERROR_CONTROL_INTERFACE

#define VL53L0X_ERROR_CONTROL_INTERFACE   ((VL53L0X_Error) -20)

error reported from IO functions

◆ VL53L0X_ERROR_DIVISION_BY_ZERO

#define VL53L0X_ERROR_DIVISION_BY_ZERO   ((VL53L0X_Error) -40)

In the function a division by zero occurs

◆ VL53L0X_ERROR_GPIO_FUNCTIONALITY_NOT_SUPPORTED

#define VL53L0X_ERROR_GPIO_FUNCTIONALITY_NOT_SUPPORTED   ((VL53L0X_Error) -11)

unsupported GPIO functionality

◆ VL53L0X_ERROR_GPIO_NOT_EXISTING

#define VL53L0X_ERROR_GPIO_NOT_EXISTING   ((VL53L0X_Error) -10)

User tried to setup a non-existing GPIO pin

◆ VL53L0X_ERROR_INTERRUPT_NOT_CLEARED

#define VL53L0X_ERROR_INTERRUPT_NOT_CLEARED   ((VL53L0X_Error) -12)

Error during interrupt clear

◆ VL53L0X_ERROR_INVALID_COMMAND

#define VL53L0X_ERROR_INVALID_COMMAND   ((VL53L0X_Error) -30)

The command is not allowed in the current device state (power down)

◆ VL53L0X_ERROR_INVALID_PARAMS

#define VL53L0X_ERROR_INVALID_PARAMS   ((VL53L0X_Error) -4)

Parameter passed is invalid or out of range

◆ VL53L0X_ERROR_MIN_CLIPPED

#define VL53L0X_ERROR_MIN_CLIPPED   ((VL53L0X_Error) -2)

Warning parameter passed was clipped to min before to be applied

◆ VL53L0X_ERROR_MODE_NOT_SUPPORTED

#define VL53L0X_ERROR_MODE_NOT_SUPPORTED   ((VL53L0X_Error) -8)

Asked mode is not supported by the device

◆ VL53L0X_ERROR_NOT_IMPLEMENTED

#define VL53L0X_ERROR_NOT_IMPLEMENTED   ((VL53L0X_Error) -99)

Tells requested functionality has not been implemented yet or not compatible with the device

◆ VL53L0X_ERROR_NOT_SUPPORTED

#define VL53L0X_ERROR_NOT_SUPPORTED   ((VL53L0X_Error) -5)

Function is not supported in current mode or configuration

◆ VL53L0X_ERROR_RANGE_ERROR

#define VL53L0X_ERROR_RANGE_ERROR   ((VL53L0X_Error) -6)

Device report a ranging error interrupt status

◆ VL53L0X_ERROR_REF_SPAD_INIT

#define VL53L0X_ERROR_REF_SPAD_INIT   ((VL53L0X_Error) -50)

Error during reference SPAD initialization

◆ VL53L0X_ERROR_TIME_OUT

#define VL53L0X_ERROR_TIME_OUT   ((VL53L0X_Error) -7)

Aborted due to time out

◆ VL53L0X_ERROR_UNDEFINED

#define VL53L0X_ERROR_UNDEFINED   ((VL53L0X_Error) -3)

Unqualified error