Internal addresses, registers, constants for the Si114x sensors family.
Internal addresses, registers, constants for the Si114x sensor.
- Author
- Alexandre Abadie alexa.nosp@m.ndre.nosp@m..abad.nosp@m.ie@i.nosp@m.nria..nosp@m.fr
Definition in file si114x_internals.h.
|
#define | SI114X_REG_PART_ID (0x00) |
|
#define | SI114X_REG_REV_ID (0x01) |
|
#define | SI114X_REG_SEQ_ID (0x02) |
|
#define | SI114X_REG_INT_CFG (0x03) |
|
#define | SI114X_REG_IRQ_ENABLE (0x04) |
|
#define | SI114X_REG_IRQ_MODE1 (0x05) |
|
#define | SI114X_REG_IRQ_MODE2 (0x06) |
|
#define | SI114X_REG_HW_KEY (0x07) |
|
#define | SI114X_REG_MEAS_RATE0 (0x08) |
|
#define | SI114X_REG_MEAS_RATE1 (0x09) |
|
#define | SI114X_REG_PS_LED21 (0x0F) |
|
#define | SI114X_REG_PS_LED3 (0x10) |
|
#define | SI114X_REG_UCOEF0 (0x13) |
|
#define | SI114X_REG_UCOEF1 (0x14) |
|
#define | SI114X_REG_UCOEF2 (0x15) |
|
#define | SI114X_REG_UCOEF3 (0x16) |
|
#define | SI114X_REG_PARAM_WR (0x17) |
|
#define | SI114X_REG_COMMAND (0x18) |
|
#define | SI114X_REG_RESPONSE (0x20) |
|
#define | SI114X_REG_IRQ_STATUS (0x21) |
|
#define | SI114X_REG_ALS_VIS_DATA0 (0x22) |
|
#define | SI114X_REG_ALS_VIS_DATA1 (0x23) |
|
#define | SI114X_REG_ALS_IR_DATA0 (0x24) |
|
#define | SI114X_REG_ALS_IR_DATA1 (0x25) |
|
#define | SI114X_REG_PS1_DATA0 (0x26) |
|
#define | SI114X_REG_PS1_DATA1 (0x27) |
|
#define | SI114X_REG_PS2_DATA0 (0x28) |
|
#define | SI114X_REG_PS2_DATA1 (0x29) |
|
#define | SI114X_REG_PS3_DATA0 (0x2A) |
|
#define | SI114X_REG_PS3_DATA1 (0x2B) |
|
#define | SI114X_REG_UV_INDEX0 (0x2C) |
|
#define | SI114X_REG_UV_INDEX1 (0x2D) |
|
#define | SI114X_REG_PARAM_RD (0x2E) |
|
#define | SI114X_REG_CHIP_STAT (0x30) |
|
|
- Note
- These parameter can be accessed indirectly using PARAM_QUERY or PARAM_SET commands.
|
#define | SI114X_I2C_ADDR (0x00) |
|
#define | SI114X_PARAM_CHLIST (0x01) |
|
#define | SI114X_PARAM_CHLIST_ENUV (0x80) |
|
#define | SI114X_PARAM_CHLIST_ENAUX (0x40) |
|
#define | SI114X_PARAM_CHLIST_ENALSIR (0x20) |
|
#define | SI114X_PARAM_CHLIST_ENALSVIS (0x10) |
|
#define | SI114X_PARAM_CHLIST_ENPS1 (0x01) |
|
#define | SI114X_PARAM_CHLIST_ENPS2 (0x02) |
|
#define | SI114X_PARAM_CHLIST_ENPS3 (0x04) |
|
#define | SI114X_PARAM_PSLED12SEL (0x02) |
|
#define | SI114X_PARAM_PSLED12SEL_PS2NONE (0x00) |
|
#define | SI114X_PARAM_PSLED12SEL_PS2LED1 (0x10) |
|
#define | SI114X_PARAM_PSLED12SEL_PS2LED2 (0x20) |
|
#define | SI114X_PARAM_PSLED12SEL_PS2LED3 (0x40) |
|
#define | SI114X_PARAM_PSLED12SEL_PS1NONE (0x00) |
|
#define | SI114X_PARAM_PSLED12SEL_PS1LED1 (0x01) |
|
#define | SI114X_PARAM_PSLED12SEL_PS1LED2 (0x02) |
|
#define | SI114X_PARAM_PSLED12SEL_PS1LED3 (0x04) |
|
#define | SI114X_PARAM_PSLED3SEL (0x03) |
|
#define | SI114X_PARAM_PSENCODE (0x05) |
|
#define | SI114X_PARAM_ALSENCODE (0x06) |
|
#define | SI114X_PARAM_PS1ADCMUX (0x07) |
|
#define | SI114X_PARAM_PS2ADCMUX (0x08) |
|
#define | SI114X_PARAM_PS3ADCMUX (0x09) |
|
#define | SI114X_PARAM_PSADCOUNTER (0x0A) |
|
#define | SI114X_PARAM_PSADCGAIN (0x0B) |
|
#define | SI114X_PARAM_PSADCMISC (0x0C) |
|
#define | SI114X_PARAM_PSADCMISC_RANGE (0x20) |
|
#define | SI114X_PARAM_PSADCMISC_PSMODE (0x04) |
|
#define | SI114X_PARAM_ALSIRADCMUX (0x0E) |
|
#define | SI114X_PARAM_AUXADCMUX (0x0F) |
|
#define | SI114X_PARAM_ALSVISADCOUNTER (0x10) |
|
#define | SI114X_PARAM_ALSVISADCGAIN (0x11) |
|
#define | SI114X_PARAM_ALSVISADCMISC (0x12) |
|
#define | SI114X_PARAM_ALSVISADCMISC_VISRANGE (0x20) |
|
#define | SI114X_PARAM_ALSIRADCOUNTER (0x1D) |
|
#define | SI114X_PARAM_ALSIRADCGAIN (0x1E) |
|
#define | SI114X_PARAM_ALSIRADCMISC (0x1F) |
|
#define | SI114X_PARAM_ALSIRADCMISC_RANGE (0x20) |
|
#define | SI114X_PARAM_ADCMUX_SMALLIR (0x00) |
|
#define | SI114X_PARAM_ADCMUX_LARGEIR (0x03) |
|