proximity17 2.0.0.0
Proximity 17 Registers Settings

Settings for registers of Proximity 17 Click driver. More...

Macros

#define PROXIMITY17_ENABLE_PWEN   0x10
 Proximity 17 ENABLE register setting.
 
#define PROXIMITY17_ENABLE_PEN   0x04
 
#define PROXIMITY17_ENABLE_PON   0x01
 
#define PROXIMITY17_SOFT_RESET   0x01
 Proximity 17 SOFTRST register setting.
 
#define PROXIMITY17_PGAIN_1X   0x00
 Proximity 17 PCFG0 register setting.
 
#define PROXIMITY17_PGAIN_2X   0x40
 
#define PROXIMITY17_PGAIN_4X   0x80
 
#define PROXIMITY17_PGAIN_8X   0xC0
 
#define PROXIMITY17_PPULSE_MIN   0x00
 
#define PROXIMITY17_PPULSE_DEFAULT   0x0F
 
#define PROXIMITY17_PPULSE_MAX   0x3F
 
#define PROXIMITY17_PPULSE_LEN_1US   0x00
 Proximity 17 PCFG1 register setting.
 
#define PROXIMITY17_PPULSE_LEN_2US   0x20
 
#define PROXIMITY17_PPULSE_LEN_4US   0x40
 
#define PROXIMITY17_PPULSE_LEN_8US   0x60
 
#define PROXIMITY17_PPULSE_LEN_12US   0x80
 
#define PROXIMITY17_PPULSE_LEN_16US   0xA0
 
#define PROXIMITY17_PPULSE_LEN_24US   0xC0
 
#define PROXIMITY17_PPULSE_LEN_32US   0xE0
 
#define PROXIMITY17_PLDRIVE_2mA   0x00
 
#define PROXIMITY17_PLDRIVE_3mA   0x01
 
#define PROXIMITY17_PLDRIVE_4mA   0x02
 
#define PROXIMITY17_PLDRIVE_5mA   0x03
 
#define PROXIMITY17_PLDRIVE_6mA   0x04
 
#define PROXIMITY17_PLDRIVE_7mA   0x05
 
#define PROXIMITY17_PLDRIVE_8mA   0x06
 
#define PROXIMITY17_PLDRIVE_9mA   0x07
 
#define PROXIMITY17_PLDRIVE_10mA   0x08
 
#define PROXIMITY17_PDSELECT_NO_PDIODE   0x00
 Proximity 17 CFG8 register setting.
 
#define PROXIMITY17_PDSELECT_FAR_PDIODE   0x01
 
#define PROXIMITY17_PDSELECT_NEAR_PDIODE   0x02
 
#define PROXIMITY17_PDSELECT_BOTH_PDIODE   0x03
 
#define PROXIMITY17_STATUS_PHIGH   0x80
 Proximity 17 STATUS register setting.
 
#define PROXIMITY17_STATUS_PLOW   0x40
 
#define PROXIMITY17_STATUS_PSAT   0x20
 
#define PROXIMITY17_STATUS_PINT   0x10
 
#define PROXIMITY17_STATUS_CINT   0x08
 
#define PROXIMITY17_STATUS_ZINT   0x04
 
#define PROXIMITY17_STATUS_PSAT_REFLECTIVE   0x02
 
#define PROXIMITY17_STATUS_PSAT_AMBIENT   0x01
 
#define PROXIMITY17_STATUS_CLEAR_ALL   0xFF
 
#define PROXIMITY17_INTENAB_PIM   0x20
 Proximity 17 INTENAB register setting.
 
#define PROXIMITY17_INTENAB_PIEN   0x10
 
#define PROXIMITY17_INTENAB_PSIEN   0x08
 
#define PROXIMITY17_INTENAB_CIEN   0x04
 
#define PROXIMITY17_INTENAB_ZIEN   0x02
 
#define PROXIMITY17_INTENAB_DISABLE   0x00
 
#define PROXIMITY17_CALAVG   0x80
 Proximity 17 CALIB register setting.
 
#define PROXIMITY17_ELECTRICAL_CALIB   0x20
 
#define PROXIMITY17_CALPRATE   0x10
 
#define PROXIMITY17_START_OFFSET_CAL   0x01
 
#define PROXIMITY17_BINSRCH_TARGET_3   0x00
 Proximity 17 CALIBCFG register setting.
 
#define PROXIMITY17_BINSRCH_TARGET_7   0x20
 
#define PROXIMITY17_BINSRCH_TARGET_15   0x40
 
#define PROXIMITY17_BINSRCH_TARGET_31   0x60
 
#define PROXIMITY17_BINSRCH_TARGET_63   0x80
 
#define PROXIMITY17_BINSRCH_TARGET_127   0xA0
 
#define PROXIMITY17_BINSRCH_TARGET_255   0xC0
 
#define PROXIMITY17_BINSRCH_TARGET_511   0xE0
 
#define PROXIMITY17_CALIBCFG_RESERVED   0x10
 
#define PROXIMITY17_AUTO_OFFSET_ADJ   0x08
 
#define PROXIMITY17_PROX_AVG_DISABLE   0x00
 
#define PROXIMITY17_PROX_AVG_2   0x01
 
#define PROXIMITY17_PROX_AVG_4   0x02
 
#define PROXIMITY17_PROX_AVG_8   0x03
 
#define PROXIMITY17_PROX_AVG_16   0x04
 
#define PROXIMITY17_PROX_AVG_32   0x05
 
#define PROXIMITY17_PROX_AVG_64   0x06
 
#define PROXIMITY17_PROX_AVG_128   0x07
 
#define PROXIMITY17_OFFSET_ADJUSTED   0x04
 Proximity 17 CALIBSTAT register setting.
 
#define PROXIMITY17_CALIB_FINISHED   0x01
 
#define PROXIMITY17_APC_ENABLE   0x3F
 Proximity 17 CFG6 register setting.
 
#define PROXIMITY17_APC_DISABLE   0x7F
 
#define PROXIMITY17_DEVICE_ID   0x44
 Proximity 17 device ID value.
 
#define PROXIMITY17_DEVICE_ADDRESS   0x39
 Proximity 17 device address setting.
 

Detailed Description

Settings for registers of Proximity 17 Click driver.

Macro Definition Documentation

◆ PROXIMITY17_APC_DISABLE

#define PROXIMITY17_APC_DISABLE   0x7F

◆ PROXIMITY17_APC_ENABLE

#define PROXIMITY17_APC_ENABLE   0x3F

Proximity 17 CFG6 register setting.

Specified setting for CFG6 register of Proximity 17 Click driver.

◆ PROXIMITY17_AUTO_OFFSET_ADJ

#define PROXIMITY17_AUTO_OFFSET_ADJ   0x08

◆ PROXIMITY17_BINSRCH_TARGET_127

#define PROXIMITY17_BINSRCH_TARGET_127   0xA0

◆ PROXIMITY17_BINSRCH_TARGET_15

#define PROXIMITY17_BINSRCH_TARGET_15   0x40

◆ PROXIMITY17_BINSRCH_TARGET_255

#define PROXIMITY17_BINSRCH_TARGET_255   0xC0

◆ PROXIMITY17_BINSRCH_TARGET_3

#define PROXIMITY17_BINSRCH_TARGET_3   0x00

Proximity 17 CALIBCFG register setting.

Specified setting for CALIBCFG register of Proximity 17 Click driver.

◆ PROXIMITY17_BINSRCH_TARGET_31

#define PROXIMITY17_BINSRCH_TARGET_31   0x60

◆ PROXIMITY17_BINSRCH_TARGET_511

#define PROXIMITY17_BINSRCH_TARGET_511   0xE0

◆ PROXIMITY17_BINSRCH_TARGET_63

#define PROXIMITY17_BINSRCH_TARGET_63   0x80

◆ PROXIMITY17_BINSRCH_TARGET_7

#define PROXIMITY17_BINSRCH_TARGET_7   0x20

◆ PROXIMITY17_CALAVG

#define PROXIMITY17_CALAVG   0x80

Proximity 17 CALIB register setting.

Specified setting for CALIB register of Proximity 17 Click driver.

◆ PROXIMITY17_CALIB_FINISHED

#define PROXIMITY17_CALIB_FINISHED   0x01

◆ PROXIMITY17_CALIBCFG_RESERVED

#define PROXIMITY17_CALIBCFG_RESERVED   0x10

◆ PROXIMITY17_CALPRATE

#define PROXIMITY17_CALPRATE   0x10

◆ PROXIMITY17_DEVICE_ADDRESS

#define PROXIMITY17_DEVICE_ADDRESS   0x39

Proximity 17 device address setting.

Specified setting for device slave address selection of Proximity 17 Click driver.

◆ PROXIMITY17_DEVICE_ID

#define PROXIMITY17_DEVICE_ID   0x44

Proximity 17 device ID value.

Specified value of device ID of Proximity 17 Click driver.

◆ PROXIMITY17_ELECTRICAL_CALIB

#define PROXIMITY17_ELECTRICAL_CALIB   0x20

◆ PROXIMITY17_ENABLE_PEN

#define PROXIMITY17_ENABLE_PEN   0x04

◆ PROXIMITY17_ENABLE_PON

#define PROXIMITY17_ENABLE_PON   0x01

◆ PROXIMITY17_ENABLE_PWEN

#define PROXIMITY17_ENABLE_PWEN   0x10

Proximity 17 ENABLE register setting.

Specified setting for ENABLE register of Proximity 17 Click driver.

◆ PROXIMITY17_INTENAB_CIEN

#define PROXIMITY17_INTENAB_CIEN   0x04

◆ PROXIMITY17_INTENAB_DISABLE

#define PROXIMITY17_INTENAB_DISABLE   0x00

◆ PROXIMITY17_INTENAB_PIEN

#define PROXIMITY17_INTENAB_PIEN   0x10

◆ PROXIMITY17_INTENAB_PIM

#define PROXIMITY17_INTENAB_PIM   0x20

Proximity 17 INTENAB register setting.

Specified setting for INTENAB register of Proximity 17 Click driver.

◆ PROXIMITY17_INTENAB_PSIEN

#define PROXIMITY17_INTENAB_PSIEN   0x08

◆ PROXIMITY17_INTENAB_ZIEN

#define PROXIMITY17_INTENAB_ZIEN   0x02

◆ PROXIMITY17_OFFSET_ADJUSTED

#define PROXIMITY17_OFFSET_ADJUSTED   0x04

Proximity 17 CALIBSTAT register setting.

Specified setting for CALIBSTAT register of Proximity 17 Click driver.

◆ PROXIMITY17_PDSELECT_BOTH_PDIODE

#define PROXIMITY17_PDSELECT_BOTH_PDIODE   0x03

◆ PROXIMITY17_PDSELECT_FAR_PDIODE

#define PROXIMITY17_PDSELECT_FAR_PDIODE   0x01

◆ PROXIMITY17_PDSELECT_NEAR_PDIODE

#define PROXIMITY17_PDSELECT_NEAR_PDIODE   0x02

◆ PROXIMITY17_PDSELECT_NO_PDIODE

#define PROXIMITY17_PDSELECT_NO_PDIODE   0x00

Proximity 17 CFG8 register setting.

Specified setting for CFG8 register of Proximity 17 Click driver.

◆ PROXIMITY17_PGAIN_1X

#define PROXIMITY17_PGAIN_1X   0x00

Proximity 17 PCFG0 register setting.

Specified setting for PCFG0 register of Proximity 17 Click driver.

◆ PROXIMITY17_PGAIN_2X

#define PROXIMITY17_PGAIN_2X   0x40

◆ PROXIMITY17_PGAIN_4X

#define PROXIMITY17_PGAIN_4X   0x80

◆ PROXIMITY17_PGAIN_8X

#define PROXIMITY17_PGAIN_8X   0xC0

◆ PROXIMITY17_PLDRIVE_10mA

#define PROXIMITY17_PLDRIVE_10mA   0x08

◆ PROXIMITY17_PLDRIVE_2mA

#define PROXIMITY17_PLDRIVE_2mA   0x00

◆ PROXIMITY17_PLDRIVE_3mA

#define PROXIMITY17_PLDRIVE_3mA   0x01

◆ PROXIMITY17_PLDRIVE_4mA

#define PROXIMITY17_PLDRIVE_4mA   0x02

◆ PROXIMITY17_PLDRIVE_5mA

#define PROXIMITY17_PLDRIVE_5mA   0x03

◆ PROXIMITY17_PLDRIVE_6mA

#define PROXIMITY17_PLDRIVE_6mA   0x04

◆ PROXIMITY17_PLDRIVE_7mA

#define PROXIMITY17_PLDRIVE_7mA   0x05

◆ PROXIMITY17_PLDRIVE_8mA

#define PROXIMITY17_PLDRIVE_8mA   0x06

◆ PROXIMITY17_PLDRIVE_9mA

#define PROXIMITY17_PLDRIVE_9mA   0x07

◆ PROXIMITY17_PPULSE_DEFAULT

#define PROXIMITY17_PPULSE_DEFAULT   0x0F

◆ PROXIMITY17_PPULSE_LEN_12US

#define PROXIMITY17_PPULSE_LEN_12US   0x80

◆ PROXIMITY17_PPULSE_LEN_16US

#define PROXIMITY17_PPULSE_LEN_16US   0xA0

◆ PROXIMITY17_PPULSE_LEN_1US

#define PROXIMITY17_PPULSE_LEN_1US   0x00

Proximity 17 PCFG1 register setting.

Specified setting for PCFG1 register of Proximity 17 Click driver.

◆ PROXIMITY17_PPULSE_LEN_24US

#define PROXIMITY17_PPULSE_LEN_24US   0xC0

◆ PROXIMITY17_PPULSE_LEN_2US

#define PROXIMITY17_PPULSE_LEN_2US   0x20

◆ PROXIMITY17_PPULSE_LEN_32US

#define PROXIMITY17_PPULSE_LEN_32US   0xE0

◆ PROXIMITY17_PPULSE_LEN_4US

#define PROXIMITY17_PPULSE_LEN_4US   0x40

◆ PROXIMITY17_PPULSE_LEN_8US

#define PROXIMITY17_PPULSE_LEN_8US   0x60

◆ PROXIMITY17_PPULSE_MAX

#define PROXIMITY17_PPULSE_MAX   0x3F

◆ PROXIMITY17_PPULSE_MIN

#define PROXIMITY17_PPULSE_MIN   0x00

◆ PROXIMITY17_PROX_AVG_128

#define PROXIMITY17_PROX_AVG_128   0x07

◆ PROXIMITY17_PROX_AVG_16

#define PROXIMITY17_PROX_AVG_16   0x04

◆ PROXIMITY17_PROX_AVG_2

#define PROXIMITY17_PROX_AVG_2   0x01

◆ PROXIMITY17_PROX_AVG_32

#define PROXIMITY17_PROX_AVG_32   0x05

◆ PROXIMITY17_PROX_AVG_4

#define PROXIMITY17_PROX_AVG_4   0x02

◆ PROXIMITY17_PROX_AVG_64

#define PROXIMITY17_PROX_AVG_64   0x06

◆ PROXIMITY17_PROX_AVG_8

#define PROXIMITY17_PROX_AVG_8   0x03

◆ PROXIMITY17_PROX_AVG_DISABLE

#define PROXIMITY17_PROX_AVG_DISABLE   0x00

◆ PROXIMITY17_SOFT_RESET

#define PROXIMITY17_SOFT_RESET   0x01

Proximity 17 SOFTRST register setting.

Specified setting for SOFTRST register of Proximity 17 Click driver.

◆ PROXIMITY17_START_OFFSET_CAL

#define PROXIMITY17_START_OFFSET_CAL   0x01

◆ PROXIMITY17_STATUS_CINT

#define PROXIMITY17_STATUS_CINT   0x08

◆ PROXIMITY17_STATUS_CLEAR_ALL

#define PROXIMITY17_STATUS_CLEAR_ALL   0xFF

◆ PROXIMITY17_STATUS_PHIGH

#define PROXIMITY17_STATUS_PHIGH   0x80

Proximity 17 STATUS register setting.

Specified setting for STATUS register of Proximity 17 Click driver.

◆ PROXIMITY17_STATUS_PINT

#define PROXIMITY17_STATUS_PINT   0x10

◆ PROXIMITY17_STATUS_PLOW

#define PROXIMITY17_STATUS_PLOW   0x40

◆ PROXIMITY17_STATUS_PSAT

#define PROXIMITY17_STATUS_PSAT   0x20

◆ PROXIMITY17_STATUS_PSAT_AMBIENT

#define PROXIMITY17_STATUS_PSAT_AMBIENT   0x01

◆ PROXIMITY17_STATUS_PSAT_REFLECTIVE

#define PROXIMITY17_STATUS_PSAT_REFLECTIVE   0x02

◆ PROXIMITY17_STATUS_ZINT

#define PROXIMITY17_STATUS_ZINT   0x04