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

strapdv.h File Reference

#include "lcudrv.h"
#include "strapdvCommands.h"

Include dependency graph for strapdv.h:

Include dependency graph

Go to the source code of this file.

Defines

#define strapdvOK   0
#define strapdvERR_INV_TIMEOUT   -400
#define strapdvERR_INV_IR_LEVEL   -405
#define strapdvERR_INV_IR_NUMBER   -410
#define strapdvERR_NO_EXCLUSIVE   -420
#define strapdvERR_INV_BOARD_CONFIG   -425
#define strapdvERR_IR_CONNECT   -430
#define strapdvERR_ENABLE_IR_LEVEL   -435
#define strapdvERR_NO_DIAG   -440
#define strapdvERR_NO_DATA   -445
#define strapdvERR_INV_PARAMETER   -450
#define strapdvERR_INV_SEM_ID   -455
#define strapdvERR_INV_RT_PTR   -460
#define strapdvERR_OVERFLOW   -465
#define strapMASK_CLOSED_LOOP   0
#define strapMASK_HV_ON   1
#define strapMASK_OVER_CURR   2
#define strapMASK_OVER_COUNTS   3
#define strapMASK_TEMP_CTRL   4
#define strapMASK_OVER_TEMP   5
#define strapMASK_DISTURB_MODE   6
#define strapMASK_HV_FLAG   7
#define strapMASK_RT_MODE   8
#define strapMASK_INT_SIGNAL   9
#define strapMASK_CIRC_BUFFER   10
#define strapMASK_DATA_READY   11
#define strapMASK_PROCESS_DIST   12
#define strapMASK_E2PROM   13
#define strapMASK_CBUF_OVERFLOW   14
#define strapMASK_SIMULATION   15
#define strapMASK_DIAG_MONITOR   16
#define strapMASK_CHOPPING_MODE   17
#define strapMASK_CHOP_ON   18
#define TYPE_NR_BLOCK_0   0x00
#define TYPE_NR_BLOCK_1   0x01
#define TYPE_NR_BLOCK_2   0x02
#define TYPE_NR_BLOCK_3   0x03
#define TYPE_NR_BLOCK_4   0x04
#define TYPE_NR_BLOCK_5   0x05
#define TYPE_NR_BLOCK_6   0x06
#define TYPE_NR_BLOCK_7   0x07
#define TYPE_NR_BLOCK_8   0x08
#define TYPE_NR_BLOCK_9   0x09
#define TYPE_DL_BLOCK_0   0x0000
#define TYPE_DL_BLOCK_1   0x0001
#define TYPE_DL_BLOCK_2   0x0002
#define RT_NOTIFY   0x0001
#define DIAG_NOTIFY   0x0002
#define strapLENGTH_OF_SETUP_BLOCK   0x0016
#define strapLENGTH_OF_STATIC_BLOCK   0x0029
#define strapLENGTH_OF_STATUS_BLOCK   0x0009
#define strapLENGTH_OF_DIAGNOSTIC_BLOCK   0x002B
#define strapLENGTH_OF_TMPDIST_BLOCK   0x0008
#define strapLENGTH_OF_SOFTVERS_BLOCK   0x0020
#define strapNUMBER_OF_RAM_RECORDS   58248
#define strapLENGTH_OF_DATA_RECORD   6
#define strapLENGTH_OF_RAM_BLOCK   0x0078
#define strapLENGTH_OF_HV_BLOCK   0x0018
#define dspCTRL_COEFF   0
#define dspCOUNT_LIMIT   32
#define dspHIGH_VOLT   33
#define dspGATE   37
#define dspTEMPERATURE   38
#define dspHOLDOFF   39
#define dspTIMEOUT   40
#define dspINT_MATRIX   0
#define dspINT_TIME   4
#define dspDIAG_RATE   5
#define dspDATA_RECS   6
#define dspSPOT_OFFX   7
#define dspSPOT_OFFY   8
#define dspSKYBACKGND   9
#define dspFLUX_THRESHOLD   10
#define dspNUM_CHOP_POS   11
#define dspCHOP_X   12
#define dspCHOP_Y   17

Functions

int strapdvDrv (int devices, int channels, int timeout)
int strapdvDevCreate (char *devName, void *baseAddrA16, int intrNumber, int intrLevel, int boardId)
int strapdvVersion (void)
int strapdvDevShow (void)
int strapdvPrintRegs (int unit)
int strapdvSetRegs (int unit, UINT16 value)
int strapdvPrintDevice (int unit)
int strapdvPrintError (int errorCode)
int strapdvPrintCmd (int cmdCode)
int strapdvPrintChannel (int fd)


Define Documentation

#define strapdvOK   0
 

#define strapdvERR_INV_TIMEOUT   -400
 

#define strapdvERR_INV_IR_LEVEL   -405
 

#define strapdvERR_INV_IR_NUMBER   -410
 

#define strapdvERR_NO_EXCLUSIVE   -420
 

#define strapdvERR_INV_BOARD_CONFIG   -425
 

#define strapdvERR_IR_CONNECT   -430
 

#define strapdvERR_ENABLE_IR_LEVEL   -435
 

#define strapdvERR_NO_DIAG   -440
 

#define strapdvERR_NO_DATA   -445
 

#define strapdvERR_INV_PARAMETER   -450
 

#define strapdvERR_INV_SEM_ID   -455
 

#define strapdvERR_INV_RT_PTR   -460
 

#define strapdvERR_OVERFLOW   -465
 

#define strapMASK_CLOSED_LOOP   0
 

#define strapMASK_HV_ON   1
 

#define strapMASK_OVER_CURR   2
 

#define strapMASK_OVER_COUNTS   3
 

#define strapMASK_TEMP_CTRL   4
 

#define strapMASK_OVER_TEMP   5
 

#define strapMASK_DISTURB_MODE   6
 

#define strapMASK_HV_FLAG   7
 

#define strapMASK_RT_MODE   8
 

#define strapMASK_INT_SIGNAL   9
 

#define strapMASK_CIRC_BUFFER   10
 

#define strapMASK_DATA_READY   11
 

#define strapMASK_PROCESS_DIST   12
 

#define strapMASK_E2PROM   13
 

#define strapMASK_CBUF_OVERFLOW   14
 

#define strapMASK_SIMULATION   15
 

#define strapMASK_DIAG_MONITOR   16
 

#define strapMASK_CHOPPING_MODE   17
 

#define strapMASK_CHOP_ON   18
 

#define TYPE_NR_BLOCK_0   0x00
 

#define TYPE_NR_BLOCK_1   0x01
 

#define TYPE_NR_BLOCK_2   0x02
 

#define TYPE_NR_BLOCK_3   0x03
 

#define TYPE_NR_BLOCK_4   0x04
 

#define TYPE_NR_BLOCK_5   0x05
 

#define TYPE_NR_BLOCK_6   0x06
 

#define TYPE_NR_BLOCK_7   0x07
 

#define TYPE_NR_BLOCK_8   0x08
 

#define TYPE_NR_BLOCK_9   0x09
 

#define TYPE_DL_BLOCK_0   0x0000
 

#define TYPE_DL_BLOCK_1   0x0001
 

#define TYPE_DL_BLOCK_2   0x0002
 

#define RT_NOTIFY   0x0001
 

#define DIAG_NOTIFY   0x0002
 

#define strapLENGTH_OF_SETUP_BLOCK   0x0016
 

#define strapLENGTH_OF_STATIC_BLOCK   0x0029
 

#define strapLENGTH_OF_STATUS_BLOCK   0x0009
 

#define strapLENGTH_OF_DIAGNOSTIC_BLOCK   0x002B
 

#define strapLENGTH_OF_TMPDIST_BLOCK   0x0008
 

#define strapLENGTH_OF_SOFTVERS_BLOCK   0x0020
 

#define strapNUMBER_OF_RAM_RECORDS   58248
 

#define strapLENGTH_OF_DATA_RECORD   6
 

#define strapLENGTH_OF_RAM_BLOCK   0x0078
 

#define strapLENGTH_OF_HV_BLOCK   0x0018
 

#define dspCTRL_COEFF   0
 

#define dspCOUNT_LIMIT   32
 

#define dspHIGH_VOLT   33
 

#define dspGATE   37
 

#define dspTEMPERATURE   38
 

#define dspHOLDOFF   39
 

#define dspTIMEOUT   40
 

#define dspINT_MATRIX   0
 

#define dspINT_TIME   4
 

#define dspDIAG_RATE   5
 

#define dspDATA_RECS   6
 

#define dspSPOT_OFFX   7
 

#define dspSPOT_OFFY   8
 

#define dspSKYBACKGND   9
 

#define dspFLUX_THRESHOLD   10
 

#define dspNUM_CHOP_POS   11
 

#define dspCHOP_X   12
 

#define dspCHOP_Y   17
 


Function Documentation

int strapdvDrv int    devices,
int    channels,
int    timeout
 

int strapdvDevCreate char *    devName,
void *    baseAddrA16,
int    intrNumber,
int    intrLevel,
int    boardId
 

int strapdvVersion void   
 

int strapdvDevShow void   
 

int strapdvPrintRegs int    unit
 

int strapdvSetRegs int    unit,
UINT16    value
 

int strapdvPrintDevice int    unit
 

int strapdvPrintError int    errorCode
 

int strapdvPrintCmd int    cmdCode
 

int strapdvPrintChannel int    fd
 


Generated on Wed Dec 3 14:55:56 2003 for ATCS API by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001