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