diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-07-17 02:30:11 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-07-17 02:30:11 +0000 |
commit | f849c74e9e4aee148390f507e76eaa87062f7080 (patch) | |
tree | 57d81a583b646687e01b3de5b5bf88da36a11fca /share | |
parent | 89d74c09d05c30015406dca369f1f2135f8ad9f6 (diff) |
Document the DIOGADC ioctl (fetch analog->digital conversion)
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man4/man4.sparc/daadio.4 | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/share/man/man4/man4.sparc/daadio.4 b/share/man/man4/man4.sparc/daadio.4 index 4cdca7818d5..2d556c3f218 100644 --- a/share/man/man4/man4.sparc/daadio.4 +++ b/share/man/man4/man4.sparc/daadio.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: daadio.4,v 1.1 2002/07/09 18:41:27 jason Exp $ +.\" $OpenBSD: daadio.4,v 1.2 2002/07/17 02:30:10 jason Exp $ .\" .\" Copyright (c) 2002 Jason L. Wright (jason@thought.net) .\" All rights reserved. @@ -95,6 +95,27 @@ struct daadio_dac { u_int16_t dac_val; }; .Ed +.It Dv DIOGADC +.Pq Li "struct daadio_adc" +Get the value of the ADC port specified in +.Ar dad_reg +into +.Ar dad_val . +The lower 12 bits of +.Ar dad_val +are the conversion value, the upper four bits are used for status. +The argument structure is defined as follows: +.Bd -literal -offset indent +struct daadio_adc { + u_int8_t dad_reg; + u_int16_t dad_val; +#define ADC_IV 0x1000 /* out of range */ +#define ADC_PR 0x2000 /* pipeline empty */ +#define ADC_DR 0x4000 /* data ready */ +#define ADC_OW 0x8000 /* data overwritten */ +#define ADC_VAL 0x0fff /* the data */ +}; +.Ed .Sh SEE ALSO .Xr ioctl 2 , .Xr fga 4 |