digitize(4) manual page
Table of Contents
/dev/dig - acquire EEG data and events
The /dev/dig driver
acquires EEG data and up to 16 bit event codes from hardware and exports
a simple interface to user programs. After the device is opened, it expects
the user to write a DigStart entry. This entry contains the following
fields:
- nChannels
- The number of channels in a single scan. If the value
of this field is zero, then scans are stopped.
- nScans
- The number of scans
to return in a single read.
- sPeriod
- The sample period in microseconds.
- cgl
- The
channel gain list, each entry in this list has a channel descriptor and
a gain descriptor. There can be at most 256 channels in this list (hardware
willing).
Once the DigStart entry is written, scans will appear on the
read side of the file descriptor. The file descriptor can also be used
with poll (2)
to indicate when data are available. Data are returned using
the DigScan entry. One DigScan entry per channel scan. This entry has the
following fields:
- sample
- The sample number of this scan.
- nCodes
- The number
of event codes found in this scan (up to 11).
- codes
- An array of up to 11
event codes.
/dev/dig The digitize device file.
dig.h The digitize device
interface file.
Arthur Jones, sponsored by: Yale University,
University of Oregon, Dartmouth College, University of California, San
Diego, University of Texas, San Antonio, University of California, Davis
and the Salk Institute for Biological Studies.
ni(4)
, nie(4)
, digitize(1)
,
digitize-info(5)
Table of Contents