lightranger9 2.0.0.0
LightRanger 9 Registers Settings

Settings for registers of LightRanger 9 Click driver. More...

Macros

#define LIGHTRANGER9_TIMEOUT   5000
 LightRanger 9 timeout value.
 
#define LIGHTRANGER9_ENABLE_CPU_READY   0x40
 LightRanger 9 enable register settings.
 
#define LIGHTRANGER9_ENABLE_POWERUP_BL   0x00
 
#define LIGHTRANGER9_ENABLE_POWERUP_BL_NO_SLP   0x10
 
#define LIGHTRANGER9_ENABLE_POWERUP_RAM   0x20
 
#define LIGHTRANGER9_ENABLE_PON   0x01
 
#define LIGHTRANGER9_INT_ENAB_REG_STATUS   0x40
 LightRanger 9 int enable register settings.
 
#define LIGHTRANGER9_INT_ENAB_COMMAND   0x20
 
#define LIGHTRANGER9_INT_ENAB_HIST_READY   0x08
 
#define LIGHTRANGER9_INT_ENAB_MEAS_READY   0x02
 
#define LIGHTRANGER9_INT_STATUS_REG_STATUS   0x40
 LightRanger 9 int status register settings.
 
#define LIGHTRANGER9_INT_STATUS_COMMAND   0x20
 
#define LIGHTRANGER9_INT_STATUS_HIST_READY   0x08
 
#define LIGHTRANGER9_INT_STATUS_MEAS_READY   0x02
 
#define LIGHTRANGER9_CMD_STAT_MEASURE   0x10
 LightRanger 9 cmd stat register write settings.
 
#define LIGHTRANGER9_CMD_STAT_CLEAR_STATUS   0x11
 
#define LIGHTRANGER9_CMD_STAT_GPIO   0x12
 
#define LIGHTRANGER9_CMD_STAT_WRITE_CFG_PAGE   0x15
 
#define LIGHTRANGER9_CMD_STAT_LOAD_CFG_PAGE_COMMON   0x16
 
#define LIGHTRANGER9_CMD_STAT_LOAD_CFG_PAGE_SPAD_1   0x17
 
#define LIGHTRANGER9_CMD_STAT_LOAD_CFG_PAGE_SPAD_2   0x18
 
#define LIGHTRANGER9_CMD_STAT_LOAD_CFG_PAGE_F_Y_CAL   0x19
 
#define LIGHTRANGER9_CMD_STAT_FACTORY_CALIBRATION   0x20
 
#define LIGHTRANGER9_CMD_STAT_I2C_SLAVE_ADDRESS   0x21
 
#define LIGHTRANGER9_CMD_STAT_FORCE_TMF8820   0x65
 
#define LIGHTRANGER9_CMD_STAT_FORCE_TMF8828   0x6C
 
#define LIGHTRANGER9_CMD_STAT_RESET   0xFE
 
#define LIGHTRANGER9_CMD_STAT_STOP   0xFF
 
#define LIGHTRANGER9_CMD_STAT_OK   0x00
 LightRanger 9 cmd stat register read settings.
 
#define LIGHTRANGER9_CMD_STAT_ACCEPTED   0x01
 
#define LIGHTRANGER9_CMD_ERR_CONFIG   0x02
 
#define LIGHTRANGER9_CMD_ERR_APPLICATION   0x03
 
#define LIGHTRANGER9_CMD_ERR_WAKEUP_TIMED   0x04
 
#define LIGHTRANGER9_CMD_ERR_RESET_UNEXPECTED   0x05
 
#define LIGHTRANGER9_CMD_ERR_UNKNOWN_CMD   0x06
 
#define LIGHTRANGER9_CMD_ERR_NO_REF_SPAD   0x07
 
#define LIGHTRANGER9_CMD_ERR_UNKNOWN_CID   0x09
 
#define LIGHTRANGER9_CMD_WARNING_CFG_SPAD_1   0x0A
 
#define LIGHTRANGER9_CMD_WARNING_CFG_SPAD_2   0x0B
 
#define LIGHTRANGER9_CMD_WARNING_OSC_TRIP   0x0C
 
#define LIGHTRANGER9_CMD_WARNING_I2C_ADDRESS   0x0D
 
#define LIGHTRANGER9_CMD_ERR_UNKNOWN_MODE   0x0E
 
#define LIGHTRANGER9_CONFIG_RESULT_MEAS   0x10
 LightRanger 9 config result register settings.
 
#define LIGHTRANGER9_CONFIG_RESULT_COMMON_CID   0x16
 
#define LIGHTRANGER9_CONFIG_RESULT_SPAD_1_CID   0x17
 
#define LIGHTRANGER9_CONFIG_RESULT_SPAD_2_CID   0x18
 
#define LIGHTRANGER9_CONFIG_RESULT_FAC_CALIB_CID   0x19
 
#define LIGHTRANGER9_CONFIG_RESULT_HIST_RAW_CID   0x81
 
#define LIGHTRANGER9_BL_CMD_RAMREMAP_RESET   0x11
 LightRanger 9 bootloader commands list.
 
#define LIGHTRANGER9_BL_CMD_DOWNLOAD_INIT   0x14
 
#define LIGHTRANGER9_BL_CMD_RAM_BIST   0x2A
 
#define LIGHTRANGER9_BL_CMD_I2C_BIST   0x2C
 
#define LIGHTRANGER9_BL_CMD_W_RAM   0x41
 
#define LIGHTRANGER9_BL_CMD_ADDR_RAM   0x43
 
#define LIGHTRANGER9_BL_CMD_STAT_READY   0x00
 LightRanger 9 bootloader commands status list.
 
#define LIGHTRANGER9_BL_CMD_STAT_ERR_SIZE   0x01
 
#define LIGHTRANGER9_BL_CMD_STAT_ERR_CSUM   0x02
 
#define LIGHTRANGER9_BL_CMD_STAT_ERR_RANGE   0x03
 
#define LIGHTRANGER9_BL_CMD_STAT_ERR_MORE   0x04
 
#define LIGHTRANGER9_APP_ID_BOOTLOADER   0x80
 LightRanger 9 app id settings.
 
#define LIGHTRANGER9_APP_ID_MEASUREMENT   0x03
 
#define LIGHTRANGER9_BLOCKREAD_SIZE   132
 LightRanger 9 capture settings.
 
#define LIGHTRANGER9_MAX_MEAS_RESULTS   36
 
#define LIGHTRANGER9_SUBCAPTURE_0   0
 
#define LIGHTRANGER9_SUBCAPTURE_1   1
 
#define LIGHTRANGER9_SUBCAPTURE_2   2
 
#define LIGHTRANGER9_SUBCAPTURE_3   3
 
#define LIGHTRANGER9_SUBCAPTURE_MASK   0x03
 
#define LIGHTRANGER9_RESULT_NUMBER_MASK   0x3F
 
#define LIGHTRANGER9_SYS_TICK_TO_SEC   0.0000002
 
#define LIGHTRANGER9_OBJECT_MAP_SIZE   64
 
#define LIGHTRANGER9_DEFAULT_MEASUREMENT_PERIOD_MS   500
 LightRanger 9 default measurement period and confidence threshold.
 
#define LIGHTRANGER9_CONFIDENCE_THRESHOLD   100
 
#define LIGHTRANGER9_DEVICE_ID   0x08
 LightRanger 9 device ID value.
 
#define LIGHTRANGER9_DEVICE_ADDRESS   0x41
 LightRanger 9 device address setting.
 

Detailed Description

Settings for registers of LightRanger 9 Click driver.

Macro Definition Documentation

◆ LIGHTRANGER9_APP_ID_BOOTLOADER

#define LIGHTRANGER9_APP_ID_BOOTLOADER   0x80

LightRanger 9 app id settings.

Specified app id settings of LightRanger 9 Click driver.

◆ LIGHTRANGER9_APP_ID_MEASUREMENT

#define LIGHTRANGER9_APP_ID_MEASUREMENT   0x03

◆ LIGHTRANGER9_BL_CMD_ADDR_RAM

#define LIGHTRANGER9_BL_CMD_ADDR_RAM   0x43

◆ LIGHTRANGER9_BL_CMD_DOWNLOAD_INIT

#define LIGHTRANGER9_BL_CMD_DOWNLOAD_INIT   0x14

◆ LIGHTRANGER9_BL_CMD_I2C_BIST

#define LIGHTRANGER9_BL_CMD_I2C_BIST   0x2C

◆ LIGHTRANGER9_BL_CMD_RAM_BIST

#define LIGHTRANGER9_BL_CMD_RAM_BIST   0x2A

◆ LIGHTRANGER9_BL_CMD_RAMREMAP_RESET

#define LIGHTRANGER9_BL_CMD_RAMREMAP_RESET   0x11

LightRanger 9 bootloader commands list.

Specified bootloader commands list of LightRanger 9 Click driver.

◆ LIGHTRANGER9_BL_CMD_STAT_ERR_CSUM

#define LIGHTRANGER9_BL_CMD_STAT_ERR_CSUM   0x02

◆ LIGHTRANGER9_BL_CMD_STAT_ERR_MORE

#define LIGHTRANGER9_BL_CMD_STAT_ERR_MORE   0x04

◆ LIGHTRANGER9_BL_CMD_STAT_ERR_RANGE

#define LIGHTRANGER9_BL_CMD_STAT_ERR_RANGE   0x03

◆ LIGHTRANGER9_BL_CMD_STAT_ERR_SIZE

#define LIGHTRANGER9_BL_CMD_STAT_ERR_SIZE   0x01

◆ LIGHTRANGER9_BL_CMD_STAT_READY

#define LIGHTRANGER9_BL_CMD_STAT_READY   0x00

LightRanger 9 bootloader commands status list.

Specified bootloader commands status list of LightRanger 9 Click driver.

◆ LIGHTRANGER9_BL_CMD_W_RAM

#define LIGHTRANGER9_BL_CMD_W_RAM   0x41

◆ LIGHTRANGER9_BLOCKREAD_SIZE

#define LIGHTRANGER9_BLOCKREAD_SIZE   132

LightRanger 9 capture settings.

Specified capture settings of LightRanger 9 Click driver.

◆ LIGHTRANGER9_CMD_ERR_APPLICATION

#define LIGHTRANGER9_CMD_ERR_APPLICATION   0x03

◆ LIGHTRANGER9_CMD_ERR_CONFIG

#define LIGHTRANGER9_CMD_ERR_CONFIG   0x02

◆ LIGHTRANGER9_CMD_ERR_NO_REF_SPAD

#define LIGHTRANGER9_CMD_ERR_NO_REF_SPAD   0x07

◆ LIGHTRANGER9_CMD_ERR_RESET_UNEXPECTED

#define LIGHTRANGER9_CMD_ERR_RESET_UNEXPECTED   0x05

◆ LIGHTRANGER9_CMD_ERR_UNKNOWN_CID

#define LIGHTRANGER9_CMD_ERR_UNKNOWN_CID   0x09

◆ LIGHTRANGER9_CMD_ERR_UNKNOWN_CMD

#define LIGHTRANGER9_CMD_ERR_UNKNOWN_CMD   0x06

◆ LIGHTRANGER9_CMD_ERR_UNKNOWN_MODE

#define LIGHTRANGER9_CMD_ERR_UNKNOWN_MODE   0x0E

◆ LIGHTRANGER9_CMD_ERR_WAKEUP_TIMED

#define LIGHTRANGER9_CMD_ERR_WAKEUP_TIMED   0x04

◆ LIGHTRANGER9_CMD_STAT_ACCEPTED

#define LIGHTRANGER9_CMD_STAT_ACCEPTED   0x01

◆ LIGHTRANGER9_CMD_STAT_CLEAR_STATUS

#define LIGHTRANGER9_CMD_STAT_CLEAR_STATUS   0x11

◆ LIGHTRANGER9_CMD_STAT_FACTORY_CALIBRATION

#define LIGHTRANGER9_CMD_STAT_FACTORY_CALIBRATION   0x20

◆ LIGHTRANGER9_CMD_STAT_FORCE_TMF8820

#define LIGHTRANGER9_CMD_STAT_FORCE_TMF8820   0x65

◆ LIGHTRANGER9_CMD_STAT_FORCE_TMF8828

#define LIGHTRANGER9_CMD_STAT_FORCE_TMF8828   0x6C

◆ LIGHTRANGER9_CMD_STAT_GPIO

#define LIGHTRANGER9_CMD_STAT_GPIO   0x12

◆ LIGHTRANGER9_CMD_STAT_I2C_SLAVE_ADDRESS

#define LIGHTRANGER9_CMD_STAT_I2C_SLAVE_ADDRESS   0x21

◆ LIGHTRANGER9_CMD_STAT_LOAD_CFG_PAGE_COMMON

#define LIGHTRANGER9_CMD_STAT_LOAD_CFG_PAGE_COMMON   0x16

◆ LIGHTRANGER9_CMD_STAT_LOAD_CFG_PAGE_F_Y_CAL

#define LIGHTRANGER9_CMD_STAT_LOAD_CFG_PAGE_F_Y_CAL   0x19

◆ LIGHTRANGER9_CMD_STAT_LOAD_CFG_PAGE_SPAD_1

#define LIGHTRANGER9_CMD_STAT_LOAD_CFG_PAGE_SPAD_1   0x17

◆ LIGHTRANGER9_CMD_STAT_LOAD_CFG_PAGE_SPAD_2

#define LIGHTRANGER9_CMD_STAT_LOAD_CFG_PAGE_SPAD_2   0x18

◆ LIGHTRANGER9_CMD_STAT_MEASURE

#define LIGHTRANGER9_CMD_STAT_MEASURE   0x10

LightRanger 9 cmd stat register write settings.

Specified cmd stat register write settings of LightRanger 9 Click driver.

◆ LIGHTRANGER9_CMD_STAT_OK

#define LIGHTRANGER9_CMD_STAT_OK   0x00

LightRanger 9 cmd stat register read settings.

Specified cmd stat register read settings of LightRanger 9 Click driver.

◆ LIGHTRANGER9_CMD_STAT_RESET

#define LIGHTRANGER9_CMD_STAT_RESET   0xFE

◆ LIGHTRANGER9_CMD_STAT_STOP

#define LIGHTRANGER9_CMD_STAT_STOP   0xFF

◆ LIGHTRANGER9_CMD_STAT_WRITE_CFG_PAGE

#define LIGHTRANGER9_CMD_STAT_WRITE_CFG_PAGE   0x15

◆ LIGHTRANGER9_CMD_WARNING_CFG_SPAD_1

#define LIGHTRANGER9_CMD_WARNING_CFG_SPAD_1   0x0A

◆ LIGHTRANGER9_CMD_WARNING_CFG_SPAD_2

#define LIGHTRANGER9_CMD_WARNING_CFG_SPAD_2   0x0B

◆ LIGHTRANGER9_CMD_WARNING_I2C_ADDRESS

#define LIGHTRANGER9_CMD_WARNING_I2C_ADDRESS   0x0D

◆ LIGHTRANGER9_CMD_WARNING_OSC_TRIP

#define LIGHTRANGER9_CMD_WARNING_OSC_TRIP   0x0C

◆ LIGHTRANGER9_CONFIDENCE_THRESHOLD

#define LIGHTRANGER9_CONFIDENCE_THRESHOLD   100

◆ LIGHTRANGER9_CONFIG_RESULT_COMMON_CID

#define LIGHTRANGER9_CONFIG_RESULT_COMMON_CID   0x16

◆ LIGHTRANGER9_CONFIG_RESULT_FAC_CALIB_CID

#define LIGHTRANGER9_CONFIG_RESULT_FAC_CALIB_CID   0x19

◆ LIGHTRANGER9_CONFIG_RESULT_HIST_RAW_CID

#define LIGHTRANGER9_CONFIG_RESULT_HIST_RAW_CID   0x81

◆ LIGHTRANGER9_CONFIG_RESULT_MEAS

#define LIGHTRANGER9_CONFIG_RESULT_MEAS   0x10

LightRanger 9 config result register settings.

Specified config result register settings of LightRanger 9 Click driver.

◆ LIGHTRANGER9_CONFIG_RESULT_SPAD_1_CID

#define LIGHTRANGER9_CONFIG_RESULT_SPAD_1_CID   0x17

◆ LIGHTRANGER9_CONFIG_RESULT_SPAD_2_CID

#define LIGHTRANGER9_CONFIG_RESULT_SPAD_2_CID   0x18

◆ LIGHTRANGER9_DEFAULT_MEASUREMENT_PERIOD_MS

#define LIGHTRANGER9_DEFAULT_MEASUREMENT_PERIOD_MS   500

LightRanger 9 default measurement period and confidence threshold.

Specified default measurement period and confidence threshold of LightRanger 9 Click driver.

◆ LIGHTRANGER9_DEVICE_ADDRESS

#define LIGHTRANGER9_DEVICE_ADDRESS   0x41

LightRanger 9 device address setting.

Specified setting for device slave address selection of LightRanger 9 Click driver.

◆ LIGHTRANGER9_DEVICE_ID

#define LIGHTRANGER9_DEVICE_ID   0x08

LightRanger 9 device ID value.

Specified device ID value of LightRanger 9 Click driver.

◆ LIGHTRANGER9_ENABLE_CPU_READY

#define LIGHTRANGER9_ENABLE_CPU_READY   0x40

LightRanger 9 enable register settings.

Specified enable register settings of LightRanger 9 Click driver.

◆ LIGHTRANGER9_ENABLE_PON

#define LIGHTRANGER9_ENABLE_PON   0x01

◆ LIGHTRANGER9_ENABLE_POWERUP_BL

#define LIGHTRANGER9_ENABLE_POWERUP_BL   0x00

◆ LIGHTRANGER9_ENABLE_POWERUP_BL_NO_SLP

#define LIGHTRANGER9_ENABLE_POWERUP_BL_NO_SLP   0x10

◆ LIGHTRANGER9_ENABLE_POWERUP_RAM

#define LIGHTRANGER9_ENABLE_POWERUP_RAM   0x20

◆ LIGHTRANGER9_INT_ENAB_COMMAND

#define LIGHTRANGER9_INT_ENAB_COMMAND   0x20

◆ LIGHTRANGER9_INT_ENAB_HIST_READY

#define LIGHTRANGER9_INT_ENAB_HIST_READY   0x08

◆ LIGHTRANGER9_INT_ENAB_MEAS_READY

#define LIGHTRANGER9_INT_ENAB_MEAS_READY   0x02

◆ LIGHTRANGER9_INT_ENAB_REG_STATUS

#define LIGHTRANGER9_INT_ENAB_REG_STATUS   0x40

LightRanger 9 int enable register settings.

Specified int enable register settings of LightRanger 9 Click driver.

◆ LIGHTRANGER9_INT_STATUS_COMMAND

#define LIGHTRANGER9_INT_STATUS_COMMAND   0x20

◆ LIGHTRANGER9_INT_STATUS_HIST_READY

#define LIGHTRANGER9_INT_STATUS_HIST_READY   0x08

◆ LIGHTRANGER9_INT_STATUS_MEAS_READY

#define LIGHTRANGER9_INT_STATUS_MEAS_READY   0x02

◆ LIGHTRANGER9_INT_STATUS_REG_STATUS

#define LIGHTRANGER9_INT_STATUS_REG_STATUS   0x40

LightRanger 9 int status register settings.

Specified int status register settings of LightRanger 9 Click driver.

◆ LIGHTRANGER9_MAX_MEAS_RESULTS

#define LIGHTRANGER9_MAX_MEAS_RESULTS   36

◆ LIGHTRANGER9_OBJECT_MAP_SIZE

#define LIGHTRANGER9_OBJECT_MAP_SIZE   64

◆ LIGHTRANGER9_RESULT_NUMBER_MASK

#define LIGHTRANGER9_RESULT_NUMBER_MASK   0x3F

◆ LIGHTRANGER9_SUBCAPTURE_0

#define LIGHTRANGER9_SUBCAPTURE_0   0

◆ LIGHTRANGER9_SUBCAPTURE_1

#define LIGHTRANGER9_SUBCAPTURE_1   1

◆ LIGHTRANGER9_SUBCAPTURE_2

#define LIGHTRANGER9_SUBCAPTURE_2   2

◆ LIGHTRANGER9_SUBCAPTURE_3

#define LIGHTRANGER9_SUBCAPTURE_3   3

◆ LIGHTRANGER9_SUBCAPTURE_MASK

#define LIGHTRANGER9_SUBCAPTURE_MASK   0x03

◆ LIGHTRANGER9_SYS_TICK_TO_SEC

#define LIGHTRANGER9_SYS_TICK_TO_SEC   0.0000002

◆ LIGHTRANGER9_TIMEOUT

#define LIGHTRANGER9_TIMEOUT   5000

LightRanger 9 timeout value.

Specified timeout value of LightRanger 9 Click driver.