Xenomai  3.0.8
range.c File Reference

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

Include dependency graph for range.c:

Functions

int a4l_sizeof_chan (a4l_chinfo_t *chan)
 Get the size in memory of an acquired element. More...
 
int a4l_sizeof_subd (a4l_sbinfo_t *subd)
 Get the size in memory of a digital acquired element. More...
 
int a4l_find_range (a4l_desc_t *dsc, unsigned int idx_subd, unsigned int idx_chan, unsigned long unit, double min, double max, a4l_rnginfo_t **rng)
 Find the must suitable range. More...
 
int a4l_rawtoul (a4l_chinfo_t *chan, unsigned long *dst, void *src, int cnt)
 Unpack raw data (from the driver) into unsigned long values. More...
 
int a4l_rawtof (a4l_chinfo_t *chan, a4l_rnginfo_t *rng, float *dst, void *src, int cnt)
 Convert raw data (from the driver) to float-typed samples. More...
 
int a4l_rawtod (a4l_chinfo_t *chan, a4l_rnginfo_t *rng, double *dst, void *src, int cnt)
 Convert raw data (from the driver) to double-typed samples. More...
 
int a4l_ultoraw (a4l_chinfo_t *chan, void *dst, unsigned long *src, int cnt)
 Pack unsigned long values into raw data (for the driver) More...
 
int a4l_ftoraw (a4l_chinfo_t *chan, a4l_rnginfo_t *rng, void *dst, float *src, int cnt)
 Convert float-typed samples to raw data (for the driver) More...
 
int a4l_dtoraw (a4l_chinfo_t *chan, a4l_rnginfo_t *rng, void *dst, double *src, int cnt)
 Convert double-typed samples to raw data (for the driver) More...
 

Detailed Description

Analogy for Linux, range related features.

Note
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

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

This library 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 Lesser General Public License for more details.

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