Xenomai  3.1
channel_range.h File Reference

Analogy for Linux, channel, range related features. More...

Include dependency graph for channel_range.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  a4l_channel
 Structure describing some channel's characteristics. More...
 
struct  a4l_channels_desc
 Structure describing a channels set. More...
 
struct  a4l_range
 Structure describing a (unique) range. More...
 

Macros

#define A4L_CHAN_GLOBAL   0x10
 Internal use flag (must not be used by driver developer)
 
#define A4L_RNG_GLOBAL   0x8
 Internal use flag (must not be used by driver developer)
 
#define RANGE(x, y)
 Macro to declare a (unique) range with no unit defined.
 
#define RANGE_V(x, y)
 Macro to declare a (unique) range in Volt.
 
#define RANGE_mA(x, y)
 Macro to declare a (unique) range in milliAmpere.
 
#define RANGE_ext(x, y)
 Macro to declare a (unique) range in some external reference.
 
#define A4L_RNG_GLOBAL_RNGDESC   0
 Constant to define a ranges descriptor as global (inter-channel)
 
#define A4L_RNG_PERCHAN_RNGDESC   1
 Constant to define a ranges descriptor as specific for a channel.
 
#define RNG_GLOBAL(x)
 Macro to declare a ranges global descriptor in one line.
 
Channel reference

Flags to define the channel's reference

#define A4L_CHAN_AREF_GROUND   0x1
 Ground reference.
 
#define A4L_CHAN_AREF_COMMON   0x2
 Common reference.
 
#define A4L_CHAN_AREF_DIFF   0x4
 Differential reference.
 
#define A4L_CHAN_AREF_OTHER   0x8
 Misc reference.
 
Channels declaration mode

Constant to define whether the channels in a descriptor are identical

#define A4L_CHAN_GLOBAL_CHANDESC   0
 Global declaration, the set contains channels with similar characteristics.
 
#define A4L_CHAN_PERCHAN_CHANDESC   1
 Per channel declaration, the decriptor gathers differents channels.
 

Detailed Description

Analogy for Linux, channel, range related features.

Copyright (C) 1997-2000 David A. Schleef ds@sc.nosp@m.hlee.nosp@m.f.org Copyright (C) 2008 Alexis Berlemont alexi.nosp@m.s.be.nosp@m.rlemo.nosp@m.nt@f.nosp@m.ree.f.nosp@m.r

Xenomai is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Xenomai is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Xenomai; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.