proximity18 2.1.0.0
|
Settings for registers of Proximity 18 Click driver. More...
Settings for registers of Proximity 18 Click driver.
#define PROXIMITY18_DATA_READY_TIMEOUT_MS 5000 |
Proximity 18 data ready timeout.
Specified data ready timeout of Proximity 18 Click driver.
#define PROXIMITY18_DEVICE_ADDRESS 0x41 |
Proximity 18 device address setting.
Specified setting for device slave address selection of Proximity 18 Click driver.
#define PROXIMITY18_DEVICE_ID 0x80 |
Proximity 18 ID setting.
Specified ID of Proximity 18 Click driver.
#define PROXIMITY18_DEVICE_ID_MASK 0xFF |
#define PROXIMITY18_INT_FLAG_MASK 0xFF00 |
#define PROXIMITY18_INT_FLAG_MPX_DATA_READY 0x8000 |
Proximity 18 INT_FLAG register settings.
Specified settings for INT_FLAG register of Proximity 18 Click driver.
#define PROXIMITY18_INT_FLAG_PS_IF_AWAY 0x0100 |
#define PROXIMITY18_INT_FLAG_PS_IF_CLOSE 0x0200 |
#define PROXIMITY18_INT_FLAG_PS_SP 0x4000 |
#define PROXIMITY18_PS_CONF1_MASK 0x00FF |
#define PROXIMITY18_PS_CONF1_PS_DUTY_1_OF_160 0x0080 |
#define PROXIMITY18_PS_CONF1_PS_DUTY_1_OF_320 0x00C0 |
#define PROXIMITY18_PS_CONF1_PS_DUTY_1_OF_40 0x0000 |
#define PROXIMITY18_PS_CONF1_PS_DUTY_1_OF_80 0x0040 |
#define PROXIMITY18_PS_CONF1_PS_DUTY_MASK 0x00C0 |
#define PROXIMITY18_PS_CONF1_PS_IT_1p5T 0x0002 |
#define PROXIMITY18_PS_CONF1_PS_IT_1T 0x0000 |
#define PROXIMITY18_PS_CONF1_PS_IT_2p5T 0x0006 |
#define PROXIMITY18_PS_CONF1_PS_IT_2T 0x0004 |
#define PROXIMITY18_PS_CONF1_PS_IT_3p5T 0x000A |
#define PROXIMITY18_PS_CONF1_PS_IT_3T 0x0008 |
#define PROXIMITY18_PS_CONF1_PS_IT_4T 0x000C |
#define PROXIMITY18_PS_CONF1_PS_IT_8T 0x000E |
#define PROXIMITY18_PS_CONF1_PS_IT_MASK 0x000E |
#define PROXIMITY18_PS_CONF1_PS_PERS_1 0x0000 |
#define PROXIMITY18_PS_CONF1_PS_PERS_2 0x0010 |
#define PROXIMITY18_PS_CONF1_PS_PERS_3 0x0020 |
#define PROXIMITY18_PS_CONF1_PS_PERS_4 0x0030 |
#define PROXIMITY18_PS_CONF1_PS_PERS_MASK 0x0030 |
#define PROXIMITY18_PS_CONF1_PS_SD_MASK 0x0001 |
#define PROXIMITY18_PS_CONF1_PS_SD_POWER_ON 0x0000 |
#define PROXIMITY18_PS_CONF1_PS_SD_SHUT_DOWN 0x0001 |
#define PROXIMITY18_PS_CONF2_MASK 0xFF00 |
#define PROXIMITY18_PS_CONF2_MPX_INT_EN_DIS 0x0000 |
Proximity 18 PS_CONF12 register settings.
Specified settings for PS_CONF12 register of Proximity 18 Click driver.
#define PROXIMITY18_PS_CONF2_MPX_INT_EN_EN 0x8000 |
#define PROXIMITY18_PS_CONF2_MPX_INT_EN_MASK 0x8000 |
#define PROXIMITY18_PS_CONF2_MPX_MODE_DIS 0x0000 |
#define PROXIMITY18_PS_CONF2_MPX_MODE_EN 0x4000 |
#define PROXIMITY18_PS_CONF2_MPX_MODE_MASK 0x4000 |
#define PROXIMITY18_PS_CONF2_PS_GAIN_MASK 0x3000 |
#define PROXIMITY18_PS_CONF2_PS_GAIN_SINGLE_X1 0x3000 |
#define PROXIMITY18_PS_CONF2_PS_GAIN_SINGLE_X8 0x2000 |
#define PROXIMITY18_PS_CONF2_PS_GAIN_TWO_STEP 0x0000 |
#define PROXIMITY18_PS_CONF2_PS_HD_12BITS 0x0000 |
#define PROXIMITY18_PS_CONF2_PS_HD_16BITS 0x0800 |
#define PROXIMITY18_PS_CONF2_PS_HD_MASK 0x0800 |
#define PROXIMITY18_PS_CONF2_PS_INT_AWAY 0x0200 |
#define PROXIMITY18_PS_CONF2_PS_INT_CLOSE 0x0100 |
#define PROXIMITY18_PS_CONF2_PS_INT_CLOSE_AWAY 0x0300 |
#define PROXIMITY18_PS_CONF2_PS_INT_DIS 0x0000 |
#define PROXIMITY18_PS_CONF2_PS_INT_MASK 0x0300 |
#define PROXIMITY18_PS_CONF2_PS_NS_MASK 0x0400 |
#define PROXIMITY18_PS_CONF3_IRED_SELECT_IRED1 0x0000 |
#define PROXIMITY18_PS_CONF3_IRED_SELECT_IRED2 0x0020 |
#define PROXIMITY18_PS_CONF3_IRED_SELECT_IRED3 0x0040 |
#define PROXIMITY18_PS_CONF3_IRED_SELECT_MASK 0x0060 |
#define PROXIMITY18_PS_CONF3_LED_I_LOW_DIS 0x0000 |
#define PROXIMITY18_PS_CONF3_LED_I_LOW_EN 0x0080 |
#define PROXIMITY18_PS_CONF3_LED_I_LOW_MASK 0x0080 |
#define PROXIMITY18_PS_CONF3_MASK 0x00FF |
#define PROXIMITY18_PS_CONF3_PS_AF_DIS 0x0000 |
#define PROXIMITY18_PS_CONF3_PS_AF_EN 0x0008 |
#define PROXIMITY18_PS_CONF3_PS_AF_MASK 0x0008 |
#define PROXIMITY18_PS_CONF3_PS_MS_DET_LOGIC 0x0002 |
#define PROXIMITY18_PS_CONF3_PS_MS_MASK 0x0002 |
#define PROXIMITY18_PS_CONF3_PS_MS_NORMAL 0x0000 |
#define PROXIMITY18_PS_CONF3_PS_SC_EN_MASK 0x0001 |
#define PROXIMITY18_PS_CONF3_PS_SC_EN_TURN_OFF 0x0000 |
#define PROXIMITY18_PS_CONF3_PS_SC_EN_TURN_ON 0x0001 |
#define PROXIMITY18_PS_CONF3_PS_SMART_PERS_DIS 0x0000 |
#define PROXIMITY18_PS_CONF3_PS_SMART_PERS_EN 0x0010 |
#define PROXIMITY18_PS_CONF3_PS_SMART_PERS_MASK 0x0010 |
#define PROXIMITY18_PS_CONF3_PS_TRIG_MASK 0x0004 |
#define PROXIMITY18_PS_CONF3_PS_TRIG_NO_TRIG 0x0000 |
#define PROXIMITY18_PS_CONF3_PS_TRIG_ONE_TIME 0x0004 |
#define PROXIMITY18_PS_MS_LED_I_100mA 0x0200 |
#define PROXIMITY18_PS_MS_LED_I_120mA 0x0300 |
#define PROXIMITY18_PS_MS_LED_I_140mA 0x0400 |
#define PROXIMITY18_PS_MS_LED_I_160mA 0x0500 |
#define PROXIMITY18_PS_MS_LED_I_180mA 0x0600 |
#define PROXIMITY18_PS_MS_LED_I_200mA 0x0700 |
#define PROXIMITY18_PS_MS_LED_I_50mA 0x0000 |
#define PROXIMITY18_PS_MS_LED_I_75mA 0x0100 |
#define PROXIMITY18_PS_MS_LED_I_MASK 0x0700 |
#define PROXIMITY18_PS_MS_MASK 0xFF00 |
#define PROXIMITY18_PS_MS_PS_SC_CUR_1X 0x0000 |
Proximity 18 PS_CONF3_MS register settings.
Specified settings for PS_CONF3_MS register of Proximity 18 Click driver.
#define PROXIMITY18_PS_MS_PS_SC_CUR_2X 0x2000 |
#define PROXIMITY18_PS_MS_PS_SC_CUR_4X 0x4000 |
#define PROXIMITY18_PS_MS_PS_SC_CUR_8X 0x6000 |
#define PROXIMITY18_PS_MS_PS_SC_CUR_MASK 0x6000 |
#define PROXIMITY18_PS_MS_PS_SP_1p5X_CAP 0x1000 |
#define PROXIMITY18_PS_MS_PS_SP_1X_CAP 0x0000 |
#define PROXIMITY18_PS_MS_PS_SP_MASK 0x1000 |
#define PROXIMITY18_PS_MS_PS_SPO_00H 0x0000 |
#define PROXIMITY18_PS_MS_PS_SPO_FFH 0x0800 |
#define PROXIMITY18_PS_MS_PS_SPO_MASK 0x0800 |