blob: 69afbf9a08c424b45a7884bd52ad7119ffb7199f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/*
* Header for general data acquisition definitions.
*
* $FreeBSD$
*/
#ifndef _SYS_DATAACQ_H_
#define _SYS_DATAACQ_H_
#include <sys/ioccom.h>
/* Period in microseconds between analog I/O samples.
*/
#define AD_MICRO_PERIOD_SET _IOW('A', 1, long)
#define AD_MICRO_PERIOD_GET _IOR('A', 2, long)
/* Gain list support. Initially all gains are 1. If the board
* supports no gains at all then AD_NGAINS_GET will return a 0.
*
* AD_NGAINS_GET: Return the number of gains the board supports
*
* AD_SUPPORTED_GAINS: Get the supported gains.
* The driver will copy out "ngains" doubles,
* where "ngains" is obtained with AD_NGAINS_GET.
*
* AD_GAINS_SET: Set the gain list. The driver will copy in "ngains" ints.
*
* AD_GAINS_GET: Get the gain list. The driver will copy out "ngains" ints.
*/
#define AD_NGAINS_GET _IOR('A', 3, int)
#define AD_NCHANS_GET _IOR('A', 4, int)
#define AD_SUPPORTED_GAINS _IO('A', 5)
#define AD_GAINS_SET _IO('A', 6)
#define AD_GAINS_GET _IO('A', 7)
#endif /* !_SYS_DATAACQ_H_ */
|