File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -21,11 +21,22 @@ int adc_config(int ch);
21
21
22
22
/**
23
23
* Read ADC Channel
24
+ *
25
+ * @note 8910 has 12-bit ADC, whereas MT6261 has 10-bit ADC resolution
26
+ *
24
27
* @param ch [in] ADC Channel to read @ref adcch_e
25
- * @return 12-bit ADC value, If ADC channel is not configured prior to calling this function, return value is unreliable.
28
+ * @return ADC raw value, If ADC channel is not configured prior to calling this function, return value is unreliable.
26
29
*/
27
30
unsigned int adc_read (int ch );
28
31
32
+ /**
33
+ * @brief Read adc channel value in mV
34
+ *
35
+ * @param ch [in] ADC Channel to read @ref adcch_e
36
+ * @return ADC value in millivolts, If ADC channel is not configured prior to calling this function, return value is unreliable.
37
+ */
38
+ unsigned int adc_read_mv (int ch );
39
+
29
40
#ifdef __cplusplus
30
41
}
31
42
#endif
You can’t perform that action at this time.
0 commit comments