22 #ifndef _COBALT_RTDM_ANALOGY_CHANNEL_RANGE_H 23 #define _COBALT_RTDM_ANALOGY_CHANNEL_RANGE_H 134 #define A4L_CHAN_AREF_GROUND 0x1 138 #define A4L_CHAN_AREF_COMMON 0x2 142 #define A4L_CHAN_AREF_DIFF 0x4 146 #define A4L_CHAN_AREF_OTHER 0x8 153 #define A4L_CHAN_GLOBAL 0x10 175 #define A4L_CHAN_GLOBAL_CHANDESC 0 179 #define A4L_CHAN_PERCHAN_CHANDESC 1 196 #define A4L_RNG_GLOBAL 0x8 211 #define RANGE(x,y) {(x * A4L_RNG_FACTOR), (y * A4L_RNG_FACTOR), \ 216 #define RANGE_V(x,y) {(x * A4L_RNG_FACTOR),(y * A4L_RNG_FACTOR), \ 221 #define RANGE_mA(x,y) {(x * A4L_RNG_FACTOR),(y * A4L_RNG_FACTOR), \ 226 #define RANGE_ext(x,y) {(x * A4L_RNG_FACTOR),(y * A4L_RNG_FACTOR), \ 232 unsigned char length;
239 #define A4L_RNG_GLOBAL_RNGDESC 0 243 #define A4L_RNG_PERCHAN_RNGDESC 1 248 unsigned char length;
249 struct a4l_rngtab *rngtabs[];
255 #define RNG_GLOBAL(x) { \ 256 .mode = A4L_RNG_GLOBAL_RNGDESC, \ 261 extern struct a4l_rngdesc a4l_range_bipolar10;
262 extern struct a4l_rngdesc a4l_range_bipolar5;
263 extern struct a4l_rngdesc a4l_range_unipolar10;
264 extern struct a4l_rngdesc a4l_range_unipolar5;
265 extern struct a4l_rngdesc a4l_range_unknown;
266 extern struct a4l_rngdesc a4l_range_fake;
268 #define range_digital a4l_range_unipolar5 Structure describing some channel's characteristics.
Definition: channel_range.h:159
unsigned long flags
Definition: channel_range.h:205
unsigned long flags
Definition: channel_range.h:160
long max
Definition: channel_range.h:204
unsigned long length
Definition: channel_range.h:189
unsigned long mode
Definition: channel_range.h:188
Structure describing a (unique) range.
Definition: channel_range.h:202
long min
Definition: channel_range.h:203
unsigned long nb_bits
Definition: channel_range.h:161
Structure describing a channels set.
Definition: channel_range.h:187
Analogy for Linux, UAPI bits.