AD
Section: Devices and Network Interfaces (4)
Updated: vax
Index
Return to Main Contents
BSD mandoc
BSD 4.2
NAME
ad
- Data Translation A/D converter
SYNOPSIS
device ad0 at uba0 csr 0170400 vector adintr
DESCRIPTION
The
ad
driver
provides an interface to the Data Translation A/D converter.
This is
not
a real-time driver, but merely allows
the user process to sample the board's channels one at a time.
Each minor device selects a different
A/D
board.
The driver communicates to a user process by means of
ioctl(2)Nss.
The
AD_CHAN
ioctl
selects which channel of the board to read.
For example,
chan = 5;
ioctl(fd, AD_CHAN, &chan);
selects channel 5.
The
AD_READ
ioctl(2)
actually reads the data and returns it to the user
process.
An example is
ioctl(fd, AD_READ, &data);
FILES
- /dev/ad
-
DIAGNOSTICS
None.
HISTORY
The
driver appeared in
BSD 4.1
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- FILES
-
- DIAGNOSTICS
-
- HISTORY
-
This document was created by
man2html,
using the manual pages.
Time: 06:48:45 GMT, May 19, 2025