beautypg.com

Exterr – Sensoray 817 User Manual

Page 16

background image

16

CHAN_STATUS

chanData[4];

unsigned int

extErrAddr;

unsigned int

dspAddr;

unsigned int

fwVer;

unsigned int

inPciRead;

unsigned int

inPciWrite;

unsigned int

hostLate;

unsigned int

reserved[8];

} SYS_STATUS;

Defines system status structure. System status is obtained with the help of

S817_GetStatusInfo

function for a group of channels (1 .. 4, 5 .. 9, etc.).


chanData[4]

An array of 4 structures of

CHAN_STATUS

type (see above), one for each of 4

channels belonging to a group.

extErrAddr

Internal use, do not modify.


dspAddr

Internal use, do not modify.


fwVer

Firmware version (major in bits [31:16], minor in bits [15:0]

)

.


inPciRead

The board is attempting to read data from host. Normally is 0.


inPciWrite

The board is attempting to write data to host. Normally is 0.


reserved[8]

Internal use, do not modify.


EXTERR

typedef struct {

unsigned int

tick;

unsigned int

ecode;

unsigned int

reserved[2];

} EXTERR;

Defines the extended error structure. The extended error information for each capture
channel is kept in an array of

EXTERR

elements of the size

SYS_EXTERR_BUF_SIZE

(defined in

s817.h

, currently 64)

.

This array is copied from the board to the buffer in

the host’s memory by a call to

S817_GetExtErrInfo

(see below). The first element of the

array is used to keep track of the total number of errors registered for a given capture
channel (in

.tick

member), the rest are used as a ring buffer. Each valid entry of the

ring buffer keeps the information on the type of the error (

.ecode

) and the time of

occurrence in units of the 1 ms timer (

.tick

). Let’s assume, for example, that the buffer