36 #ifndef AMBIENT8_CLICK_H
37 #define AMBIENT8_CLICK_H
49 #define LTR303ALS_MODE LTR303ALS_MODE_ONE_SHOT
60 #define AMBIENT8_DEVICE_ADDRESS 0x29
63 #define LTR303ALS_T_ACTIVE 10
64 #define LTR303ALS_T_POWERUP 100
67 #define LTR303ALS_PARTID 0xA0
68 #define LTR303ALS_MANFID 0x05
91 #define LTR303ALS_MODE_STANDBY 0x00
92 #define LTR303ALS_MODE_ACTIVE 0x01
93 #define LTR303ALS_SW_RESET 0x02
94 #define LTR303ALS_GAIN_1X 0x00
95 #define LTR303ALS_GAIN_2X 0x04
96 #define LTR303ALS_GAIN_4X 0x08
97 #define LTR303ALS_GAIN_8X 0x0C
98 #define LTR303ALS_GAIN_48X 0x18
99 #define LTR303ALS_GAIN_96X 0x1C
102 #define LTR303ALS_DATA_VALID 0x80
103 #define LTR303ALS_DATA_STATUS 0x04
107 #define LTR303ALS_TMEAS_50 0x00
108 #define LTR303ALS_TMEAS_100 0x01
109 #define LTR303ALS_TMEAS_200 0x02
110 #define LTR303ALS_TMEAS_500 0x03
111 #define LTR303ALS_TMEAS_1000 0x04
112 #define LTR303ALS_TMEAS_2000 0x05
114 #define LTR303ALS_TINT_50 0x08
115 #define LTR303ALS_TINT_100 0x00
116 #define LTR303ALS_TINT_150 0x20
117 #define LTR303ALS_TINT_200 0x10
118 #define LTR303ALS_TINT_250 0x28
119 #define LTR303ALS_TINT_300 0x30
120 #define LTR303ALS_TINT_350 0x38
121 #define LTR303ALS_TINT_400 0x18
124 #define LTR303ALS_GAIN 1
125 #define LTR303ALS_TINT 100
126 #define LTR303ALS_TMEAS 200
uint8_t MIKROSDK_AMBIENT8_Initialise(void)
Definition: ambient8.c:264
uint8_t MIKROSDK_AMBIENT8_Reinitialise(void)
Definition: ambient8.c:302
sif_ltr303als_reg_address
Definition: ambient8_click.h:72
ltr303als_mode
Definition: ambient8_click.h:43
@ LTR303ALS_MODE_ONE_SHOT
Definition: ambient8_click.h:44
@ LTR303ALS_MODE_CONTINUOUS
Definition: ambient8_click.h:45
uint8_t MIKROSDK_AMBIENT8_Reconfigure(uint16_t meastime, uint16_t inttime, uint8_t gain)
Definition: ambient8.c:318
uint8_t MIKROSDK_AMBIENT8_Acquire(uint32_t *illuminance_ch0, uint32_t *illuminance_ch1, uint32_t *illuminance_ambient)
Definition: ambient8.c:332
ambient8_status
Definition: ambient8_click.h:53
@ AMBIENT8_ST_FAIL
Definition: ambient8_click.h:55
@ AMBIENT8_ST_INVALID
Definition: ambient8_click.h:56
@ AMBIENT8_ST_OK
Definition: ambient8_click.h:54
@ LTR303ALS_REG_THRES_LOW_1
Definition: ambient8_click.h:86
@ LTR303ALS_REG_DATA_CH1_0
Definition: ambient8_click.h:77
@ LTR303ALS_REG_THRES_UP_0
Definition: ambient8_click.h:83
@ LTR303ALS_REG_INT_PERS
Definition: ambient8_click.h:87
@ LTR303ALS_REG_CONTROL
Definition: ambient8_click.h:73
@ LTR303ALS_REG_DATA_CH0_1
Definition: ambient8_click.h:80
@ LTR303ALS_REG_MEAS_RATE
Definition: ambient8_click.h:74
@ LTR303ALS_REG_DATA_CH1_1
Definition: ambient8_click.h:78
@ LTR303ALS_REG_DATA_CH0_0
Definition: ambient8_click.h:79
@ LTR303ALS_REG_PART_ID
Definition: ambient8_click.h:75
@ LTR303ALS_REG_STATUS
Definition: ambient8_click.h:81
@ LTR303ALS_REG_THRES_LOW_0
Definition: ambient8_click.h:85
@ LTR303ALS_REG_THRES_UP_1
Definition: ambient8_click.h:84
@ LTR303ALS_REG_INTERRUPT
Definition: ambient8_click.h:82
@ LTR303ALS_REG_MANUFAC_ID
Definition: ambient8_click.h:76