|
Zephyr API 3.6.99
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
6#ifndef ZEPHYR_INCLUDE_DT_BINDINGS_ADC_ADC_H_
7#define ZEPHYR_INCLUDE_DT_BINDINGS_ADC_ADC_H_
12#define ADC_ACQ_TIME_MICROSECONDS (1)
14#define ADC_ACQ_TIME_NANOSECONDS (2)
16#define ADC_ACQ_TIME_TICKS (3)
18#define ADC_ACQ_TIME(unit, value) (((unit) << 14) | ((value) & BIT_MASK(14)))
20#define ADC_ACQ_TIME_DEFAULT 0
21#define ADC_ACQ_TIME_MAX BIT_MASK(14)
23#define ADC_ACQ_TIME_UNIT(time) (((time) >> 14) & BIT_MASK(2))
24#define ADC_ACQ_TIME_VALUE(time) ((time) & BIT_MASK(14))