Searched refs:ADC_FRAC_BITS (Results 1 – 1 of 1) sorted by relevance
44 #define ADC_FRAC_BITS (14) macro47 #define FRAC10K(f) (((f) * (1L << (ADC_FRAC_BITS))) / (10000))456 ratio = ch0 ? ((ch1 << ADC_FRAC_BITS) / ch0) : ULONG_MAX; in adc_to_lux()463 return (unsigned int) (lux >> ADC_FRAC_BITS); in adc_to_lux()