|
|
1.1 ! root 1: .\" Copyright (c) 1983 Regents of the University of California. ! 2: .\" All rights reserved. The Berkeley software License Agreement ! 3: .\" specifies the terms and conditions for redistribution. ! 4: .\" ! 5: .\" @(#)ad.4 6.1 (Berkeley) 5/15/85 ! 6: .\" ! 7: .TH AD 4 "May 15, 1985" ! 8: .UC 5 ! 9: .SH NAME ! 10: ad \- Data Translation A/D converter ! 11: .SH SYNOPSIS ! 12: .B "device ad0 at uba0 csr 0170400 vector adintr" ! 13: .SH DESCRIPTION ! 14: .I Ad ! 15: provides the interface to the Data Translation A/D converter. ! 16: This is ! 17: .B not ! 18: a real-time driver, but merely allows ! 19: the user process to sample the board's channels one at a time. ! 20: Each minor device selects a different A/D board. ! 21: .PP ! 22: The driver communicates to a user process by means of ioctls. ! 23: The AD_CHAN ioctl selects which channel of the board to read. ! 24: For example, ! 25: .br ! 26: .in +.5i ! 27: chan = 5; ! 28: ioctl(fd, AD_CHAN, &chan); ! 29: .in -.5i ! 30: selects channel 5. ! 31: The AD_READ ioctl actually reads the data and returns it to the user ! 32: process. ! 33: An example is ! 34: .br ! 35: .in +.5i ! 36: ioctl(fd, AD_READ, &data); ! 37: .in -.5i ! 38: .SH FILES ! 39: /dev/ad ! 40: .SH DIAGNOSTICS ! 41: None.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.