Ulta Low Power I2C Multi-Sensor: Capacitive Touch, Magnetic Field & Inductive Proximity.
Dependencies: IQS620DisplayTerminal IQS62x mbed
Fork of IQS620_HelloWorld by
Hello World! From Azoteq's IQS620 Ultra Low Power Multi-Sensor
This is an mbed hardware demo program for the Azoteq IQS620 ultra low power multisensor.
More details on the IQS620 (and verified mbed boards) on these component pages:
IQS620 Eval Kit board Connected to mbed LPC1768 board.
IQS620_Init/IQS620_Init.h@11:ec335b94291b, 2017-05-14 (annotated)
- Committer:
- AzqDev
- Date:
- Sun May 14 20:32:32 2017 +0000
- Revision:
- 11:ec335b94291b
- Parent:
- 6:250df5794541
Library update
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AzqDev | 6:250df5794541 | 1 | /* |
AzqDev | 6:250df5794541 | 2 | * This file contains all the necessary settings for the IQS620 and this file can |
AzqDev | 6:250df5794541 | 3 | * be changed from the GUI or edited here |
AzqDev | 6:250df5794541 | 4 | * File: IQS620_init.h |
AzqDev | 6:250df5794541 | 5 | * Author: Azoteq |
AzqDev | 6:250df5794541 | 6 | */ |
AzqDev | 6:250df5794541 | 7 | |
AzqDev | 6:250df5794541 | 8 | #ifndef IQS620_INIT_H |
AzqDev | 6:250df5794541 | 9 | #define IQS620_INIT_H |
AzqDev | 6:250df5794541 | 10 | |
AzqDev | 6:250df5794541 | 11 | /* Change the Prox Sensor Settings 0 */ |
AzqDev | 6:250df5794541 | 12 | /* Memory Map Position 0x40 - 0x4F */ |
AzqDev | 6:250df5794541 | 13 | #define PXS_SETTINGS0_0 0x01 |
AzqDev | 6:250df5794541 | 14 | #define PXS_SETTINGS0_1 0x02 |
AzqDev | 6:250df5794541 | 15 | #define PXS_SETTINGS0_2 0x03 |
AzqDev | 6:250df5794541 | 16 | #define PXS_SETTINGS0_3 0x57 |
AzqDev | 6:250df5794541 | 17 | #define PXS_SETTINGS0_4 0x57 |
AzqDev | 6:250df5794541 | 18 | #define PXS_SETTINGS0_5 0x1F |
AzqDev | 6:250df5794541 | 19 | #define PXS_SETTINGS0_6 0x58 |
AzqDev | 6:250df5794541 | 20 | #define PXS_SETTINGS0_7 0xD0 |
AzqDev | 6:250df5794541 | 21 | #define PXS_SETTINGS0_8 0x10 |
AzqDev | 6:250df5794541 | 22 | #define PXS_SETTINGS0_9 0x06 |
AzqDev | 6:250df5794541 | 23 | #define PXS_SETTINGS0_10 0x06 |
AzqDev | 6:250df5794541 | 24 | #define PXS_SETTINGS0_11 0x06 |
AzqDev | 6:250df5794541 | 25 | |
AzqDev | 6:250df5794541 | 26 | /* Change the Prox Sensor Settings 1 */ |
AzqDev | 6:250df5794541 | 27 | /* Memory Map Position 0x50 - 0x59 */ |
AzqDev | 6:250df5794541 | 28 | #define PXS_SETTINGS1_0 0x00 |
AzqDev | 6:250df5794541 | 29 | #define PXS_SETTINGS1_1 0x01 |
AzqDev | 6:250df5794541 | 30 | #define PXS_SETTINGS1_2 0xD1 |
AzqDev | 6:250df5794541 | 31 | #define PXS_SETTINGS1_3 0xA0 |
AzqDev | 6:250df5794541 | 32 | #define PXS_SETTINGS1_4 0xAA |
AzqDev | 6:250df5794541 | 33 | #define PXS_SETTINGS1_5 0x42 |
AzqDev | 6:250df5794541 | 34 | #define PXS_SETTINGS1_6 0x03 |
AzqDev | 6:250df5794541 | 35 | #define PXS_SETTINGS1_7 0x0C |
AzqDev | 6:250df5794541 | 36 | |
AzqDev | 6:250df5794541 | 37 | /* Change the Prox UI Settings */ |
AzqDev | 6:250df5794541 | 38 | /* Memory Map Position 0x60 - 0x68 */ |
AzqDev | 6:250df5794541 | 39 | #define PXS_UI_SETTINGS_0 0x14 |
AzqDev | 6:250df5794541 | 40 | #define PXS_UI_SETTINGS_1 0x28 |
AzqDev | 6:250df5794541 | 41 | #define PXS_UI_SETTINGS_2 0x14 |
AzqDev | 6:250df5794541 | 42 | #define PXS_UI_SETTINGS_3 0x28 |
AzqDev | 6:250df5794541 | 43 | #define PXS_UI_SETTINGS_4 0x14 |
AzqDev | 6:250df5794541 | 44 | #define PXS_UI_SETTINGS_5 0x28 |
AzqDev | 6:250df5794541 | 45 | #define PXS_UI_SETTINGS_6 0x28 |
AzqDev | 6:250df5794541 | 46 | |
AzqDev | 6:250df5794541 | 47 | /* Change the SAR UI Settings */ |
AzqDev | 6:250df5794541 | 48 | /* Memory Map Position 0x70 - 0x75 */ |
AzqDev | 6:250df5794541 | 49 | #define SAR_UI_SETTINGS_0 0x14 |
AzqDev | 6:250df5794541 | 50 | #define SAR_UI_SETTINGS_1 0x28 |
AzqDev | 6:250df5794541 | 51 | #define SAR_UI_SETTINGS_2 0x05 |
AzqDev | 6:250df5794541 | 52 | #define SAR_UI_SETTINGS_3 0x14 |
AzqDev | 6:250df5794541 | 53 | #define SAR_UI_SETTINGS_4 0x28 |
AzqDev | 6:250df5794541 | 54 | #define SAR_UI_SETTINGS_5 0x28 |
AzqDev | 6:250df5794541 | 55 | |
AzqDev | 6:250df5794541 | 56 | /* Change the Metal Detect UI Settings */ |
AzqDev | 6:250df5794541 | 57 | /* Memory Map Position 0x80 - 0x83 */ |
AzqDev | 6:250df5794541 | 58 | #define METAL_DETECT_UI_SETTINGS_0 0xA2 |
AzqDev | 6:250df5794541 | 59 | #define METAL_DETECT_UI_SETTINGS_1 0x0A |
AzqDev | 6:250df5794541 | 60 | #define METAL_DETECT_UI_SETTINGS_2 0x14 |
AzqDev | 6:250df5794541 | 61 | #define METAL_DETECT_UI_SETTINGS_3 0x28 |
AzqDev | 6:250df5794541 | 62 | |
AzqDev | 6:250df5794541 | 63 | /* Change the HALL Sensor Settings */ |
AzqDev | 6:250df5794541 | 64 | /* Memory Map Position 0x90 - 0x93 */ |
AzqDev | 6:250df5794541 | 65 | #define HALL_SENSOR_SETTINGS_0 0x03 |
AzqDev | 6:250df5794541 | 66 | #define HALL_SENSOR_SETTINGS_1 0x50 |
AzqDev | 6:250df5794541 | 67 | #define HALL_SENSOR_SETTINGS_2 0x30 |
AzqDev | 6:250df5794541 | 68 | #define HALL_SENSOR_SETTINGS_3 0x48 |
AzqDev | 6:250df5794541 | 69 | |
AzqDev | 6:250df5794541 | 70 | /* Change the HALL Switch UI Settings */ |
AzqDev | 6:250df5794541 | 71 | /* Memory Map Position 0xA0 - 0xA2 */ |
AzqDev | 6:250df5794541 | 72 | #define HALL_UI_SETTINGS_0 0x00 |
AzqDev | 6:250df5794541 | 73 | #define HALL_UI_SETTINGS_1 0x19 |
AzqDev | 6:250df5794541 | 74 | #define HALL_UI_SETTINGS_2 0x19 |
AzqDev | 6:250df5794541 | 75 | |
AzqDev | 6:250df5794541 | 76 | /* Change the Temperature UI Settings */ |
AzqDev | 6:250df5794541 | 77 | /* Memory Map Position 0xC0 - 0xC3 */ |
AzqDev | 6:250df5794541 | 78 | #define TEMP_UI_SETTINGS_0 0x00 |
AzqDev | 6:250df5794541 | 79 | #define TEMP_UI_SETTINGS_1 0x08 |
AzqDev | 6:250df5794541 | 80 | #define TEMP_UI_SETTINGS_2 0x79 |
AzqDev | 6:250df5794541 | 81 | #define TEMP_UI_SETTINGS_3 0xFF |
AzqDev | 6:250df5794541 | 82 | |
AzqDev | 6:250df5794541 | 83 | /* Change the Device & PMU Settings */ |
AzqDev | 6:250df5794541 | 84 | /* Memory Map Position 0xD0 - 0xD7 */ |
AzqDev | 6:250df5794541 | 85 | #define SYSTEM_SETTINGS 0x08 |
AzqDev | 6:250df5794541 | 86 | #define ACTIVE_CHS 0x3F |
AzqDev | 6:250df5794541 | 87 | #define PMU_SETTINGS 0x03 |
AzqDev | 6:250df5794541 | 88 | #define REPORT_RATES_TIMINGS_0 0x10 |
AzqDev | 6:250df5794541 | 89 | #define REPORT_RATES_TIMINGS_1 0x64 |
AzqDev | 6:250df5794541 | 90 | #define REPORT_RATES_TIMINGS_2 0x0A |
AzqDev | 6:250df5794541 | 91 | #define REPORT_RATES_TIMINGS_3 0x14 |
AzqDev | 6:250df5794541 | 92 | #define GLOBAL_EVENT_MASK 0x00 |
AzqDev | 6:250df5794541 | 93 | #define PWM_DUTY_CYCLE 0x00 |
AzqDev | 6:250df5794541 | 94 | |
AzqDev | 6:250df5794541 | 95 | #endif /* IQS620_INIT_H */ |