MirOS Manual: daadio(4)

DAADIO(4)              BSD Programmer's Manual (SPARC)               DAADIO(4)


     daadio - MATRIX MD-DAADIO digital/analog, analog/digital, parallel i/o


     daadio* at fvme? addr 0x0 level 1 vect 0x1f


     The daadio driver provides ioctl(2) entry points to read and write
     analog/digital, digital/analog, and parallel input/output registers. A
     typical daadio has 6 8bit parallel ports, 8 12bit DAC ports, and 32 12bit
     ADC ports.

     The daadio has a large number of configuration options, but the driver
     does not. For the ADC, only simple polled mode is supported (there is no
     support for single cycle sampling).


     The daadio device responds to the following ioctl(2) calls defined in

     DIOGPIO   (struct daadio_pio) Get the value of the parallel port dap_reg
               and store it in dap_val. The argument structure is defined as

                     struct daadio_pio {
                             u_int8_t dap_reg;
                             u_int8_t dap_val;

     DIOSPIO   (struct daadio_pio) Set the value of the parallel port dap_reg
               to the value in dap_val.

     DIOSDAC   (struct daadio_dac) Set the value of the DAC port in dac_reg to
               the value in dac_val. The argument structure is defined as fol-

                     struct daadio_dac {
                             u_int8_t dac_reg;
                             u_int16_t dac_val;

     DIOGADC   (struct daadio_adc) Get the value of the ADC port specified in
               dad_reg into dad_val. The lower 12 bits of dad_val are the
               conversion value, the upper four bits are used for status. The
               argument structure is defined as follows:

                     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 */


     ioctl(2), fvme(4), intro(4)


     OpenBSD support for the daadio first appeared in OpenBSD 2.6.

MirOS BSD #10-current            July 7, 2002                                1

Generated on 2013-09-18 04:33:42 by $MirOS: src/scripts/roff2htm,v 1.77 2013/01/01 20:49:09 tg Exp $

These manual pages and other documentation are copyrighted by their respective writers; their source is available at our CVSweb, AnonCVS, and other mirrors. The rest is Copyright © 2002‒2013 The MirOS Project, Germany.
This product includes material provided by Thorsten Glaser.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report – diffs preferred.