Main Page Class Hierarchy Compound List File List Compound Members File Members

# nano_buf.h

Go to the documentation of this file.

    00001
    00002 /*
    00003  *   THIS FILE IS UNDER RCS - DO NOT MODIFY UNLESS YOU HAVE
    00004  *   CHECKED IT OUT USING THE COMMAND CHECKOUT.
    00005  *
    00006  *    $Id: nano__buf_8h-source.html,v 1.1 2006/05/19 16:55:02 paulf Exp $
    00007  *
    00008  *    Revision history:
    00009  *     $Log: nano__buf_8h-source.html,v $
    00009  *     Revision 1.1  2006/05/19 16:55:02  paulf
    00009  *     first inclusion
    00009  *
    00010  *     Revision 1.1  2000/02/14 20:05:54  lucky
    00011  *     Initial revision
    00012  *
    00013  *
    00014  */
    00015
    00016 /* November 1 1994
    00017  * The Nanometrics trace data header format
    00018  * NOTE: 3 bytes per data sample
    00019  *
    00020  * NOTE: Header must be an even multiple of bytes long, because the receiver
    00021  *       moves everything in int's for speed reasons.  The Nanometrics
    00022  *       acquisition system runs on an Intel computer.
    00023  */
    00024
    00025 #ifndef NANO_BUF_H
    00026 #define NANO_BUF_H
    00027
    00028 typedef struct {
    00029    unsigned long  tssec;      /* Time stamp - seconds                           */
    00030    unsigned long  tsmic;      /* Time stamp - microseconds past the last second */
    00031    unsigned long  first_scan; /* Number of first scan in buffer                 */
    00032    unsigned short series;     /* Incremented each time a data source is started */
    00033    unsigned short sample_dt;  /* Length of standard interval in seconds         */
    00034    unsigned short nsample;    /* Number of samples per this interval            */
    00035    unsigned char  mod_id;     /* Data source module id                          */
    00036    unsigned char  padding;    /* will always be 0                               */
    00037    unsigned short errword;    /* Error word (will always be 0?)                 */
    00038    unsigned short nchan;      /* Number of channels                             */
    00039    unsigned short nscan;      /* Number of scans per buffer                     */
    00040    unsigned short netid;      /* Network identifier                             */
    00041    unsigned char  dig_num;    /* digitzier number, as set in CED for the        */
    00042                               /* fep/port (1-8)                                 */
    00043    unsigned char  chan_num;   /* channel number for given digitizer (1-6)       */
    00044 } NANO_HEADER;
    00045
    00046 #define NBYTES_NANO_HEADER  30   /* define the number of bytes in a NANO_HEADER */
    00047
    00048 #endif
    00049