aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/dataacq.h
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1999-01-20 13:09:28 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1999-01-20 13:09:28 +0000
commit49e314e105bb4ce92b4967d7443259255fcedf0c (patch)
treeb2997590d644ef197585b357c52c9da373ca3358 /sys/sys/dataacq.h
parentc80ac74f4b4f05c1a60c136556cdcfb7b967c8a7 (diff)
downloadsrc-49e314e105bb4ce92b4967d7443259255fcedf0c.tar.gz
src-49e314e105bb4ce92b4967d7443259255fcedf0c.zip
Put back this wholly innocent victim of Mike's drive-by shooting on alog;
it belongs to the labpc driver. Mike will be in the corner wearing the pointed hat, should anyone be looking for him.
Notes
Notes: svn path=/head/; revision=42899
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 000000000000..c5fe3451e752
--- /dev/null
+++ b/sys/sys/dataacq.h
@@ -0,0 +1,34 @@
+/* Header for general data acquisition definitions.
+ */
+
+#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_ */