Lines Matching full:adc
4 * @brief Backend API for emulated ADC
16 #include <zephyr/drivers/adc.h>
23 * @brief Emulated ADC backend API
24 * @defgroup adc_emul Emulated ADC
28 * Behaviour of emulated ADC is application-defined. As-such, each
31 * - define a Device Tree overlay file to indicate the number of ADC
36 * constant mV value on emulated ADC input
38 * function which will be used to obtain voltage on emulated ADC input
41 * tests/drivers/adc/adc_api/boards/native_sim.overlay
43 * An example of using emulated ADC backend API is in the file
44 * tests/drivers/adc/adc_emul/src/main.c
48 * @brief Type definition of the function which is used to obtain ADC
52 * @param chan ADC channel to sample
54 * @param result The result value which will be set as input for ADC @p chan
57 * @return other as error code which ends ADC context
63 * @brief Set constant mV value input for emulated ADC @p chan
65 * @param dev The emulated ADC device
66 * @param chan The channel of ADC which input is assigned
76 * @brief Set constant raw value input for emulated ADC @p chan
78 * @param dev The emulated ADC device
79 * @param chan The channel of ADC which input is assigned
89 * ADC @p chan
91 * @param dev The emulated ADC device
92 * @param chan The channel of ADC to which @p func is assigned
104 * ADC @p chan
106 * @param dev The emulated ADC device
107 * @param chan The channel of ADC to which @p func is assigned
120 * @param dev The emulated ADC device