TwiceAsNice
2019-02-18
|
Classes | |
struct | DQCVINFO |
struct | _DQDEVCFG |
struct | _pDQACBCFG |
struct | _DQACBMISSING |
struct | _DQMSGMISSING |
struct | _DQACB |
struct | _DQDmapTRL |
struct | _DQDMAP |
struct | _DQBCB |
struct | _DQCQENTRY |
struct | _DQCQHead |
struct | _DQE |
struct | _DQINSTE |
struct | _DqTransportFuncs |
struct | _DqTransportDescriptor |
struct | DQRTRCQUEUE |
struct | DQRTRCASYNC |
struct | DQXHANDLE |
struct | _DQIOME |
struct | _DQRingBuf |
struct | _DQRingBufHead |
struct | DQTSREC |
Macros | |
#define | DQ_LIBCODE(M, N, S) ((M<<16)|(N<<8)|S) |
#define | DQ_LIB_REVISION DQ_LIBCODE(3,7,0) |
#define | STRACE_NOPRINT 1 |
#define | DQ_NOERROR 0 |
#define | DQ_SUCCESS 1 |
#define | DQ_ILLEGAL_ENTRY (-1) |
#define | DQ_ILLEGAL_HANDLE (-2) |
#define | DQ_SOCK_LIB_ERROR (-3) |
#define | DQ_TIMEOUT_ERROR (-4) |
#define | DQ_SEND_ERROR (-5) |
#define | DQ_RECV_ERROR (-6) |
#define | DQ_IOM_ERROR (-7) |
#define | DQ_PKT_TOOLONG (-8) |
#define | DQ_ILLEGAL_PKTSIZE (-9) |
#define | DQ_INIT_ERROR (-10) |
#define | DQ_BAD_PARAMETER (-11) |
#define | DQ_BAD_DEVN (-12) |
#define | DQ_NOT_IMPLEMENTED (-13) |
#define | DQ_NO_MEMORY (-14) |
#define | DQ_NOT_ENOUGH_ROOM (-15) |
#define | DQ_DEVICE_BUSY (-16) |
#define | DQ_EVENT_ERROR (-17) |
#define | DQ_BAD_CONFIG (-18) |
#define | DQ_DATA_ERROR (-19) |
#define | DQ_DEVICE_NOTREADY (-20) |
#define | DQ_CALIBRATION_ERROR (-21) |
#define | DQ_WRONG_DMAP (-22) |
#define | DQ_DATA_NOT_AVAILABLE (-23) |
#define | DQ_FIFO_OVERFLOW (-24) |
#define | DQ_ILLEGAL_INDEX (-25) |
#define | DQ_DIO_LINE_NOT_EXIST (-26) |
#define | DQ_WRONG_PKT_COUNTER (-27) |
#define | DQ_ERR_NEGATIVE_RETURN 0x80000000 |
#define | DQ_CHK_ERROR_NONE 0 |
#define | DQ_CHK_ERROR_IGNORE 1 |
#define | DQ_CHK_ERROR_NONCRITICAL 2 |
#define | DQ_CHK_ERROR_CRITICAL 3 |
#define | DQ_CHECK_ALIVE 1 |
#define | DQ_ERROR_TIMEOUT_CTN 2 |
#define | DQ_MILLI_SECOND 1000 |
#define | DQ_MICRO_SECOND 1000000 |
#define | DQ_UDP_DAQ_PORT 6334 |
#define | DQ_UDP_DAQ_PORT_ASYNC 6344 |
#define | DQ_SO_RCVBUF_BUFFER_SIZE 100000 |
#define | DQ_SO_SNDBUF_BUFFER_SIZE 0 |
#define | DQ_TABLE_ENTRY_FREE -1 |
#define | DQPAYLOADHDR 2 |
#define | DQ_MAX_ETH_SIZE (576) |
#define | DQ_MAX_UDP_PAYLOAD 530 |
#define | DQ_MAX_DQ_PAYLOAD (DQ_MAX_UDP_PAYLOAD - DQHSZ) |
#define | DQ_MAX_PKT_SIZE (DQ_MAX_DQ_PAYLOAD - DQPAYLOADHDR) |
#define | DQ_MAX_ETH_SIZE_100 (1518) |
#define | DQ_MAX_ETH_SIZE_100_ALIGNED 1520 |
#define | DQ_MAX_UDP_PAYLOAD_100 1472 |
#define | DQ_MAX_DQ_PAYLOAD_100 (DQ_MAX_UDP_PAYLOAD_100 - DQHSZ) |
#define | DQ_MAX_PKT_SIZE_100 (DQ_MAX_DQ_PAYLOAD_100 - DQPAYLOADHDR) |
#define | DQ_MAX_ETH_JUMBO 9600 |
#define | DQ_CQ_ENTRIES 128 |
#define | DQ_RING_BUFS DQ_FIFO_NBUFS |
#define | DQ_REPLY 0x1000 |
#define | DQ_NOREPLY 0x2000 |
#define | DQ_ZERO 0 |
#define | DQ_LASTDEV 0x80 /* last device in DaqBIOS command entry */ |
#define | DQ_LASTCHAN 0x80 /* last channel in DaqBIOS command entry */ |
#define | DQ_NULLDEV 0xff /* device that never exists, phantom */ |
#define | DQ_WAIT_INDEFINITELY INFINITE |
#define | DQ_WAIT_TIMEOUT WAIT_TIMEOUT |
#define | DQ_WAIT_OBJECT_0 WAIT_OBJECT_0 |
#define | DQ_PROLOG 0xBABAFACA /* DqTS id */ |
#define | DQ_PLGVT1 0xBABAFACB /* DqVT first or not last packet id */ |
#define | DQ_PLGVTL 0xBABAFACC /* DqVT last or only packet id */ |
#define | DQCMD_RECEIVE_RETRIES 2 |
#define | DQ_MAX_RCV_ATTEMPTS 2 |
#define | DQ_MAXTRLISTSZ 512 |
#define | DQ_MAXCLSIZE 64 |
#define | DQ_MAXTRIGS 4 |
#define | DQCMD_FIRST 0x100 |
#define | DQCMD_ECHB 0x100 |
#define | DQCMD_HRTBEAT 0x101 |
#define | DQCMD_ECHO 0x104 |
#define | DQCMD_ECHOPNP 0x108 |
#define | DQCMD_EFR 0x10C |
#define | DQCMD_RST 0x110 |
#define | DQCMD_RSTTS 0x111 |
#define | DQCMD_WRVAL 0x114 |
#define | DQCMD_RDVAL 0x118 |
#define | DQCMD_WRVALM 0x11C |
#define | DQCMD_RDVALM 0x120 |
#define | DQCMD_SETCFG 0x124 |
#define | DQCMD_RDSTS 0x128 |
#define | DQCMD_GETCFG 0x129 |
#define | DQCMD_WRCHNL 0x12C |
#define | DQCMD_RDCHNL 0x130 |
#define | DQCMD_SETCLK 0x134 |
#define | DQCMD_START 0x138 |
#define | DQCMD_SETCL 0x13C |
#define | DQCMD_SETTRL 0x140 |
#define | DQCMD_FINISH 0x144 |
#define | DQCMD_WRALL 0x148 |
#define | DQCMD_WRRD 0x14C |
#define | DQCMD_WRFIFO 0x150 |
#define | DQCMD_RDFIFO 0x154 |
#define | DQCMD_WRRDFIFO 0x158 |
#define | DQCMD_WRFLASH 0x15C |
#define | DQCMD_UPDFLASH 0x160 |
#define | DQCMD_SETSYNCRT 0x162 |
#define | DQCMD_SETCOMM 0x164 |
#define | DQCMD_SETNAME 0x168 |
#define | DQCMD_RDNAME 0x16C |
#define | DQCMD_SETPRM 0x170 |
#define | DQCMD_GETPRM 0x171 |
#define | DQCMD_WDSET 0x172 |
#define | DQCMD_SETCAL 0x174 |
#define | DQCMD_SAVEPRM 0x178 |
#define | DQCMD_SETMD 0x17C |
#define | DQCMD_SETRPLMAX 0x180 |
#define | DQCMD_SETPASS 0x184 |
#define | DQCMD_GETCRC 0x188 |
#define | DQCMD_GETCAPS 0x190 |
#define | DQCMD_INITIOM 0x194 |
#define | DQCMD_IOCTL 0x198 |
#define | DQCMD_IOCTLR 0x199 |
#define | DQCMD_IOCTLD 0x19A |
#define | DQCMD_SETTRIG 0x1A0 |
#define | DQCMD_BURST 0x1A1 |
#define | DQCMD_RBFCPUWR 0x1C4 |
#define | DQCMD_RBFPAGEWR 0x1C6 |
#define | DQCMD_RBFDEVLIST 0x1C8 |
#define | DQCMD_SETAXMAP 0x1CA |
#define | DQCMD_EVENT 0x1B4 |
#define | DQCMD_SETVEC 0x1A4 |
#define | DQCMD_RUNVEC 0x1A8 |
#define | DQCMD_RSTWCHDG 0x1AC |
#define | DQCMD_FLSHFIFO 0x1B0 |
#define | DQCMD_ALLOC 0x1B8 |
#define | DQCMD_FREE 0x1BC |
#define | DQCMD_SETLOCK 0x1C0 |
#define | DQIOCTL_CVTCHNL (1) |
#define | DQ_MAX_ACB_TABLE_SIZE 256 |
#define | DQ_MINIMALPERIOD 1 |
#define | DQ_MAX_IOM_TABLE_SIZE 64 |
#define | DQ_MAX_IOM_TABLE_MASK 0x3f |
#define | DQ_IOM_SECOND_PORT_HANDLE 0x1000L |
#define | DQ_IOM_EVENT_PORT_HANDLE 0x2000L |
#define | DQ_IOM_HANDLE_PORT_MASK 0x3000L |
#define | DQ_IOM_HANDLE_MASK (0x3F) |
#define | DQ_IOM_EVENT_MASK (0x3F0000) |
#define | DQ_MAX_INST_TABLE_SIZE 65 |
#define | DQ_INSTMODE_NTOH 0x8000 |
#define | DQ_RB_REQUESTED (0x1L << 30) |
#define | DQ_MAXFIFO (48) |
#define | DQ_RBINS_FULL (-1) |
#define | DQ_RBINS_PARAM (-2) |
#define | DQ_RBINS_FILLED (3) |
#define | DQ_RBINS_INVREQ (-4) |
#define | DQ_RBINS_OLDPKT (-5) |
#define | DQ_DIO404_REF_3_3V 3 |
#define | DQ_DIO404_REF_5V 5 |
#define | DQ_DIO404_REF_12V 12 |
#define | DQ_DIO404_REF_24V 24 |
#define | DQ_DIO404_REF_36V 36 |
#define | DQ_BUFFER_ACB 1 |
#define | DQ_BUFFER_DMAP 2 |
#define | DQ_BUFFER_MSGQ 3 |
#define | DQ_TRLENTRY_NOTREADY 0 |
#define | DQ_TRLENTRY_SELECTED 1 |
#define | DQ_TRLENTRY_READY 2 |
#define | DQ_SYNC_OBJ_NUM 4 |
#define | DQ_EVT_NUM_MMT 0 |
#define | DQ_EVT_NUM_1 1 |
#define | DQ_EVT_NUM_2 2 |
#define | DQ_EVT_NUM_3 3 |
#define | _pi_ 3.14159265358979323846 |
Functions | |
char *DAQLIB | DqTranslateError (int error) |
Converts error code to ASCIIZ string. More... | |
uint32 DAQLIB | DqGetLibVersion (void) |
Version of the library. More... | |
uint32 DAQLIB | DqGetLibVersionBuild (void) |
Version of the library. More... | |
int DAQLIB | DqOpenIOM (char *IP, uint16 UDP_Port, uint32 mTimeOut, int *handle, pDQRDCFG *pDqCfg) |
int DAQLIB | DqAddIOMPort (int handle, int *new_handle, uint16 UDP_Port, uint32 mTimeOut) |
int DAQLIB | DqCloseIOM (int Iom) |
int DAQLIB | DqGetDevnBySlot (int Iom, uint32 Slot, uint32 *devn, uint32 *serial, uint32 *address, uint16 *model) |
int DAQLIB | DqGetDevnBySerial (int Iom, uint32 Serial, uint32 *devn, uint32 *slot, uint32 *address, uint16 *model) |
int DAQLIB | DqSetPacketSize (int Iom, uint32 MinPktSize, uint32 MaxPktSize) |
int DAQLIB | DqGetPacketSize (int Iom, uint32 *MinPktSize, uint32 *MaxPktSize) |
int DAQLIB | DqSetTimeout (int Iom, pDQE pDqe, int Timeoutms) |
int DAQLIB | DqCmdSetIoctlCode (int Iom, int ioctl_replace, int ioctl_code_set) |
int DAQLIB | DqCmdReceiveEvent (int hd, uint32 flags, int timeout_ms, pDQEVENT *event_buf, int *size) |
int DAQLIB | DqCmdEcho (int Iom, pDQRDCFG pDQRdCfg) |
int DAQLIB | DqCmdCheckAlive (int Iom, uint32 *response) |
int DAQLIB | DqCheckForCriticalError (int Iom, int error, uint32 flags, uint32 *criticality) |
int DAQLIB | DqCmdReset (int Iom) |
int DAQLIB | DqCmdResetTimestamp (int Iom) |
int DAQLIB | DqCmdHwReset (int Iom) |
int DAQLIB | DqCmdWriteVal (int Iom, uint32 Address, uint32 *Value) |
int DAQLIB | DqCmdReadVal (int Iom, uint32 Address, uint32 *Value) |
int DAQLIB | DqCmdWriteMultipleValues (int Iom, pDQWRVALM DQWrMultVal) |
int DAQLIB | DqCmdReadMultipleValues (int Iom, pwDQRDVALM pDQRdMultVal, uint8 *Data) |
int DAQLIB | DqCmdSetCfg (int Iom, DQSETCFG pDQSetCfg[], uint32 *Status, uint32 *entries) |
int DAQLIB | DqCmdGetCfg (int Iom, pDQGETCFG_RQ pDQGetCfg, pDQGETCFG pDQCfgOut, pDQGETCFG *pcfg, uint32 *entries) |
int DAQLIB | DqCmdReadStatus (int Iom, uint8 *DeviceNum, uint32 *Entries, uint32 *Status, uint32 *StatusSize) |
int DAQLIB | DqCmdWriteChannel (int Iom, pDQWRCHNL DQChannelData, uint32 DataBufLen) |
int DAQLIB | DqCmdReadChannel (int Iom, pDQRDCHNL pDQChannel, void *Data, uint32 *DataBufLen) |
int DAQLIB | DqCmdSetClock (int Iom, pDQSETCLK pDQSetClk, float *CloseFreq, uint32 *entries) |
int DAQLIB | DqCmdSetTrigger (int Iom, pDQSETTRIG pDQSetTrig, uint32 *entries) |
int DAQLIB | DqCmdSwTrigger (int Iom, uint32 Mask) |
int DAQLIB | DqCmdSetChannelList (int Iom, pDQSETCL pDQSetCl, uint32 *entries) |
int DAQLIB | DqCmdSetTransferList (int Iom, pDQSETTRL pDQSetTrl) |
int DAQLIB | DqCmdWriteReadAll (int Iom, pDQWRRD pDQWr, pDQWRRD pDQRd) |
int DAQLIB | DqCmdWriteFIFO (int Iom, pDQFIFO pDQFifo) |
int DAQLIB | DqCmdReadFIFO (int Iom, pDQFIFO pDQFifo) |
int DAQLIB | DqCmdWriteReadFIFO (int Iom, pDQWRRDFIFO pDQWrRdFifoPut, pDQWRRDFIFO pDQWrRdFifoGet) |
int DAQLIB | DqCmdWriteToFlashBuffer (int Iom, uint32 Size, uint8 *Data, uint32 *CRC) |
int DAQLIB | DqCmdUpdateFlashBuffer (int Iom, uint16 Sector, uint32 Address, uint32 Size, uint32 *CRC) |
int DAQLIB | DqCmdSetSyncRt (int Iom, pSYNCPLL pSyncPll, pSYNCRT pSyncRt) |
int DAQLIB | DqCmdSetCommParameters (int Iom, pDQSETCOMM pDQSetComm, uint32 *CRC) |
int DAQLIB | DqCmdSetName (int Iom, char *Name, int32 *CRC) |
int DAQLIB | DqCmdGetName (int Iom, uint32 BufLen, char *Buffer) |
int DAQLIB | DqCmdSetWatchDog (int Iom, uint32 Mask, uint32 time, uint32 *t2reset, uint32 *cstatus) |
int DAQLIB | DqCmdSetParameters (int Iom, pDQSETPRM pDQSetParm, uint32 *CRC) |
int DAQLIB | DqCmdGetParameters (int Iom, pDQGETPRM pDQGetParm, uint8 *data) |
int DAQLIB | DqCmdSetCalibration (int Iom, pDQSETCAL pDQSetCal, int *entries) |
int DAQLIB | DqCmdSaveParameters (int Iom, uint32 devn, uint32 *HashCode) |
int DAQLIB | DqCmdSetMode (int Iom, uint32 Mode, uint32 Mask) |
int DAQLIB | DqCmdSetReplyMaxSize (int Iom, uint32 EthSize, uint32 EthSizeBuf, uint32 MaxNoPkts, uint32 *Accepted) |
int DAQLIB | DqCmdSetPassword (int Iom, uint32 Mode, char *Password) |
int DAQLIB | DqCmdGetCRC (int Iom, DQCRCINFO *pDQCRCInfo) |
int DAQLIB | DqCmdIoctl (int Iom, IN pDQIOCTL IoIn, pDQIOCTL IoOut) |
int DAQLIB | DqCmdIoctlSz (int Iom, uint32 size_in, IN pDQIOCTL IoIn, uint32 size_out, pDQIOCTL IoOut) |
int DAQLIB | DqCmdIoctlSz_unlock (int Iom, uint32 size_in, IN pDQIOCTL IoIn, uint32 size_out, pDQIOCTL IoOut) |
int DAQLIB | DqCmdIoctlRetrySz (int Iom, uint32 size_in, IN pDQIOCTL IoIn, uint32 size_out, pDQIOCTL IoOut) |
int DAQLIB | DqCmdGetCapabilities (int Iom, uint8 Layer, int *moredata, char *info) |
int DAQLIB | DqCmdInitIOM (int Iom, uint8 Layer, uint32 ParamID, uint32 *Data) |
int DAQLIB | DqCmdSetLock (int Iom, uint8 Mode, char *Password, uint32 *IP) |
int DAQLIB | DqGetLastStatus (int iom, uint32 *data, uint32 *size) |
int DAQLIB | DqReadSrec (char *filename, int relative, uint32 size, char *buffer, uint32 *bytes) |
int DAQLIB | DqCmdFinishDmap (int Iom, uint32 dmapid) |
int DAQLIB | DqCmdWriteAll (int Iom, pDQWRRD pDQWr) |
int DAQLIB | DqCmdReadAll (int Iom, pDQWRRD pDQRd) |
int | DqCmdReadAll_nocopy (int Iom, pDQWRRD *ppWrRd, pDQPKT *ppDQPkt) |
int | DqCmdReadAll_int (int Iom, pDQWRRD pDQRd, uint16 *dqCounter, uint16 *dqTStamp) |
int DAQLIB | DqCmdRbfTransferToBuffer (int Iom, uint32 Size, uint8 *Data, uint32 *CRC) |
int DAQLIB | DqCmdRbfPageWrite (int Iom, uint32 BaseAddr, uint32 Size, uint8 CrcVerification, uint32 *ProcessedBytes, uint32 *CRC, uint32 *error) |
int DAQLIB | DqCmdRbfDevList (int Iom, DQRBFDEV *dev_list, uint32 *error) |
int DAQLIB | DqReadRbf (char *filename, char *buffer, uint32 size, uint32 *bytes) |
int DAQLIB | DqInitRbf (int Iom) |
pDQIOME DAQLIB | DqGetIom (int hd) |
uint32 DAQLIB | mmddyy2date (int mm, int dd, int yy, int hh, int mn, int ss) |
int DAQLIB | date2mmddyy (uint32 date, int *mm, int *dd, int *yy, int *hh, int *mn, int *ss) |
int DAQLIB | DqInitDAQLib (void) |
Initializes the PowerDNA library internal structures. More... | |
void DAQLIB | DqCleanUpDAQLib (void) |
Cleans up the PowerDNA library internal structures. More... | |
#define _pi_ 3.14159265358979323846 |
#define DQ_BAD_CONFIG (-18) |
#define DQ_BAD_DEVN (-12) |
#define DQ_BAD_PARAMETER (-11) |
#define DQ_BUFFER_ACB 1 |
#define DQ_BUFFER_DMAP 2 |
#define DQ_BUFFER_MSGQ 3 |
#define DQ_CALIBRATION_ERROR (-21) |
#define DQ_CHECK_ALIVE 1 |
#define DQ_CHK_ERROR_CRITICAL 3 |
#define DQ_CHK_ERROR_IGNORE 1 |
#define DQ_CHK_ERROR_NONCRITICAL 2 |
#define DQ_CHK_ERROR_NONE 0 |
#define DQ_CQ_ENTRIES 128 |
#define DQ_DATA_ERROR (-19) |
#define DQ_DATA_NOT_AVAILABLE (-23) |
#define DQ_DEVICE_BUSY (-16) |
#define DQ_DEVICE_NOTREADY (-20) |
#define DQ_DIO404_REF_12V 12 |
#define DQ_DIO404_REF_24V 24 |
#define DQ_DIO404_REF_36V 36 |
#define DQ_DIO404_REF_3_3V 3 |
#define DQ_DIO404_REF_5V 5 |
#define DQ_DIO_LINE_NOT_EXIST (-26) |
#define DQ_ERR_NEGATIVE_RETURN 0x80000000 |
#define DQ_ERROR_TIMEOUT_CTN 2 |
#define DQ_EVENT_ERROR (-17) |
#define DQ_EVT_NUM_1 1 |
#define DQ_EVT_NUM_2 2 |
#define DQ_EVT_NUM_3 3 |
#define DQ_EVT_NUM_MMT 0 |
#define DQ_FIFO_OVERFLOW (-24) |
#define DQ_ILLEGAL_ENTRY (-1) |
#define DQ_ILLEGAL_HANDLE (-2) |
#define DQ_ILLEGAL_INDEX (-25) |
#define DQ_ILLEGAL_PKTSIZE (-9) |
#define DQ_INIT_ERROR (-10) |
#define DQ_INSTMODE_NTOH 0x8000 |
#define DQ_IOM_ERROR (-7) |
#define DQ_IOM_EVENT_MASK (0x3F0000) |
#define DQ_IOM_EVENT_PORT_HANDLE 0x2000L |
#define DQ_IOM_HANDLE_MASK (0x3F) |
#define DQ_IOM_HANDLE_PORT_MASK 0x3000L |
#define DQ_IOM_SECOND_PORT_HANDLE 0x1000L |
#define DQ_LASTCHAN 0x80 /* last channel in DaqBIOS command entry */ |
#define DQ_LASTDEV 0x80 /* last device in DaqBIOS command entry */ |
#define DQ_LIB_REVISION DQ_LIBCODE(3,7,0) |
#define DQ_LIBCODE | ( | M, | |
N, | |||
S | |||
) | ((M<<16)|(N<<8)|S) |
#define DQ_MAX_ACB_TABLE_SIZE 256 |
#define DQ_MAX_DQ_PAYLOAD (DQ_MAX_UDP_PAYLOAD - DQHSZ) |
#define DQ_MAX_DQ_PAYLOAD_100 (DQ_MAX_UDP_PAYLOAD_100 - DQHSZ) |
#define DQ_MAX_ETH_JUMBO 9600 |
#define DQ_MAX_ETH_SIZE (576) |
#define DQ_MAX_ETH_SIZE_100 (1518) |
#define DQ_MAX_ETH_SIZE_100_ALIGNED 1520 |
#define DQ_MAX_INST_TABLE_SIZE 65 |
#define DQ_MAX_IOM_TABLE_MASK 0x3f |
#define DQ_MAX_IOM_TABLE_SIZE 64 |
#define DQ_MAX_PKT_SIZE (DQ_MAX_DQ_PAYLOAD - DQPAYLOADHDR) |
#define DQ_MAX_PKT_SIZE_100 (DQ_MAX_DQ_PAYLOAD_100 - DQPAYLOADHDR) |
#define DQ_MAX_RCV_ATTEMPTS 2 |
#define DQ_MAX_UDP_PAYLOAD 530 |
#define DQ_MAX_UDP_PAYLOAD_100 1472 |
#define DQ_MAXCLSIZE 64 |
#define DQ_MAXFIFO (48) |
#define DQ_MAXTRIGS 4 |
#define DQ_MAXTRLISTSZ 512 |
#define DQ_MICRO_SECOND 1000000 |
#define DQ_MILLI_SECOND 1000 |
#define DQ_MINIMALPERIOD 1 |
#define DQ_NO_MEMORY (-14) |
#define DQ_NOERROR 0 |
#define DQ_NOREPLY 0x2000 |
#define DQ_NOT_ENOUGH_ROOM (-15) |
#define DQ_NOT_IMPLEMENTED (-13) |
#define DQ_NULLDEV 0xff /* device that never exists, phantom */ |
#define DQ_PKT_TOOLONG (-8) |
#define DQ_PLGVT1 0xBABAFACB /* DqVT first or not last packet id */ |
#define DQ_PLGVTL 0xBABAFACC /* DqVT last or only packet id */ |
#define DQ_PROLOG 0xBABAFACA /* DqTS id */ |
#define DQ_RB_REQUESTED (0x1L << 30) |
#define DQ_RBINS_FILLED (3) |
#define DQ_RBINS_FULL (-1) |
#define DQ_RBINS_INVREQ (-4) |
#define DQ_RBINS_OLDPKT (-5) |
#define DQ_RBINS_PARAM (-2) |
#define DQ_RECV_ERROR (-6) |
#define DQ_REPLY 0x1000 |
#define DQ_RING_BUFS DQ_FIFO_NBUFS |
#define DQ_SEND_ERROR (-5) |
#define DQ_SO_RCVBUF_BUFFER_SIZE 100000 |
#define DQ_SO_SNDBUF_BUFFER_SIZE 0 |
#define DQ_SOCK_LIB_ERROR (-3) |
#define DQ_SUCCESS 1 |
#define DQ_SYNC_OBJ_NUM 4 |
#define DQ_TABLE_ENTRY_FREE -1 |
#define DQ_TIMEOUT_ERROR (-4) |
#define DQ_TRLENTRY_NOTREADY 0 |
#define DQ_TRLENTRY_READY 2 |
#define DQ_TRLENTRY_SELECTED 1 |
#define DQ_UDP_DAQ_PORT 6334 |
#define DQ_UDP_DAQ_PORT_ASYNC 6344 |
#define DQ_WAIT_INDEFINITELY INFINITE |
#define DQ_WAIT_OBJECT_0 WAIT_OBJECT_0 |
#define DQ_WAIT_TIMEOUT WAIT_TIMEOUT |
#define DQ_WRONG_DMAP (-22) |
#define DQ_WRONG_PKT_COUNTER (-27) |
#define DQ_ZERO 0 |
#define DQCMD_ALLOC 0x1B8 |
#define DQCMD_BURST 0x1A1 |
#define DQCMD_ECHB 0x100 |
#define DQCMD_ECHO 0x104 |
#define DQCMD_ECHOPNP 0x108 |
#define DQCMD_EFR 0x10C |
#define DQCMD_EVENT 0x1B4 |
#define DQCMD_FINISH 0x144 |
#define DQCMD_FIRST 0x100 |
#define DQCMD_FLSHFIFO 0x1B0 |
#define DQCMD_FREE 0x1BC |
#define DQCMD_GETCAPS 0x190 |
#define DQCMD_GETCFG 0x129 |
#define DQCMD_GETCRC 0x188 |
#define DQCMD_GETPRM 0x171 |
#define DQCMD_HRTBEAT 0x101 |
#define DQCMD_INITIOM 0x194 |
#define DQCMD_IOCTL 0x198 |
#define DQCMD_IOCTLD 0x19A |
#define DQCMD_IOCTLR 0x199 |
#define DQCMD_RBFCPUWR 0x1C4 |
#define DQCMD_RBFDEVLIST 0x1C8 |
#define DQCMD_RBFPAGEWR 0x1C6 |
#define DQCMD_RDCHNL 0x130 |
#define DQCMD_RDFIFO 0x154 |
#define DQCMD_RDNAME 0x16C |
#define DQCMD_RDSTS 0x128 |
#define DQCMD_RDVAL 0x118 |
#define DQCMD_RDVALM 0x120 |
#define DQCMD_RECEIVE_RETRIES 2 |
#define DQCMD_RST 0x110 |
#define DQCMD_RSTTS 0x111 |
#define DQCMD_RSTWCHDG 0x1AC |
#define DQCMD_RUNVEC 0x1A8 |
#define DQCMD_SAVEPRM 0x178 |
#define DQCMD_SETAXMAP 0x1CA |
#define DQCMD_SETCAL 0x174 |
#define DQCMD_SETCFG 0x124 |
#define DQCMD_SETCL 0x13C |
#define DQCMD_SETCLK 0x134 |
#define DQCMD_SETCOMM 0x164 |
#define DQCMD_SETLOCK 0x1C0 |
#define DQCMD_SETMD 0x17C |
#define DQCMD_SETNAME 0x168 |
#define DQCMD_SETPASS 0x184 |
#define DQCMD_SETPRM 0x170 |
#define DQCMD_SETRPLMAX 0x180 |
#define DQCMD_SETSYNCRT 0x162 |
#define DQCMD_SETTRIG 0x1A0 |
#define DQCMD_SETTRL 0x140 |
#define DQCMD_SETVEC 0x1A4 |
#define DQCMD_START 0x138 |
#define DQCMD_UPDFLASH 0x160 |
#define DQCMD_WDSET 0x172 |
#define DQCMD_WRALL 0x148 |
#define DQCMD_WRCHNL 0x12C |
#define DQCMD_WRFIFO 0x150 |
#define DQCMD_WRFLASH 0x15C |
#define DQCMD_WRRD 0x14C |
#define DQCMD_WRRDFIFO 0x158 |
#define DQCMD_WRVAL 0x114 |
#define DQCMD_WRVALM 0x11C |
#define DQIOCTL_CVTCHNL (1) |
#define DQPAYLOADHDR 2 |
#define STRACE_NOPRINT 1 |
typedef struct _pDQACBCFG DQACBCFG |
typedef struct _DQACBMISSING DQACBMISS |
typedef struct _DQCQENTRY DQCQE |
typedef struct _DQDmapTRL DQDmapTRL |
typedef struct _DQMSGMISSING DQMSGMISS |
typedef struct _DQRingBuf DQRingBuf |
typedef struct _DQRingBufHead DQRingBufHead |
typedef struct _DqTransportDescriptor DQTRANSPORTDESC |
typedef struct _DqTransportFuncs DQTRANSPORTFUNCS |
typedef enum _DqTransportType DQTRANSPORTTYPE |
typedef struct _pDQACBCFG * pDQACBCFG |
typedef struct _DQACBMISSING * pDQACBMISS |
typedef struct _DQCQENTRY * pDQCQE |
typedef struct _DQDmapTRL * pDQDmapTRL |
typedef struct _DQMSGMISSING * pDQMSGMISS |
typedef struct _DQRingBuf * pDQRingBuf |
typedef struct _DQRingBufHead * pDQRingBufHead |
typedef struct DQRTRCASYNC * pDQRTRCASYNC |
typedef struct DQRTRCQUEUE * pDQRTRCQUEUE |
typedef struct DQXHANDLE * pDQXHANDLE |
enum _DqTransportType |
int DAQLIB DqCloseIOM | ( | int | Iom | ) |
int DAQLIB DqCmdGetCfg | ( | int | Iom, |
pDQGETCFG_RQ | pDQGetCfg, | ||
pDQGETCFG | pDQCfgOut, | ||
pDQGETCFG * | pcfg, | ||
uint32 * | entries | ||
) |
int DAQLIB DqCmdHwReset | ( | int | Iom | ) |
int DAQLIB DqCmdIoctlRetrySz | ( | int | Iom, |
uint32 | size_in, | ||
IN pDQIOCTL | IoIn, | ||
uint32 | size_out, | ||
pDQIOCTL | IoOut | ||
) |
int DAQLIB DqCmdIoctlSz | ( | int | Iom, |
uint32 | size_in, | ||
IN pDQIOCTL | IoIn, | ||
uint32 | size_out, | ||
pDQIOCTL | IoOut | ||
) |
int DAQLIB DqCmdIoctlSz_unlock | ( | int | Iom, |
uint32 | size_in, | ||
IN pDQIOCTL | IoIn, | ||
uint32 | size_out, | ||
pDQIOCTL | IoOut | ||
) |
int DAQLIB DqCmdRbfPageWrite | ( | int | Iom, |
uint32 | BaseAddr, | ||
uint32 | Size, | ||
uint8 | CrcVerification, | ||
uint32 * | ProcessedBytes, | ||
uint32 * | CRC, | ||
uint32 * | error | ||
) |
int DAQLIB DqCmdReadMultipleValues | ( | int | Iom, |
pwDQRDVALM | pDQRdMultVal, | ||
uint8 * | Data | ||
) |
int DAQLIB DqCmdReadStatus | ( | int | Iom, |
uint8 * | DeviceNum, | ||
uint32 * | Entries, | ||
uint32 * | Status, | ||
uint32 * | StatusSize | ||
) |
int DAQLIB DqCmdReceiveEvent | ( | int | hd, |
uint32 | flags, | ||
int | timeout_ms, | ||
pDQEVENT * | event_buf, | ||
int * | size | ||
) |
int DAQLIB DqCmdReset | ( | int | Iom | ) |
int DAQLIB DqCmdResetTimestamp | ( | int | Iom | ) |
int DAQLIB DqCmdSetCommParameters | ( | int | Iom, |
pDQSETCOMM | pDQSetComm, | ||
uint32 * | CRC | ||
) |
int DAQLIB DqCmdSetIoctlCode | ( | int | Iom, |
int | ioctl_replace, | ||
int | ioctl_code_set | ||
) |
int DAQLIB DqCmdSetReplyMaxSize | ( | int | Iom, |
uint32 | EthSize, | ||
uint32 | EthSizeBuf, | ||
uint32 | MaxNoPkts, | ||
uint32 * | Accepted | ||
) |
int DAQLIB DqCmdSetTrigger | ( | int | Iom, |
pDQSETTRIG | pDQSetTrig, | ||
uint32 * | entries | ||
) |
int DAQLIB DqCmdSetWatchDog | ( | int | Iom, |
uint32 | Mask, | ||
uint32 | time, | ||
uint32 * | t2reset, | ||
uint32 * | cstatus | ||
) |
int DAQLIB DqCmdUpdateFlashBuffer | ( | int | Iom, |
uint16 | Sector, | ||
uint32 | Address, | ||
uint32 | Size, | ||
uint32 * | CRC | ||
) |
int DAQLIB DqCmdWriteReadFIFO | ( | int | Iom, |
pDQWRRDFIFO | pDQWrRdFifoPut, | ||
pDQWRRDFIFO | pDQWrRdFifoGet | ||
) |
int DAQLIB DqGetDevnBySerial | ( | int | Iom, |
uint32 | Serial, | ||
uint32 * | devn, | ||
uint32 * | slot, | ||
uint32 * | address, | ||
uint16 * | model | ||
) |
int DAQLIB DqGetDevnBySlot | ( | int | Iom, |
uint32 | Slot, | ||
uint32 * | devn, | ||
uint32 * | serial, | ||
uint32 * | address, | ||
uint16 * | model | ||
) |
int DAQLIB DqInitRbf | ( | int | Iom | ) |
int DAQLIB DqOpenIOM | ( | char * | IP, |
uint16 | UDP_Port, | ||
uint32 | mTimeOut, | ||
int * | handle, | ||
pDQRDCFG * | pDqCfg | ||
) |