BSD 4_2 development
[unix-history] / usr / man / man4 / ad.4
CommitLineData
e0e5a999
C
1.TH AD 4 "27 July 1983"
2.UC 4
3.SH NAME
4ad \- Data Translation A/D converter
5.SH SYNOPSIS
6.B "device ad0 at uba0 csr 0170400 vector adintr"
7.SH DESCRIPTION
8.I Ad
9provides the interface to the Data Translation A/D converter.
10This is
11.B not
12a real-time driver, but merely allows
13the user process to sample the board's channels one at a time.
14Each minor device selects a different A/D board.
15.PP
16The driver communicates to a user process by means of ioctls.
17The AD_CHAN ioctl selects which channel of the board to read.
18For example,
19.br
20.in +.5i
21chan = 5;
22ioctl(fd, AD_CHAN, &chan);
23.in -.5i
24selects channel 5.
25The AD_READ ioctl actually reads the data and returns it to the user
26process.
27An example is
28.br
29.in +.5i
30ioctl(fd, AD_READ, &data);
31.in -.5i
32.SH FILES
33/dev/ad
34.SH DIAGNOSTICS
35None.