|
#define | CAPTOUCH5_MAP_MIKROBUS(cfg, mikrobus) |
|
#define | CAPTOUCH5_RETVAL uint8_t |
|
#define | CAPTOUCH5_OK 0x00 |
|
#define | CAPTOUCH5_INIT_ERROR 0xFF |
|
#define | CAPTOUCH5_I2C_SLAVE_ADDRESS 0x37 |
|
#define | CAPTOUCH5_REG_SENSOR_EN 0x00 |
|
#define | CAPTOUCH5_REG_FSS_EN 0x02 |
|
#define | CAPTOUCH5_REG_SENSITIVITY0 0x08 |
|
#define | CAPTOUCH5_REG_SENSITIVITY1 0x09 |
|
#define | CAPTOUCH5_REG_SENSITIVITY2 0x0A |
|
#define | CAPTOUCH5_REG_SENSITIVITY3 0x0B |
|
#define | CAPTOUCH5_REG_BASE_THRESHOLD0 0x0C |
|
#define | CAPTOUCH5_REG_BASE_THRESHOLD1 0x0D |
|
#define | CAPTOUCH5_REG_FINGER_THRESHOLD2 0x0E |
|
#define | CAPTOUCH5_REG_FINGER_THRESHOLD3 0x0F |
|
#define | CAPTOUCH5_REG_FINGER_THRESHOLD4 0x10 |
|
#define | CAPTOUCH5_REG_FINGER_THRESHOLD5 0x11 |
|
#define | CAPTOUCH5_REG_FINGER_THRESHOLD6 0x12 |
|
#define | CAPTOUCH5_REG_FINGER_THRESHOLD7 0x13 |
|
#define | CAPTOUCH5_REG_FINGER_THRESHOLD8 0x14 |
|
#define | CAPTOUCH5_REG_FINGER_THRESHOLD9 0x15 |
|
#define | CAPTOUCH5_REG_FINGER_THRESHOLD10 0x16 |
|
#define | CAPTOUCH5_REG_FINGER_THRESHOLD11 0x17 |
|
#define | CAPTOUCH5_REG_FINGER_THRESHOLD12 0x18 |
|
#define | CAPTOUCH5_REG_FINGER_THRESHOLD13 0x19 |
|
#define | CAPTOUCH5_REG_FINGER_THRESHOLD14 0x1A |
|
#define | CAPTOUCH5_REG_FINGER_THRESHOLD15 0x1B |
|
#define | CAPTOUCH5_REG_SENSOR_DEBOUNCE 0x1C |
|
#define | CAPTOUCH5_REG_BUTTON_HYS 0x1D |
|
#define | CAPTOUCH5_REG_BUTTON_LBR 0x1F |
|
#define | CAPTOUCH5_REG_BUTTON_NNT 0x20 |
|
#define | CAPTOUCH5_REG_BUTTON_NT 0x21 |
|
#define | CAPTOUCH5_REG_PROX_EN 0x26 |
|
#define | CAPTOUCH5_REG_PROX_CFG 0x27 |
|
#define | CAPTOUCH5_REG_PROX_TOUCH_TH0 0x28 |
|
#define | CAPTOUCH5_REG_PROX_TOUCH_TH1 0x2A |
|
#define | CAPTOUCH5_REG_PROX_RESOLUTION0 0x2E |
|
#define | CAPTOUCH5_REG_PROX_RESOLUTION1 0x2F |
|
#define | CAPTOUCH5_REG_PROX_HYS 0x30 |
|
#define | CAPTOUCH5_REG_PROX_LBR 0x32 |
|
#define | CAPTOUCH5_REG_PROX_NNT 0x33 |
|
#define | CAPTOUCH5_REG_PROX_NT 0x34 |
|
#define | CAPTOUCH5_REG_BUZZER_CFG 0x3E |
|
#define | CAPTOUCH5_REG_BUZZER_ON_TIME 0x3F |
|
#define | CAPTOUCH5_REG_SPO_CFG 0x4C |
|
#define | CAPTOUCH5_REG_DEVICE_CFG0 0x4D |
|
#define | CAPTOUCH5_REG_DEVICE_CFG1 0x4E |
|
#define | CAPTOUCH5_REG_DEVICE_CFG2 0x4F |
|
#define | CAPTOUCH5_REG_DEVICE_CFG3 0x50 |
|
#define | CAPTOUCH5_REG_I2C_ADDR 0x51 |
|
#define | CAPTOUCH5_REG_REFRESH_CTRL 0x52 |
|
#define | CAPTOUCH5_REG_STATE_TIMEOUT 0x55 |
|
#define | CAPTOUCH5_REG_SLIDER_CFG 0x5D |
|
#define | CAPTOUCH5_REG_SLIDER1_CFG 0x61 |
|
#define | CAPTOUCH5_REG_SLIDER1_RESOLUTION 0x62 |
|
#define | CAPTOUCH5_REG_SLIDER1_THRESHOLD 0x63 |
|
#define | CAPTOUCH5_REG_SLIDER2_CFG 0x67 |
|
#define | CAPTOUCH5_REG_SLIDER2_RESOLUTION 0x68 |
|
#define | CAPTOUCH5_REG_SLIDER2_THRESHOLD 0x69 |
|
#define | CAPTOUCH5_REG_SLIDER_LBR 0x71 |
|
#define | CAPTOUCH5_REG_SLIDER_NNT 0x72 |
|
#define | CAPTOUCH5_REG_SLIDER_NT 0x73 |
|
#define | CAPTOUCH5_REG_SCRATCHPAD0 0x7A |
|
#define | CAPTOUCH5_REG_SCRATCHPAD1 0x7B |
|
#define | CAPTOUCH5_REG_CONFIG_CRC 0x7E |
|
#define | CAPTOUCH5_REG_SENSOR_ID 0x82 |
|
#define | CAPTOUCH5_REG_CTRL_CMD 0x86 |
|
#define | CAPTOUCH5_REG_CTRL_CMD_STATUS 0x88 |
|
#define | CAPTOUCH5_REG_CTRL_CMD_ERR 0x89 |
|
#define | CAPTOUCH5_REG_SYSTEM_STATUS 0x8A |
|
#define | CAPTOUCH5_REG_PREV_CTRL_CMD_CODE 0x8C |
|
#define | CAPTOUCH5_REG_FAMILY_ID 0x8F |
|
#define | CAPTOUCH5_REG_DEVICE_ID 0x90 |
|
#define | CAPTOUCH5_REG_DEVICE_REV 0x92 |
|
#define | CAPTOUCH5_REG_CALC_CRC 0x94 |
|
#define | CAPTOUCH5_REG_TOTAL_WORKING_SNS 0x97 |
|
#define | CAPTOUCH5_REG_SNS_CP_HIGH 0x98 |
|
#define | CAPTOUCH5_REG_SNS_VDD_SHORT 0x9A |
|
#define | CAPTOUCH5_REG_SNS_GND_SHORT 0x9C |
|
#define | CAPTOUCH5_REG_CMOD_SHIELD_TEST 0xA0 |
|
#define | CAPTOUCH5_REG_BUTTON_STAT 0xAA |
|
#define | CAPTOUCH5_REG_LATCHED_BUTTON_STAT 0xAC |
|
#define | CAPTOUCH5_REG_PROX_STAT 0xAE |
|
#define | CAPTOUCH5_REG_LATCHED_PROx_STAT 0xAF |
|
#define | CAPTOUCH5_REG_SLIDER1_POSITION 0xB0 |
|
#define | CAPTOUCH5_REG_LIFTOFF_SLIDER1_POSITION 0xB1 |
|
#define | CAPTOUCH5_REG_SLIDER2_POSITION 0xB2 |
|
#define | CAPTOUCH5_REG_LIFTOFF_SLIDER2_POSITION 0xB3 |
|
#define | CAPTOUCH5_REG_SYNC_COUNTER0 0xB9 |
|
#define | CAPTOUCH5_REG_DIFFERENCE_COUNT_SENSOR0 0xBA |
|
#define | CAPTOUCH5_REG_DIFFERENCE_COUNT_SENSOR1 0xBC |
|
#define | CAPTOUCH5_REG_DIFFERENCE_COUNT_SENSOR2 0xBE |
|
#define | CAPTOUCH5_REG_DIFFERENCE_COUNT_SENSOR3 0xC0 |
|
#define | CAPTOUCH5_REG_DIFFERENCE_COUNT_SENSOR4 0xC2 |
|
#define | CAPTOUCH5_REG_DIFFERENCE_COUNT_SENSOR5 0xC4 |
|
#define | CAPTOUCH5_REG_DIFFERENCE_COUNT_SENSOR6 0xC6 |
|
#define | CAPTOUCH5_REG_DIFFERENCE_COUNT_SENSOR7 0xC8 |
|
#define | CAPTOUCH5_REG_DIFFERENCE_COUNT_SENSOR8 0xCA |
|
#define | CAPTOUCH5_REG_DIFFERENCE_COUNT_SENSOR9 0xCC |
|
#define | CAPTOUCH5_REG_DIFFERENCE_COUNT_SENSOR10 0xCE |
|
#define | CAPTOUCH5_REG_DIFFERENCE_COUNT_SENSOR11 0xD0 |
|
#define | CAPTOUCH5_REG_DIFFERENCE_COUNT_SENSOR12 0xD2 |
|
#define | CAPTOUCH5_REG_DIFFERENCE_COUNT_SENSOR13 0xD4 |
|
#define | CAPTOUCH5_REG_DIFFERENCE_COUNT_SENSOR14 0xD6 |
|
#define | CAPTOUCH5_REG_DIFFERENCE_COUNT_SENSOR15 0xD8 |
|
#define | CAPTOUCH5_REG_SYNC_COUNTER1 0xDB |
|
#define | CAPTOUCH5_REG_DEBUG_SENSOR_ID 0xDC |
|
#define | CAPTOUCH5_REG_DEBUG_CP 0xDD |
|
#define | CAPTOUCH5_REG_DIFFERENCE_COUNT0 0xDE |
|
#define | CAPTOUCH5_REG_DEBUG_BASELINE0 0xE0 |
|
#define | CAPTOUCH5_REG_DEBUG_RAW_COUNT0 0xE2 |
|
#define | CAPTOUCH5_REG_DEBUG_AVG_RAW_COUNT0 0xE4 |
|
#define | CAPTOUCH5_REG_SYNC_COUNTER2 0xE7 |
|
#define | CAPTOUCH5_BUTTON_PRESSED 1 |
|
#define | CAPTOUCH5_BUTTON_NOT_PRESSED 0 |
|
#define | CAPTOUCH5_CFG0_IIR_FILTER_ENABLED 1 |
|
#define | CAPTOUCH5_CFG0_IIR_FILTER_DISABLED 1 |
|
#define | CAPTOUCH5_CFG0_MED_FILTER_ENABLED 1 |
|
#define | CAPTOUCH5_CFG0_MED_FILTER_DISABLED 1 |
|
#define | CAPTOUCH5_CFG1_SYS_DIAGNOSTIC_ENABLED 1 |
|
#define | CAPTOUCH5_CFG1_SYS_DIAGNOSTIC_DISABLED 1 |
|
#define | CAPTOUCH5_CFG2_SHIELD_ENABLED 1 |
|
#define | CAPTOUCH5_CFG2_SHIELD_DISABLED 0 |
|
#define | CAPTOUCH5_CFG2_GUARD_SENS_ENABLED 1 |
|
#define | CAPTOUCH5_CFG2_GUARD_SENS_DISABLED 0 |
|
#define | CAPTOUCH5_CFG2_EMC_ENABLED 1 |
|
#define | CAPTOUCH5_CFG2_EMC_DISABLED 0 |
|
#define | CAPTOUCH5_CFG2_AUTOMATIC_THRESHOLD_ENABLED 1 |
|
#define | CAPTOUCH5_CFG2_AUTOMATIC_THRESHOLD_DISABLED 0 |
|
#define | CAPTOUCH5_CFG2_BUTTON_SLIDER_AUTO_RESET_DISABLED 0 |
|
#define | CAPTOUCH5_CFG2_BUTTON_SLIDER_AUTO_RESET_ENABLED_5_SEC 1 |
|
#define | CAPTOUCH5_CFG2_BUTTON_SLIDER_AUTO_RESET_ENABLED_20_SEC 2 |
|
#define | CAPTOUCH5_CFG2_PROXIMIYU_AUTO_RESET_DISABLED 0 |
|
#define | CAPTOUCH5_CFG2_PROXIMIYU_AUTO_RESET_ENABLED_5_SEC 1 |
|
#define | CAPTOUCH5_CFG2_PROXIMIYU_AUTO_RESET_ENABLED_20_SEC 2 |
|
#define | CAPTOUCH5_CFG3_POWER_SUPPLY_INTERNALLY 0 |
|
#define | CAPTOUCH5_CFG3_POWER_SUPPLY_EXTERNALLY 1 |
|
#define | CAPTOUCH5_SLIDER_SENS_0p1 0 |
|
#define | CAPTOUCH5_SLIDER_SENS_0p2 1 |
|
#define | CAPTOUCH5_SLIDER_SENS_0p3 2 |
|
#define | CAPTOUCH5_SLIDER_SENS_0p4 3 |
|
#define | CAPTOUCH5_BUTTON_SENS_ENABLED 0xFFFF |
|
#define | CAPTOUCH5_BUTTON_SENS_DISABLED 0x0000 |
|
#define | CAPTOUCH5_DEVICE_ID 2566 |
|
#define | CAPTOUCH5_FAMILY_ID 154 |
|
#define | CAPTOUCH5_ERROR 1 |
|
#define | CAPTOUCH5_NO_ERROR 0 |
|