Ultra Low Power (5uA) I2C Sensor With Ambient Light Sensing (ALS) + Capacitive Proximity/Touch + Hall Effect Sensor + Inductive Proximity (Metal Detect)

Dependencies:   IQS621DisplayTerminal IQS62x mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers IQS621_Init.h Source File

IQS621_Init.h

00001 /*
00002 * This file contains all the necessary settings for the IQS621 and this file can
00003 * be changed from the GUI or edited here
00004 * File:   IQS621_init.h
00005 * Author: Azoteq
00006 */
00007 
00008 #ifndef IQS621_INIT_H
00009 #define IQS621_INIT_H
00010 
00011 /* Change the Prox Sensor Settings */
00012 /* Memory Map Position 0x40 - 0x4D */
00013 #define PXS_SETTINGS_0                      0x01
00014 #define PXS_SETTINGS_1                      0x01
00015 #define PXS_SETTINGS_2                      0x57
00016 #define PXS_SETTINGS_3                      0x57
00017 #define PXS_SETTINGS_4                      0x18
00018 #define PXS_SETTINGS_5                      0xD0
00019 #define PXS_SETTINGS_6                      0x06
00020 #define PXS_SETTINGS_7                      0x06
00021 #define PXS_SETTINGS_8                      0x00
00022 #define PXS_SETTINGS_9                      0x01
00023 #define PXS_SETTINGS_10                     0xA1
00024 #define PXS_SETTINGS_11                     0x65
00025 #define PXS_SETTINGS_12                     0x44
00026 #define PXS_SETTINGS_13                     0x0C
00027 
00028 /* Change the Prox UI Settings */
00029 /* Memory Map Position 0x50 - 0x54 */
00030 #define PXS_UI_SETTINGS_0                   0x14
00031 #define PXS_UI_SETTINGS_1                   0x20
00032 #define PXS_UI_SETTINGS_2                   0x14
00033 #define PXS_UI_SETTINGS_3                   0x20
00034 #define PXS_UI_SETTINGS_4                   0x28
00035 
00036 /* Change the Metal Detect UI Settings */
00037 /* Memory Map Position 0x60 - 0x63 */
00038 #define METAL_UI_SETTINGS_0                 0x00
00039 #define METAL_UI_SETTINGS_1                 0x01
00040 #define METAL_UI_SETTINGS_2                 0x14
00041 #define METAL_UI_SETTINGS_3                 0x20
00042 
00043 /* Change the Light Sensor Settings */
00044 /* Memory Map Position 0x70 - 0x73 */
00045 #define LIGHT_SENSOR_SETTINGS_0             0x14
00046 #define LIGHT_SENSOR_SETTINGS_1             0x80
00047 #define LIGHT_SENSOR_SETTINGS_2             0x07
00048 #define LIGHT_SENSOR_SETTINGS_3             0x00
00049 
00050 /* Change the ALS UI Settings */
00051 /* Memory Map Position 0x80 - 0x83 */
00052 #define ALS_UI_SETTINGS_0                   0x0A
00053 #define ALS_UI_SETTINGS_1                   0x0A
00054 #define ALS_UI_SETTINGS_2                   0x27
00055 #define ALS_UI_SETTINGS_3                   0x04
00056 
00057 /* Change the HALL Sensor Settings */
00058 /* Memory Map Position 0x90 - 0x93 */
00059 #define HALL_SENSOR_SETTINGS_0              0x03
00060 #define HALL_SENSOR_SETTINGS_1              0x50
00061 #define HALL_SENSOR_SETTINGS_2              0xB0
00062 #define HALL_SENSOR_SETTINGS_3              0x0A
00063 
00064 /* Change the HALL Switch UI Settings */
00065 /* Memory Map Position 0xA0 - 0xA2 */
00066 #define HALL_UI_SETTINGS_0                  0x11
00067 #define HALL_UI_SETTINGS_1                  0x19
00068 #define HALL_UI_SETTINGS_2                  0x19
00069 
00070 /* Change the Temperature UI Settings */
00071 /* Memory Map Position 0xC0 - 0xC3 */
00072 #define TEMP_UI_SETTINGS_0                  0x00
00073 #define TEMP_UI_SETTINGS_1                  0x08
00074 #define TEMP_UI_SETTINGS_2                  0x79
00075 #define TEMP_UI_SETTINGS_3                  0xFF
00076 
00077 /* Change the Device & PMU Settings */
00078 /* Memory Map Position 0xD0 - 0xD7 */
00079 #define SYSTEM_SETTINGS                     0x08
00080 #define ACTIVE_CHS                          0x7F
00081 #define PMU_SETTINGS                        0x03
00082 #define REPORT_RATES_TIMINGS_0              0x10
00083 #define REPORT_RATES_TIMINGS_1              0x64
00084 #define REPORT_RATES_TIMINGS_2              0x0A
00085 #define REPORT_RATES_TIMINGS_3              0x14
00086 #define GLOBAL_EVENT_MASK                   0x00
00087 
00088 #endif  /* IQS621_INIT_H */