22 #ifndef __ANALOGY_ANALOGY__
23 #define __ANALOGY_ANALOGY__
50 int a4l_sys_bufcfg(
int fd,
unsigned int idx_subd,
unsigned long size);
54 int a4l_sys_devinfo(
int fd, a4l_dvinfo_t *info);
56 int a4l_sys_subdinfo(
int fd, a4l_sbinfo_t *info);
58 int a4l_sys_nbchaninfo(
int fd,
unsigned int idx_subd,
unsigned int *nb);
60 int a4l_sys_chaninfo(
int fd,
61 unsigned int idx_subd, a4l_chinfo_t *info);
63 int a4l_sys_nbrnginfo(
int fd,
64 unsigned int idx_subd,
65 unsigned int idx_chan,
unsigned int *nb);
67 int a4l_sys_rnginfo(
int fd,
68 unsigned int idx_subd,
69 unsigned int idx_chan, a4l_rnginfo_t *info);
73 int a4l_get_desc(
int fd,
a4l_desc_t *dsc,
int pass);
82 unsigned int subd, a4l_sbinfo_t **info);
86 unsigned int chan, a4l_chinfo_t **info);
88 #define a4l_get_chan_max(x) (1ULL << (x)->nb_bits)
90 #define a4l_is_chan_global(x) ((x)->chan_flags & A4L_CHAN_GLOBAL)
95 unsigned int rng, a4l_rnginfo_t **info);
97 #define a4l_is_rng_global(x) ((x)->flags & A4L_RNG_GLOBAL)
104 unsigned int idx_subd,
unsigned long size);
107 unsigned int idx_subd,
unsigned long *size);
109 int a4l_set_wakesize(
a4l_desc_t *dsc,
unsigned long size);
111 int a4l_get_wakesize(
a4l_desc_t *dsc,
unsigned long *size);
114 unsigned int idx_subd,
115 unsigned long cur,
unsigned long *newp);
118 unsigned int idx_subd,
unsigned long ms_timeout);
121 unsigned int idx_subd,
unsigned long size,
void **ptr);
124 void *buf,
size_t nbyte,
unsigned long ms_timeout);
127 void *buf,
size_t nbyte,
unsigned long ms_timeout);
136 unsigned int idx_subd,
137 unsigned int chan_desc,
138 unsigned int delay,
void *buf,
size_t nbyte);
141 unsigned int idx_subd,
142 unsigned int chan_desc,
143 unsigned int delay,
void *buf,
size_t nbyte);
146 unsigned int idx_subd,
unsigned int type, ...);
149 unsigned int idx_subd,
void *mask,
void *buf);
156 unsigned int idx_subd,
157 unsigned int idx_chan,
159 double min,
double max, a4l_rnginfo_t **rng);
161 int a4l_rawtoul(a4l_chinfo_t *chan,
unsigned long *dst,
void *src,
int cnt);
164 a4l_rnginfo_t *rng,
float *dst,
void *src,
int cnt);
167 a4l_rnginfo_t *rng,
double *dst,
void *src,
int cnt);
169 int a4l_ultoraw(a4l_chinfo_t *chan,
void *dst,
unsigned long *src,
int cnt);
172 a4l_rnginfo_t *rng,
void *dst,
float *src,
int cnt);
175 a4l_rnginfo_t *rng,
void *dst,
double *src,
int cnt);