summaryrefslogtreecommitdiffstats
path: root/sys/sys/dataacq.h
diff options
context:
space:
mode:
authordufault <dufault@FreeBSD.org>1995-04-28 12:08:03 +0000
committerdufault <dufault@FreeBSD.org>1995-04-28 12:08:03 +0000
commit8375603f2f421106da5c5e879b6fbd20404e7fa9 (patch)
treee0f7a1ad09b511f07e80c0ab860c8e8cd3ca2648 /sys/sys/dataacq.h
parent0391b2aa5a990b2c4c43336b5c811f6c7081a389 (diff)
downloadFreeBSD-src-8375603f2f421106da5c5e879b6fbd20404e7fa9.zip
FreeBSD-src-8375603f2f421106da5c5e879b6fbd20404e7fa9.tar.gz
Rename "aio.h" to "dataacq.h"
Diffstat (limited to 'sys/sys/dataacq.h')
-rw-r--r--sys/sys/dataacq.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/sys/sys/dataacq.h b/sys/sys/dataacq.h
new file mode 100644
index 0000000..82d98e1
--- /dev/null
+++ b/sys/sys/dataacq.h
@@ -0,0 +1,34 @@
+#ifndef _SYS_DATAACQ_H_
+#define _SYS_DATAACQ_H_
+
+#include <sys/ioccom.h>
+
+/* Header for general data acquisition definitions.
+ */
+
+/* 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_ */
OpenPOWER on IntegriCloud