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()
175 double cpl; in tsl2540_attr_set() local
179 cpl = ((data->integration_time + 1) * TSL2540_INTEGRATION_TIME_MS); in tsl2540_attr_set()
180 cpl *= data->again; in tsl2540_attr_set()
181 cpl /= (TSL2540_DEVICE_FACTOR * glass_attenuation); in tsl2540_attr_set()
182 thld = sensor_value_to_double(val) * cpl; in tsl2540_attr_set()
183 LOG_DBG("attr: %d, cpl: %g, thld: %x\n", attr, cpl, thld); in tsl2540_attr_set()
193 double cpl; in tsl2540_attr_set() local
197 cpl = ((data->integration_time + 1) * TSL2540_INTEGRATION_TIME_MS); in tsl2540_attr_set()
198 cpl *= data->again; in tsl2540_attr_set()
199 cpl /= (TSL2540_DEVICE_FACTOR * glass_attenuation); in tsl2540_attr_set()
200 thld = sensor_value_to_double(val) * cpl; in tsl2540_attr_set()
201 LOG_DBG("attr: %d, cpl: %g, thld: %x\n", attr, cpl, thld); in tsl2540_attr_set()