Internal addresses, registers, constants for the Si114x sensors family. More...
Internal addresses, registers, constants for the Si114x sensors family.
Internal addresses, registers, constants for the Si114x sensor.
Definition in file si114x_internals.h.
Go to the source code of this file.
#define | SI114X_ADDR (0x60) |
Si114x I2C address. | |
Si114x commands | |
#define | SI114X_PARAM_QUERY (0x80) |
#define | SI114X_PARAM_SET (0xA0) |
#define | SI114X_NOP (0x00) |
#define | SI114X_RESET (0x01) |
#define | SI114X_BUSADDR (0x02) |
#define | SI114X_PS_FORCE (0x05) |
#define | SI114X_ALS_FORCE (0x06) |
#define | SI114X_PS_ALS_FORCE (0x07) |
#define | SI114X_PS_PAUSE (0x09) |
#define | SI114X_ALS_PAUSE (0x0A) |
#define | SI114X_PS_ALS_PAUSE (0x0B) |
#define | SI114X_PS_AUTO (0x0D) |
#define | SI114X_ALS_AUTO (0x0E) |
#define | SI114X_PS_ALS_AUTO (0x0F) |
#define | SI114X_GET_CAL (0x12) |
Si114x response register error codes | |
#define | SI114X_NO_ERROR (0x00) |
#define | SI114X_INVALID_SETTING (0x80) |
#define | SI114X_PS1_ADC_OVERFLOW (0x88) |
#define | SI114X_PS2_ADC_OVERFLOW (0x89) |
#define | SI114X_PS3_ADC_OVERFLOW (0x8A) |
#define | SI114X_ALS_VIS_ADC_OVERFLOW (0x8C) |
#define | SI114X_ALS_IR_ADC_OVERFLOW (0x8D) |
#define | SI114X_UV_ADC_OVERFLOW (0x8E) |
Si114x constants | |
#define | SI1145_ID (0x45) |
#define | SI1146_ID (0x46) |
#define | SI1147_ID (0x47) |
#define | SI114X_STARTUP_TIME_MS (25UL) |
startup time (25ms) | |
#define | SI114X_WAIT_10MS (10UL) /* 10ms */ |
#define | SI114X_INIT_VALUE (0x17) |
#define | SI114X_UCOEF0_DEFAULT (0x29) |
#define | SI114X_UCOEF1_DEFAULT (0x89) |
#define | SI114X_UCOEF2_DEFAULT (0x02) |
#define | SI114X_UCOEF3_DEFAULT (0x00) |
#define | SI114X_ADC_REC_CLK (0x70) /* 511 ADC Clock */ |
Si114x register bits | |
#define | SI114X_EN_UV (0x80) |
#define | SI114X_EN_AUX (0x40) |
#define | SI114X_EN_ALS_IR (0x20) |
#define | SI114X_EN_ALS_VIS (0x10) |
#define | SI114X_EN_PS3_IE (0x10) |
#define | SI114X_EN_PS2_IE (0x08) |
#define | SI114X_EN_PS1_IE (0x04) |
#define | SI114X_EN_ALS_IE (0x01) |
#define | SI114X_INTCFG_INTOE (0x01) |
#define | SI114X_INTCFG_INTMODE (0x02) |
#define | SI114X_PS3_ALIGN (0x40) |
#define | SI114X_PS2_ALIGN (0x20) |
#define | SI114X_PS1_ALIGN (0x10) |
#define | SI114X_ALS_IR_ALIGN (0x20) |
#define | SI114X_ALS_VIS_ALIGN (0x10) |
#define | SI114X_PS_RANGE (0x20) |
#define | SI114X_PS_ADC_MODE (0x04) |
#define | SI114X_VIS_RANGE (0x20) |
#define | SI114X_IR_RANGE (0x20) |
#define SI1145_ID (0x45) |
Definition at line 161 of file si114x_internals.h.
#define SI1146_ID (0x46) |
Definition at line 162 of file si114x_internals.h.
#define SI1147_ID (0x47) |
Definition at line 163 of file si114x_internals.h.
#define SI114X_ADC_REC_CLK (0x70) /* 511 ADC Clock */ |
Definition at line 171 of file si114x_internals.h.
#define SI114X_ADDR (0x60) |
Si114x I2C address.
Definition at line 30 of file si114x_internals.h.
#define SI114X_ALS_AUTO (0x0E) |
Definition at line 48 of file si114x_internals.h.
#define SI114X_ALS_FORCE (0x06) |
Definition at line 42 of file si114x_internals.h.
#define SI114X_ALS_IR_ADC_OVERFLOW (0x8D) |
Definition at line 103 of file si114x_internals.h.
#define SI114X_ALS_IR_ALIGN (0x20) |
Definition at line 194 of file si114x_internals.h.
#define SI114X_ALS_PAUSE (0x0A) |
Definition at line 45 of file si114x_internals.h.
#define SI114X_ALS_VIS_ADC_OVERFLOW (0x8C) |
Definition at line 102 of file si114x_internals.h.
#define SI114X_ALS_VIS_ALIGN (0x10) |
Definition at line 195 of file si114x_internals.h.
#define SI114X_BUSADDR (0x02) |
Definition at line 40 of file si114x_internals.h.
#define SI114X_EN_ALS_IE (0x01) |
Definition at line 186 of file si114x_internals.h.
#define SI114X_EN_ALS_IR (0x20) |
Definition at line 180 of file si114x_internals.h.
#define SI114X_EN_ALS_VIS (0x10) |
Definition at line 181 of file si114x_internals.h.
#define SI114X_EN_AUX (0x40) |
Definition at line 179 of file si114x_internals.h.
#define SI114X_EN_PS1_IE (0x04) |
Definition at line 185 of file si114x_internals.h.
#define SI114X_EN_PS2_IE (0x08) |
Definition at line 184 of file si114x_internals.h.
#define SI114X_EN_PS3_IE (0x10) |
Definition at line 183 of file si114x_internals.h.
#define SI114X_EN_UV (0x80) |
Definition at line 178 of file si114x_internals.h.
#define SI114X_GET_CAL (0x12) |
Definition at line 50 of file si114x_internals.h.
#define SI114X_I2C_ADDR (0x00) |
Definition at line 114 of file si114x_internals.h.
#define SI114X_INIT_VALUE (0x17) |
Definition at line 166 of file si114x_internals.h.
#define SI114X_INTCFG_INTMODE (0x02) |
Definition at line 189 of file si114x_internals.h.
#define SI114X_INTCFG_INTOE (0x01) |
Definition at line 188 of file si114x_internals.h.
#define SI114X_INVALID_SETTING (0x80) |
Definition at line 98 of file si114x_internals.h.
#define SI114X_IR_RANGE (0x20) |
Definition at line 199 of file si114x_internals.h.
#define SI114X_NO_ERROR (0x00) |
Definition at line 97 of file si114x_internals.h.
#define SI114X_NOP (0x00) |
Definition at line 38 of file si114x_internals.h.
#define SI114X_PARAM_ADCMUX_LARGEIR (0x03) |
Definition at line 154 of file si114x_internals.h.
#define SI114X_PARAM_ADCMUX_SMALLIR (0x00) |
Definition at line 153 of file si114x_internals.h.
#define SI114X_PARAM_ALSENCODE (0x06) |
Definition at line 134 of file si114x_internals.h.
#define SI114X_PARAM_ALSIRADCGAIN (0x1E) |
Definition at line 150 of file si114x_internals.h.
#define SI114X_PARAM_ALSIRADCMISC (0x1F) |
Definition at line 151 of file si114x_internals.h.
#define SI114X_PARAM_ALSIRADCMISC_RANGE (0x20) |
Definition at line 152 of file si114x_internals.h.
#define SI114X_PARAM_ALSIRADCMUX (0x0E) |
Definition at line 143 of file si114x_internals.h.
#define SI114X_PARAM_ALSIRADCOUNTER (0x1D) |
Definition at line 149 of file si114x_internals.h.
#define SI114X_PARAM_ALSVISADCGAIN (0x11) |
Definition at line 146 of file si114x_internals.h.
#define SI114X_PARAM_ALSVISADCMISC (0x12) |
Definition at line 147 of file si114x_internals.h.
#define SI114X_PARAM_ALSVISADCMISC_VISRANGE (0x20) |
Definition at line 148 of file si114x_internals.h.
#define SI114X_PARAM_ALSVISADCOUNTER (0x10) |
Definition at line 145 of file si114x_internals.h.
#define SI114X_PARAM_AUXADCMUX (0x0F) |
Definition at line 144 of file si114x_internals.h.
#define SI114X_PARAM_CHLIST (0x01) |
Definition at line 115 of file si114x_internals.h.
#define SI114X_PARAM_CHLIST_ENALSIR (0x20) |
Definition at line 118 of file si114x_internals.h.
#define SI114X_PARAM_CHLIST_ENALSVIS (0x10) |
Definition at line 119 of file si114x_internals.h.
#define SI114X_PARAM_CHLIST_ENAUX (0x40) |
Definition at line 117 of file si114x_internals.h.
#define SI114X_PARAM_CHLIST_ENPS1 (0x01) |
Definition at line 120 of file si114x_internals.h.
#define SI114X_PARAM_CHLIST_ENPS2 (0x02) |
Definition at line 121 of file si114x_internals.h.
#define SI114X_PARAM_CHLIST_ENPS3 (0x04) |
Definition at line 122 of file si114x_internals.h.
#define SI114X_PARAM_CHLIST_ENUV (0x80) |
Definition at line 116 of file si114x_internals.h.
#define SI114X_PARAM_PS1ADCMUX (0x07) |
Definition at line 135 of file si114x_internals.h.
#define SI114X_PARAM_PS2ADCMUX (0x08) |
Definition at line 136 of file si114x_internals.h.
#define SI114X_PARAM_PS3ADCMUX (0x09) |
Definition at line 137 of file si114x_internals.h.
#define SI114X_PARAM_PSADCGAIN (0x0B) |
Definition at line 139 of file si114x_internals.h.
#define SI114X_PARAM_PSADCMISC (0x0C) |
Definition at line 140 of file si114x_internals.h.
#define SI114X_PARAM_PSADCMISC_PSMODE (0x04) |
Definition at line 142 of file si114x_internals.h.
#define SI114X_PARAM_PSADCMISC_RANGE (0x20) |
Definition at line 141 of file si114x_internals.h.
#define SI114X_PARAM_PSADCOUNTER (0x0A) |
Definition at line 138 of file si114x_internals.h.
#define SI114X_PARAM_PSENCODE (0x05) |
Definition at line 133 of file si114x_internals.h.
#define SI114X_PARAM_PSLED12SEL (0x02) |
Definition at line 123 of file si114x_internals.h.
#define SI114X_PARAM_PSLED12SEL_PS1LED1 (0x01) |
Definition at line 129 of file si114x_internals.h.
#define SI114X_PARAM_PSLED12SEL_PS1LED2 (0x02) |
Definition at line 130 of file si114x_internals.h.
#define SI114X_PARAM_PSLED12SEL_PS1LED3 (0x04) |
Definition at line 131 of file si114x_internals.h.
#define SI114X_PARAM_PSLED12SEL_PS1NONE (0x00) |
Definition at line 128 of file si114x_internals.h.
#define SI114X_PARAM_PSLED12SEL_PS2LED1 (0x10) |
Definition at line 125 of file si114x_internals.h.
#define SI114X_PARAM_PSLED12SEL_PS2LED2 (0x20) |
Definition at line 126 of file si114x_internals.h.
#define SI114X_PARAM_PSLED12SEL_PS2LED3 (0x40) |
Definition at line 127 of file si114x_internals.h.
#define SI114X_PARAM_PSLED12SEL_PS2NONE (0x00) |
Definition at line 124 of file si114x_internals.h.
#define SI114X_PARAM_PSLED3SEL (0x03) |
Definition at line 132 of file si114x_internals.h.
#define SI114X_PARAM_QUERY (0x80) |
Definition at line 36 of file si114x_internals.h.
#define SI114X_PARAM_SET (0xA0) |
Definition at line 37 of file si114x_internals.h.
#define SI114X_PS1_ADC_OVERFLOW (0x88) |
Definition at line 99 of file si114x_internals.h.
#define SI114X_PS1_ALIGN (0x10) |
Definition at line 193 of file si114x_internals.h.
#define SI114X_PS2_ADC_OVERFLOW (0x89) |
Definition at line 100 of file si114x_internals.h.
#define SI114X_PS2_ALIGN (0x20) |
Definition at line 192 of file si114x_internals.h.
#define SI114X_PS3_ADC_OVERFLOW (0x8A) |
Definition at line 101 of file si114x_internals.h.
#define SI114X_PS3_ALIGN (0x40) |
Definition at line 191 of file si114x_internals.h.
#define SI114X_PS_ADC_MODE (0x04) |
Definition at line 197 of file si114x_internals.h.
#define SI114X_PS_ALS_AUTO (0x0F) |
Definition at line 49 of file si114x_internals.h.
#define SI114X_PS_ALS_FORCE (0x07) |
Definition at line 43 of file si114x_internals.h.
#define SI114X_PS_ALS_PAUSE (0x0B) |
Definition at line 46 of file si114x_internals.h.
#define SI114X_PS_AUTO (0x0D) |
Definition at line 47 of file si114x_internals.h.
#define SI114X_PS_FORCE (0x05) |
Definition at line 41 of file si114x_internals.h.
#define SI114X_PS_PAUSE (0x09) |
Definition at line 44 of file si114x_internals.h.
#define SI114X_PS_RANGE (0x20) |
Definition at line 196 of file si114x_internals.h.
#define SI114X_REG_ALS_IR_DATA0 (0x24) |
Definition at line 79 of file si114x_internals.h.
#define SI114X_REG_ALS_IR_DATA1 (0x25) |
Definition at line 80 of file si114x_internals.h.
#define SI114X_REG_ALS_VIS_DATA0 (0x22) |
Definition at line 77 of file si114x_internals.h.
#define SI114X_REG_ALS_VIS_DATA1 (0x23) |
Definition at line 78 of file si114x_internals.h.
#define SI114X_REG_CHIP_STAT (0x30) |
Definition at line 90 of file si114x_internals.h.
#define SI114X_REG_COMMAND (0x18) |
Definition at line 74 of file si114x_internals.h.
#define SI114X_REG_HW_KEY (0x07) |
Definition at line 64 of file si114x_internals.h.
#define SI114X_REG_INT_CFG (0x03) |
Definition at line 60 of file si114x_internals.h.
#define SI114X_REG_IRQ_ENABLE (0x04) |
Definition at line 61 of file si114x_internals.h.
#define SI114X_REG_IRQ_MODE1 (0x05) |
Definition at line 62 of file si114x_internals.h.
#define SI114X_REG_IRQ_MODE2 (0x06) |
Definition at line 63 of file si114x_internals.h.
#define SI114X_REG_IRQ_STATUS (0x21) |
Definition at line 76 of file si114x_internals.h.
#define SI114X_REG_MEAS_RATE0 (0x08) |
Definition at line 65 of file si114x_internals.h.
#define SI114X_REG_MEAS_RATE1 (0x09) |
Definition at line 66 of file si114x_internals.h.
#define SI114X_REG_PARAM_RD (0x2E) |
Definition at line 89 of file si114x_internals.h.
#define SI114X_REG_PARAM_WR (0x17) |
Definition at line 73 of file si114x_internals.h.
#define SI114X_REG_PART_ID (0x00) |
Definition at line 57 of file si114x_internals.h.
#define SI114X_REG_PS1_DATA0 (0x26) |
Definition at line 81 of file si114x_internals.h.
#define SI114X_REG_PS1_DATA1 (0x27) |
Definition at line 82 of file si114x_internals.h.
#define SI114X_REG_PS2_DATA0 (0x28) |
Definition at line 83 of file si114x_internals.h.
#define SI114X_REG_PS2_DATA1 (0x29) |
Definition at line 84 of file si114x_internals.h.
#define SI114X_REG_PS3_DATA0 (0x2A) |
Definition at line 85 of file si114x_internals.h.
#define SI114X_REG_PS3_DATA1 (0x2B) |
Definition at line 86 of file si114x_internals.h.
#define SI114X_REG_PS_LED21 (0x0F) |
Definition at line 67 of file si114x_internals.h.
#define SI114X_REG_PS_LED3 (0x10) |
Definition at line 68 of file si114x_internals.h.
#define SI114X_REG_RESPONSE (0x20) |
Definition at line 75 of file si114x_internals.h.
#define SI114X_REG_REV_ID (0x01) |
Definition at line 58 of file si114x_internals.h.
#define SI114X_REG_SEQ_ID (0x02) |
Definition at line 59 of file si114x_internals.h.
#define SI114X_REG_UCOEF0 (0x13) |
Definition at line 69 of file si114x_internals.h.
#define SI114X_REG_UCOEF1 (0x14) |
Definition at line 70 of file si114x_internals.h.
#define SI114X_REG_UCOEF2 (0x15) |
Definition at line 71 of file si114x_internals.h.
#define SI114X_REG_UCOEF3 (0x16) |
Definition at line 72 of file si114x_internals.h.
#define SI114X_REG_UV_INDEX0 (0x2C) |
Definition at line 87 of file si114x_internals.h.
#define SI114X_REG_UV_INDEX1 (0x2D) |
Definition at line 88 of file si114x_internals.h.
#define SI114X_RESET (0x01) |
Definition at line 39 of file si114x_internals.h.
#define SI114X_STARTUP_TIME_MS (25UL) |
startup time (25ms)
Definition at line 164 of file si114x_internals.h.
#define SI114X_UCOEF0_DEFAULT (0x29) |
Definition at line 167 of file si114x_internals.h.
#define SI114X_UCOEF1_DEFAULT (0x89) |
Definition at line 168 of file si114x_internals.h.
#define SI114X_UCOEF2_DEFAULT (0x02) |
Definition at line 169 of file si114x_internals.h.
#define SI114X_UCOEF3_DEFAULT (0x00) |
Definition at line 170 of file si114x_internals.h.
#define SI114X_UV_ADC_OVERFLOW (0x8E) |
Definition at line 104 of file si114x_internals.h.
#define SI114X_VIS_RANGE (0x20) |
Definition at line 198 of file si114x_internals.h.
#define SI114X_WAIT_10MS (10UL) /* 10ms */ |
Definition at line 165 of file si114x_internals.h.