Lines Matching refs:cpl
76 double cpl; in tsl2540_channel_get() local
82 cpl = (data->integration_time + 1) * TSL2540_INTEGRATION_TIME_MS; in tsl2540_channel_get()
83 cpl *= data->again; in tsl2540_channel_get()
87 sensor_value_from_double(val, data->count_vis / cpl * in tsl2540_channel_get()
91 sensor_value_from_double(val, data->count_ir / cpl * in tsl2540_channel_get()
171 double cpl; in tsl2540_attr_set() local
175 cpl = ((data->integration_time + 1) * TSL2540_INTEGRATION_TIME_MS); in tsl2540_attr_set()
176 cpl *= data->again; in tsl2540_attr_set()
177 cpl /= (TSL2540_DEVICE_FACTOR * glass_attenuation); in tsl2540_attr_set()
178 thld = sensor_value_to_double(val) * cpl; in tsl2540_attr_set()
179 LOG_DBG("attr: %d, cpl: %g, thld: %x\n", attr, cpl, thld); in tsl2540_attr_set()
189 double cpl; in tsl2540_attr_set() local
193 cpl = ((data->integration_time + 1) * TSL2540_INTEGRATION_TIME_MS); in tsl2540_attr_set()
194 cpl *= data->again; in tsl2540_attr_set()
195 cpl /= (TSL2540_DEVICE_FACTOR * glass_attenuation); in tsl2540_attr_set()
196 thld = sensor_value_to_double(val) * cpl; in tsl2540_attr_set()
197 LOG_DBG("attr: %d, cpl: %g, thld: %x\n", attr, cpl, thld); in tsl2540_attr_set()