TwiceAsNice  2019-02-18
Classes | Typedefs | Functions | Variables
DAQLib.c File Reference
#include "PDNA.h"
#include "PDNA_private.h"
Include dependency graph for DAQLib.c:

Classes

struct  LL_FILE
 

Typedefs

typedef struct LL_FILE ll_file
 

Functions

int AllocHLTables (uint32 pid)
 
int FreeHLTables (uint32 pid)
 
int InitInstEntry (uint32 pid)
 
int ClearInstEntry (uint32 pid)
 
pDQINSTE GetInstEntry ()
 
int DAQLIB DqInitDAQLib (void)
 Initializes the PowerDNA library internal structures. More...
 
void DAQLIB DqCleanUpDAQLib (void)
 Cleans up the PowerDNA library internal structures. More...
 
int SendDqPkt (int hd, const char *buf, int len, int flags, uint32 *RqId)
 
int RecvDqPkt (int hd, char *buf, int len, int flags, volatile uint32 *RqId)
 
int WaitDqPkt (int hd, volatile uint32 *RqId, int timeout_ms)
 
int WaitDqPkt_uS (int hd, volatile uint32 *RqId, int timeout_us)
 
char *DAQLIB DqTranslateError (int error)
 Converts error code to ASCIIZ string. More...
 
char * DqTranslateCommand (uint32 command)
 Converts low-level command 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 ObtainDQCfg (int Iom)
 
int ObtainPktSize (int Iom)
 
int DAQLIB DqAddIOMPort (int handle, int *new_handle, uint16 UDP_Port, uint32 mTimeOut)
 
int DAQLIB DqCloseIOM (int Iom)
 
int DAQLIB DqSetPacketSize (int Iom, uint32 MinUdpPayload, uint32 MaxUdpPayload)
 
int DAQLIB DqGetPacketSize (int Iom, uint32 *MinUdpPayload, uint32 *MaxUdpPayload)
 
int DAQLIB DqSetTimeout (int Iom, pDQE pDqe, int Timeoutms)
 
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 DqCmdReceiveEvent (int handle, uint32 flags, int timeout_us, pDQEVENT *event_buf, int *size)
 
pDQIOME DAQLIB DqGetIom (int hd)
 
int DqCmdEchoBroadCast (int Iom, pDQRDCFG pDQRdCfg)
 
int DAQLIB DqCmdEcho (int Iom, pDQRDCFG pDQRdCfg)
 
int DqCmdEchoBroadCastPNP (int Iom, pDQRDCFG pDQRdCfg)
 
int DqCmdSendEndOfFrame (int Iom, uint32 DeviceNum)
 
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 pDQWrMultVal)
 
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 DqCmdSetWatchDog (int Iom, uint32 Mask, uint32 time, uint32 *t2reset, uint32 *cstatus)
 
int DAQLIB DqCmdSetChannelList (int Iom, pDQSETCL pDQSetCl, uint32 *entries)
 
int DAQLIB DqCmdSetTransferList (int Iom, pDQSETTRL pDQSetTrl)
 
int DAQLIB DqCmdFinishDmap (int Iom, uint32 dmapid)
 
int DAQLIB DqCmdWriteReadAll (int Iom, pDQWRRD pDQWr, pDQWRRD pDQRd)
 
int DqCmdWriteReadAll_int (int Iom, pDQWRRD pDQWr, pDQWRRD pDQRd, uint16 *dqCounter, uint16 *dqTStamp)
 
int DAQLIB DqCmdWriteAll (int Iom, pDQWRRD pDQWr)
 
int DqCmdWriteAll_int (int Iom, pDQWRRD pDQWr, uint16 dqCounter, uint16 dqTStamp)
 
int DqCmdReadAll_nocopy (int Iom, pDQWRRD *ppWrRd, pDQPKT *ppDQPkt)
 
int DAQLIB DqCmdReadAll (int Iom, pDQWRRD pDQRd)
 
int DqCmdReadAll_int (int Iom, pDQWRRD pDQRd, uint16 *dqCounter, uint16 *dqTStamp)
 
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 DqCmdSetCommParameters (int Iom, pDQSETCOMM pDQSetComm, uint32 *CRC)
 
int DAQLIB DqCmdSetSyncRt (int Iom, pSYNCPLL pSyncPll, pSYNCRT pSyncRt)
 
int DAQLIB DqCmdSetName (int Iom, char *Name, int32 *CRC)
 
int DAQLIB DqCmdGetName (int Iom, uint32 BufLen, char *Buffer)
 
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 DqCmdSetIoctlCode (int Iom, int ioctl_replace, int ioctl_code_set)
 
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 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)
 
static int rbfProcess (ll_file *rbf, char *rbfbuffer, unsigned int buffersize, FILE *out)
 
static ll_filerbfOpen (const char *file_name, FILE *out)
 
static void rbfClose (ll_file *rbf)
 
int DAQLIB DqReadRbf (char *filename, char *buffer, uint32 size, uint32 *bytes)
 
int DAQLIB DqInitRbf (int Iom)
 
int DqSendAndRecvCmd (int Iom, int sPktSz, int delay, int *rPktSz)
 
int DAQLIB DqGetLastStatus (int Iom, uint32 *data, uint32 *size)
 
float htonf (float f)
 
float ntohf (float f)
 
double htondbl (double f)
 
double ntohdbl (double f)
 
int ObtainCapsInfo (int Iom, uint8 dev)
 
int GetParsedCapsInfo (int Iom, uint8 dev, char *cap_buf, size_t bufsize, char *cap_names[], char *cap_vals[], int *cap_count)
 
int findStrInArr (char *str, char *strArr[], int arrSize)
 
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)
 

Variables

tUeiPalObject IOMTableLock
 
DQIOME IOMTable [DQ_MAX_IOM_TABLE_SIZE]
 
DQINSTE InstTable [DQ_MAX_INST_TABLE_SIZE]
 
char Err_ILLEGAL_ENTRY [] = "Invalid entry"
 
char Err_ILLEGAL_HANDLE [] = "Invalid handle"
 
char Err_DQSOCK_LIB_ERROR [] = "Socket error"
 
char Err_TIMEOUT_ERROR [] = "Timeout error"
 
char Err_DQSEND_ERROR [] = "Sending error"
 
char Err_DQRECV_ERROR [] = "Receiving error"
 
char Err_DQIOM_ERROR [] = "IOM error"
 
char Err_DQPKT_TOOLONG [] = "Data length exceed packet size"
 
char Err_ILLEGAL_PKTSIZE [] = "Incorrect packet size"
 
char Err_INIT_ERROR [] = "Library initializtion error"
 
char Err_BAD_PARAMETER [] = "Invalid parameter"
 
char Err_BAD_DEVN [] = "Invalid device number"
 
char Err_NOT_IMPLEMENTED [] = "Function is not implemented"
 
char Err_NO_MEMORY [] = "Not enough memory"
 
char Err_NOT_ENOUGH_ROOM [] = "Not enough room in the packet/structure"
 
char Err_DEVICE_BUSY [] = "Device already in use"
 
char Err_EVENT_ERROR [] = "Event handling error"
 
char Err_BAD_CONFIG [] = "Bad configuration for device"
 
char Err_DATA_ERROR [] = "Layer returned invalid data"
 
char Err_DEVICE_NOTREADY [] = "Device is not ready"
 
char Err_CALIBRATION_ERROR [] = "Error While performing calibration, verify your wiring"
 
char Err_WRONG_DMAP [] = "Requested and received dmap ids do not match"
 
char Err_DATA_NOT_AVAILABLE [] = "Requested data is not available"
 
char Err_FIFO_OVERFLOW [] = "Device FIFO overflow"
 
char Err_DQERR_EXEC [] = "Exeption on command execution"
 
char Err_DQERR_NOMORE [] = "No more data is available"
 
char Err_DQERR_MOREDATA [] = "More data is available"
 
char Err_DQERR_TOOOLD [] = "Request is too old (RDFIFO)"
 
char Err_DQERR_INVREQ [] = "Invalid request number (RDFIFO)"
 
char Err_DQERR_NIMP [] = "DaqBIOS command is not implemented or unknown command"
 
char Err_DQERR_LOST [] = "Packet lost (out of sequence)"
 
char Err_DQERR_NOOPS [] = "DQ not in operation state"
 
char Err_DQERR_OPS [] = "IOM is in operation state"
 
char Err_DQERR_PARAM [] = "Device cannot complete request with specified parameters"
 
char Err_DQERR_RCV [] = "Packet receive error"
 
char Err_DQERR_SND [] = "Packet send error"
 
char Err_DQERR_GENFAIL [] = "General failure"
 
char Err_DQERR_NOSEND [] = "Do not return packet"
 
char Err_DQERR_PENDING [] = "Do not return packet, do not free buffer"
 
char Err_LPERR_BUSY [] ="ERROR: CS4 module is busy"
 
char Err_LPERR_CMDRD [] ="ERROR: Read command in progress"
 
char Err_LPERR_CMDWR [] ="ERROR: Write command in progress"
 
char Err_LPERR_ADDROUTRANGE [] ="ERROR: Device address out of range"
 
char Err_LPERR_UNABLECOMMSP [] ="ERROR: Unable to communicate with on-layer MSP microcontroller"
 
char Err_LPERR_MEMALOC [] ="ERROR: Unable to allocate memory"
 
char Err_LPERR_EPCSOVERFULL [] ="ERROR: FPGA load IC is overfull"
 
char Err_LPERR_BADCRC [] ="ERROR: CRC Error"
 
char Err_LPERR_IMGVERSIZE [] ="ERROR: Image size exceeds FPGA load IC size"
 
char Err_LPERR_SUPASS [] ="ERROR: Wrong SU password"
 
char Err_LPERR_IO2_EMPTY [] ="ERROR: DNR I/O 2 slot empty or layer does not support logic updating"
 
char Err_LPERR_IO3_NOT_EMPTY [] ="ERROR: DNR I/O 3 slot not empty"
 
char Err_LPERR_WRONG_CPU_MODEL [] ="ERROR: CPU layer does not support logic updating"
 
char Err_LPERR_IO1_12_NOT_EMPTY [] ="ERROR: DNR slot IO 1,3-12 should be empty. Take the layers out from those slots"
 
char Cmd_DQCMD_ECHB [] = "DQCMD_ECHB"
 
char Cmd_DQCMD_ECHO [] = "DQCMD_ECHO"
 
char Cmd_DQCMD_ECHOPNP [] = "DQCMD_ECHOPNP"
 
char Cmd_DQCMD_EFR [] = "DQCMD_EFR"
 
char Cmd_DQCMD_RST [] = "DQCMD_RST"
 
char Cmd_DQCMD_WRVAL [] = "DQCMD_WRVAL"
 
char Cmd_DQCMD_RDVAL [] = "DQCMD_RDVAL"
 
char Cmd_DQCMD_WRVALM [] = "DQCMD_WRVALM"
 
char Cmd_DQCMD_RDVALM [] = "DQCMD_RDVALM"
 
char Cmd_DQCMD_SETCFG [] = "DQCMD_SETCFG"
 
char Cmd_DQCMD_RDSTS [] = "DQCMD_RDSTS"
 
char Cmd_DQCMD_GETCFG [] = "DQCMD_GETCFG"
 
char Cmd_DQCMD_WRCHNL [] = "DQCMD_WRCHNL"
 
char Cmd_DQCMD_RDCHNL [] = "DQCMD_RDCHNL"
 
char Cmd_DQCMD_SETCLK [] = "DQCMD_SETCLK"
 
char Cmd_DQCMD_START [] = "DQCMD_START"
 
char Cmd_DQCMD_SETCL [] = "DQCMD_SETCL"
 
char Cmd_DQCMD_SETTRL [] = "DQCMD_SETTRL"
 
char Cmd_DQCMD_FINISH [] = "DQCMD_FINISH"
 
char Cmd_DQCMD_WRRD [] = "DQCMD_WRRD"
 
char Cmd_DQCMD_WRFIFO [] = "DQCMD_WRFIFO"
 
char Cmd_DQCMD_RDFIFO [] = "DQCMD_RDFIFO"
 
char Cmd_DQCMD_WRRDFIFO [] = "DQCMD_WRRDFIFO"
 
char Cmd_DQCMD_WRFLASH [] = "DQCMD_WRFLASH"
 
char Cmd_DQCMD_UPDFLASH [] = "DQCMD_UPDFLASH"
 
char Cmd_DQCMD_SETSYNCRT [] = "DQCMD_SETSYNCRT"
 
char Cmd_DQCMD_SETCOMM [] = "DQCMD_SETCOMM"
 
char Cmd_DQCMD_SETNAME [] = "DQCMD_SETNAME"
 
char Cmd_DQCMD_RDNAME [] = "DQCMD_RDNAME"
 
char Cmd_DQCMD_SETPRM [] = "DQCMD_SETPRM"
 
char Cmd_DQCMD_GETPRM [] = "DQCMD_GETPRM"
 
char Cmd_DQCMD_WDSET [] = "DQCMD_WDSET"
 
char Cmd_DQCMD_SETCAL [] = "DQCMD_SETCAL"
 
char Cmd_DQCMD_SAVEPRM [] = "DQCMD_SAVEPRM"
 
char Cmd_DQCMD_SETMD [] = "DQCMD_SETMD"
 
char Cmd_DQCMD_SETRPLMAX [] = "DQCMD_SETRPLMAX"
 
char Cmd_DQCMD_SETPASS [] = "DQCMD_SETPASS"
 
char Cmd_DQCMD_GETCRC [] = "DQCMD_GETCRC"
 
char Cmd_DQCMD_GETCAPS [] = "DQCMD_GETCAPS"
 
char Cmd_DQCMD_INITIOM [] = "DQCMD_INITIOM"
 
char Cmd_DQCMD_IOCTL [] = "DQCMD_IOCTL"
 
char Cmd_DQCMD_IOCTLR [] = "DQCMD_IOCTLR"
 
char Cmd_DQCMD_IOCTLD [] = "DQCMD_IOCTLD"
 
char Cmd_DQCMD_SETTRIG [] = "DQCMD_SETTRIG"
 
char Cmd_DQCMD_BURST [] = "DQCMD_BURST"
 
char Cmd_DQCMD_SETLOCK [] = "DQCMD_SETLOCK"
 
char Cmd_DQCMD_RBFCPUWR [] = "DQCMD_RBFCPUWR"
 
char Cmd_DQCMD_RBFPAGEWR [] = "DQCMD_RBFPAGEWR"
 
char Cmd_DQCMD_RBFDEVLIST [] = "DQCMD_RBFDEVLIST"
 
char Cmd_DQCMD_SETAXMAP [] = "DQCMD_SETAXMAP"
 
char Cmd_DQCMD_EVENT [] = "DQCMD_EVENT"
 
char Cmd_DQCMD_UNKNOWN [] = "<unknown command>"
 

Typedef Documentation

◆ ll_file

typedef struct LL_FILE ll_file

Function Documentation

◆ AllocHLTables()

int AllocHLTables ( uint32  pid)

◆ ClearInstEntry()

int ClearInstEntry ( uint32  pid)

◆ date2mmddyy()

int DAQLIB date2mmddyy ( uint32  date,
int *  mm,
int *  dd,
int *  yy,
int *  hh,
int *  mn,
int *  ss 
)

◆ DqAddIOMPort()

int DAQLIB DqAddIOMPort ( int  handle,
int *  new_handle,
uint16  UDP_Port,
uint32  mTimeOut 
)

◆ DqCheckForCriticalError()

int DAQLIB DqCheckForCriticalError ( int  Iom,
int  error,
uint32  flags,
uint32 criticality 
)

◆ DqCloseIOM()

int DAQLIB DqCloseIOM ( int  Iom)

◆ DqCmdCheckAlive()

int DAQLIB DqCmdCheckAlive ( int  Iom,
uint32 response 
)

◆ DqCmdEcho()

int DAQLIB DqCmdEcho ( int  Iom,
pDQRDCFG  pDQRdCfg 
)

◆ DqCmdEchoBroadCast()

int DqCmdEchoBroadCast ( int  Iom,
pDQRDCFG  pDQRdCfg 
)

◆ DqCmdEchoBroadCastPNP()

int DqCmdEchoBroadCastPNP ( int  Iom,
pDQRDCFG  pDQRdCfg 
)

◆ DqCmdFinishDmap()

int DAQLIB DqCmdFinishDmap ( int  Iom,
uint32  dmapid 
)

◆ DqCmdGetCapabilities()

int DAQLIB DqCmdGetCapabilities ( int  Iom,
uint8  Layer,
int *  moredata,
char *  info 
)

◆ DqCmdGetCfg()

int DAQLIB DqCmdGetCfg ( int  Iom,
pDQGETCFG_RQ  pDQGetCfg,
pDQGETCFG  pDQCfgOut,
pDQGETCFG pcfg,
uint32 entries 
)

◆ DqCmdGetCRC()

int DAQLIB DqCmdGetCRC ( int  Iom,
DQCRCINFO pDQCRCInfo 
)

◆ DqCmdGetName()

int DAQLIB DqCmdGetName ( int  Iom,
uint32  BufLen,
char *  Buffer 
)

◆ DqCmdGetParameters()

int DAQLIB DqCmdGetParameters ( int  Iom,
pDQGETPRM  pDQGetParm,
uint8 data 
)

◆ DqCmdHwReset()

int DAQLIB DqCmdHwReset ( int  Iom)

◆ DqCmdInitIOM()

int DAQLIB DqCmdInitIOM ( int  Iom,
uint8  Layer,
uint32  ParamID,
uint32 Data 
)

◆ DqCmdIoctl()

int DAQLIB DqCmdIoctl ( int  Iom,
IN pDQIOCTL  IoIn,
pDQIOCTL  IoOut 
)

◆ DqCmdIoctlRetrySz()

int DAQLIB DqCmdIoctlRetrySz ( int  Iom,
uint32  size_in,
IN pDQIOCTL  IoIn,
uint32  size_out,
pDQIOCTL  IoOut 
)

◆ DqCmdIoctlSz()

int DAQLIB DqCmdIoctlSz ( int  Iom,
uint32  size_in,
IN pDQIOCTL  IoIn,
uint32  size_out,
pDQIOCTL  IoOut 
)

◆ DqCmdIoctlSz_unlock()

int DAQLIB DqCmdIoctlSz_unlock ( int  Iom,
uint32  size_in,
IN pDQIOCTL  IoIn,
uint32  size_out,
pDQIOCTL  IoOut 
)

◆ DqCmdRbfDevList()

int DAQLIB DqCmdRbfDevList ( int  Iom,
DQRBFDEV dev_list,
uint32 error 
)

◆ DqCmdRbfPageWrite()

int DAQLIB DqCmdRbfPageWrite ( int  Iom,
uint32  BaseAddr,
uint32  Size,
uint8  CrcVerification,
uint32 ProcessedBytes,
uint32 CRC,
uint32 error 
)

◆ DqCmdRbfTransferToBuffer()

int DAQLIB DqCmdRbfTransferToBuffer ( int  Iom,
uint32  Size,
uint8 Data,
uint32 CRC 
)

◆ DqCmdReadAll()

int DAQLIB DqCmdReadAll ( int  Iom,
pDQWRRD  pDQRd 
)

◆ DqCmdReadAll_int()

int DqCmdReadAll_int ( int  Iom,
pDQWRRD  pDQRd,
uint16 dqCounter,
uint16 dqTStamp 
)

◆ DqCmdReadAll_nocopy()

int DqCmdReadAll_nocopy ( int  Iom,
pDQWRRD ppWrRd,
pDQPKT ppDQPkt 
)

◆ DqCmdReadChannel()

int DAQLIB DqCmdReadChannel ( int  Iom,
pDQRDCHNL  pDQChannel,
void *  Data,
uint32 DataBufLen 
)

◆ DqCmdReadFIFO()

int DAQLIB DqCmdReadFIFO ( int  Iom,
pDQFIFO  pDQFifo 
)

◆ DqCmdReadMultipleValues()

int DAQLIB DqCmdReadMultipleValues ( int  Iom,
pwDQRDVALM  pDQRdMultVal,
uint8 Data 
)

◆ DqCmdReadStatus()

int DAQLIB DqCmdReadStatus ( int  Iom,
uint8 DeviceNum,
uint32 Entries,
uint32 Status,
uint32 StatusSize 
)

◆ DqCmdReadVal()

int DAQLIB DqCmdReadVal ( int  Iom,
uint32  Address,
uint32 Value 
)

◆ DqCmdReceiveEvent()

int DAQLIB DqCmdReceiveEvent ( int  handle,
uint32  flags,
int  timeout_us,
pDQEVENT event_buf,
int *  size 
)

◆ DqCmdReset()

int DAQLIB DqCmdReset ( int  Iom)

◆ DqCmdResetTimestamp()

int DAQLIB DqCmdResetTimestamp ( int  Iom)

◆ DqCmdSaveParameters()

int DAQLIB DqCmdSaveParameters ( int  Iom,
uint32  devn,
uint32 HashCode 
)

◆ DqCmdSendEndOfFrame()

int DqCmdSendEndOfFrame ( int  Iom,
uint32  DeviceNum 
)

◆ DqCmdSetCalibration()

int DAQLIB DqCmdSetCalibration ( int  Iom,
pDQSETCAL  pDQSetCal,
int *  entries 
)

◆ DqCmdSetCfg()

int DAQLIB DqCmdSetCfg ( int  Iom,
DQSETCFG  pDQSetCfg[],
uint32 Status,
uint32 entries 
)

◆ DqCmdSetChannelList()

int DAQLIB DqCmdSetChannelList ( int  Iom,
pDQSETCL  pDQSetCl,
uint32 entries 
)

◆ DqCmdSetClock()

int DAQLIB DqCmdSetClock ( int  Iom,
pDQSETCLK  pDQSetClk,
float *  CloseFreq,
uint32 entries 
)

◆ DqCmdSetCommParameters()

int DAQLIB DqCmdSetCommParameters ( int  Iom,
pDQSETCOMM  pDQSetComm,
uint32 CRC 
)

◆ DqCmdSetIoctlCode()

int DAQLIB DqCmdSetIoctlCode ( int  Iom,
int  ioctl_replace,
int  ioctl_code_set 
)

◆ DqCmdSetLock()

int DAQLIB DqCmdSetLock ( int  Iom,
uint8  Mode,
char *  Password,
uint32 IP 
)

◆ DqCmdSetMode()

int DAQLIB DqCmdSetMode ( int  Iom,
uint32  Mode,
uint32  Mask 
)

◆ DqCmdSetName()

int DAQLIB DqCmdSetName ( int  Iom,
char *  Name,
int32 CRC 
)

◆ DqCmdSetParameters()

int DAQLIB DqCmdSetParameters ( int  Iom,
pDQSETPRM  pDQSetParm,
uint32 CRC 
)

◆ DqCmdSetPassword()

int DAQLIB DqCmdSetPassword ( int  Iom,
uint32  Mode,
char *  Password 
)

◆ DqCmdSetReplyMaxSize()

int DAQLIB DqCmdSetReplyMaxSize ( int  Iom,
uint32  EthSize,
uint32  EthSizeBuf,
uint32  MaxNoPkts,
uint32 Accepted 
)

◆ DqCmdSetSyncRt()

int DAQLIB DqCmdSetSyncRt ( int  Iom,
pSYNCPLL  pSyncPll,
pSYNCRT  pSyncRt 
)

◆ DqCmdSetTransferList()

int DAQLIB DqCmdSetTransferList ( int  Iom,
pDQSETTRL  pDQSetTrl 
)

◆ DqCmdSetTrigger()

int DAQLIB DqCmdSetTrigger ( int  Iom,
pDQSETTRIG  pDQSetTrig,
uint32 entries 
)

◆ DqCmdSetWatchDog()

int DAQLIB DqCmdSetWatchDog ( int  Iom,
uint32  Mask,
uint32  time,
uint32 t2reset,
uint32 cstatus 
)

◆ DqCmdSwTrigger()

int DAQLIB DqCmdSwTrigger ( int  Iom,
uint32  Mask 
)

◆ DqCmdUpdateFlashBuffer()

int DAQLIB DqCmdUpdateFlashBuffer ( int  Iom,
uint16  Sector,
uint32  Address,
uint32  Size,
uint32 CRC 
)

◆ DqCmdWriteAll()

int DAQLIB DqCmdWriteAll ( int  Iom,
pDQWRRD  pDQWr 
)

◆ DqCmdWriteAll_int()

int DqCmdWriteAll_int ( int  Iom,
pDQWRRD  pDQWr,
uint16  dqCounter,
uint16  dqTStamp 
)

◆ DqCmdWriteChannel()

int DAQLIB DqCmdWriteChannel ( int  Iom,
pDQWRCHNL  DQChannelData,
uint32  DataBufLen 
)

◆ DqCmdWriteFIFO()

int DAQLIB DqCmdWriteFIFO ( int  Iom,
pDQFIFO  pDQFifo 
)

◆ DqCmdWriteMultipleValues()

int DAQLIB DqCmdWriteMultipleValues ( int  Iom,
pDQWRVALM  pDQWrMultVal 
)

◆ DqCmdWriteReadAll()

int DAQLIB DqCmdWriteReadAll ( int  Iom,
pDQWRRD  pDQWr,
pDQWRRD  pDQRd 
)

◆ DqCmdWriteReadAll_int()

int DqCmdWriteReadAll_int ( int  Iom,
pDQWRRD  pDQWr,
pDQWRRD  pDQRd,
uint16 dqCounter,
uint16 dqTStamp 
)

◆ DqCmdWriteReadFIFO()

int DAQLIB DqCmdWriteReadFIFO ( int  Iom,
pDQWRRDFIFO  pDQWrRdFifoPut,
pDQWRRDFIFO  pDQWrRdFifoGet 
)

◆ DqCmdWriteToFlashBuffer()

int DAQLIB DqCmdWriteToFlashBuffer ( int  Iom,
uint32  Size,
uint8 Data,
uint32 CRC 
)

◆ DqCmdWriteVal()

int DAQLIB DqCmdWriteVal ( int  Iom,
uint32  Address,
uint32 Value 
)

◆ DqGetDevnBySerial()

int DAQLIB DqGetDevnBySerial ( int  Iom,
uint32  Serial,
uint32 devn,
uint32 slot,
uint32 address,
uint16 model 
)

◆ DqGetDevnBySlot()

int DAQLIB DqGetDevnBySlot ( int  Iom,
uint32  Slot,
uint32 devn,
uint32 serial,
uint32 address,
uint16 model 
)

◆ DqGetIom()

pDQIOME DAQLIB DqGetIom ( int  hd)

◆ DqGetLastStatus()

int DAQLIB DqGetLastStatus ( int  Iom,
uint32 data,
uint32 size 
)

◆ DqGetPacketSize()

int DAQLIB DqGetPacketSize ( int  Iom,
uint32 MinUdpPayload,
uint32 MaxUdpPayload 
)

◆ DqInitRbf()

int DAQLIB DqInitRbf ( int  Iom)

◆ DqOpenIOM()

int DAQLIB DqOpenIOM ( char *  IP,
uint16  UDP_Port,
uint32  mTimeOut,
int *  handle,
pDQRDCFG pDqCfg 
)

◆ DqReadRbf()

int DAQLIB DqReadRbf ( char *  filename,
char *  buffer,
uint32  size,
uint32 bytes 
)

◆ DqSendAndRecvCmd()

int DqSendAndRecvCmd ( int  Iom,
int  sPktSz,
int  delay,
int *  rPktSz 
)

◆ DqSetPacketSize()

int DAQLIB DqSetPacketSize ( int  Iom,
uint32  MinUdpPayload,
uint32  MaxUdpPayload 
)

◆ DqSetTimeout()

int DAQLIB DqSetTimeout ( int  Iom,
pDQE  pDqe,
int  Timeoutms 
)

◆ findStrInArr()

int findStrInArr ( char *  str,
char *  strArr[],
int  arrSize 
)

◆ FreeHLTables()

int FreeHLTables ( uint32  pid)

◆ GetInstEntry()

pDQINSTE GetInstEntry ( )

◆ GetParsedCapsInfo()

int GetParsedCapsInfo ( int  Iom,
uint8  dev,
char *  cap_buf,
size_t  bufsize,
char *  cap_names[],
char *  cap_vals[],
int *  cap_count 
)

◆ htondbl()

double htondbl ( double  f)

◆ htonf()

float htonf ( float  f)

◆ InitInstEntry()

int InitInstEntry ( uint32  pid)

◆ mmddyy2date()

uint32 DAQLIB mmddyy2date ( int  mm,
int  dd,
int  yy,
int  hh,
int  mn,
int  ss 
)

◆ ntohdbl()

double ntohdbl ( double  f)

◆ ntohf()

float ntohf ( float  f)

◆ ObtainCapsInfo()

int ObtainCapsInfo ( int  Iom,
uint8  dev 
)

◆ ObtainDQCfg()

int ObtainDQCfg ( int  Iom)

◆ ObtainPktSize()

int ObtainPktSize ( int  Iom)

◆ rbfClose()

static void rbfClose ( ll_file rbf)
static

◆ rbfOpen()

static ll_file* rbfOpen ( const char *  file_name,
FILE *  out 
)
static

◆ rbfProcess()

static int rbfProcess ( ll_file rbf,
char *  rbfbuffer,
unsigned int  buffersize,
FILE *  out 
)
static

◆ RecvDqPkt()

int RecvDqPkt ( int  hd,
char *  buf,
int  len,
int  flags,
volatile uint32 RqId 
)

◆ SendDqPkt()

int SendDqPkt ( int  hd,
const char *  buf,
int  len,
int  flags,
uint32 RqId 
)

◆ WaitDqPkt()

int WaitDqPkt ( int  hd,
volatile uint32 RqId,
int  timeout_ms 
)

◆ WaitDqPkt_uS()

int WaitDqPkt_uS ( int  hd,
volatile uint32 RqId,
int  timeout_us 
)

Variable Documentation

◆ Cmd_DQCMD_BURST

char Cmd_DQCMD_BURST[] = "DQCMD_BURST"

◆ Cmd_DQCMD_ECHB

char Cmd_DQCMD_ECHB[] = "DQCMD_ECHB"

◆ Cmd_DQCMD_ECHO

char Cmd_DQCMD_ECHO[] = "DQCMD_ECHO"

◆ Cmd_DQCMD_ECHOPNP

char Cmd_DQCMD_ECHOPNP[] = "DQCMD_ECHOPNP"

◆ Cmd_DQCMD_EFR

char Cmd_DQCMD_EFR[] = "DQCMD_EFR"

◆ Cmd_DQCMD_EVENT

char Cmd_DQCMD_EVENT[] = "DQCMD_EVENT"

◆ Cmd_DQCMD_FINISH

char Cmd_DQCMD_FINISH[] = "DQCMD_FINISH"

◆ Cmd_DQCMD_GETCAPS

char Cmd_DQCMD_GETCAPS[] = "DQCMD_GETCAPS"

◆ Cmd_DQCMD_GETCFG

char Cmd_DQCMD_GETCFG[] = "DQCMD_GETCFG"

◆ Cmd_DQCMD_GETCRC

char Cmd_DQCMD_GETCRC[] = "DQCMD_GETCRC"

◆ Cmd_DQCMD_GETPRM

char Cmd_DQCMD_GETPRM[] = "DQCMD_GETPRM"

◆ Cmd_DQCMD_INITIOM

char Cmd_DQCMD_INITIOM[] = "DQCMD_INITIOM"

◆ Cmd_DQCMD_IOCTL

char Cmd_DQCMD_IOCTL[] = "DQCMD_IOCTL"

◆ Cmd_DQCMD_IOCTLD

char Cmd_DQCMD_IOCTLD[] = "DQCMD_IOCTLD"

◆ Cmd_DQCMD_IOCTLR

char Cmd_DQCMD_IOCTLR[] = "DQCMD_IOCTLR"

◆ Cmd_DQCMD_RBFCPUWR

char Cmd_DQCMD_RBFCPUWR[] = "DQCMD_RBFCPUWR"

◆ Cmd_DQCMD_RBFDEVLIST

char Cmd_DQCMD_RBFDEVLIST[] = "DQCMD_RBFDEVLIST"

◆ Cmd_DQCMD_RBFPAGEWR

char Cmd_DQCMD_RBFPAGEWR[] = "DQCMD_RBFPAGEWR"

◆ Cmd_DQCMD_RDCHNL

char Cmd_DQCMD_RDCHNL[] = "DQCMD_RDCHNL"

◆ Cmd_DQCMD_RDFIFO

char Cmd_DQCMD_RDFIFO[] = "DQCMD_RDFIFO"

◆ Cmd_DQCMD_RDNAME

char Cmd_DQCMD_RDNAME[] = "DQCMD_RDNAME"

◆ Cmd_DQCMD_RDSTS

char Cmd_DQCMD_RDSTS[] = "DQCMD_RDSTS"

◆ Cmd_DQCMD_RDVAL

char Cmd_DQCMD_RDVAL[] = "DQCMD_RDVAL"

◆ Cmd_DQCMD_RDVALM

char Cmd_DQCMD_RDVALM[] = "DQCMD_RDVALM"

◆ Cmd_DQCMD_RST

char Cmd_DQCMD_RST[] = "DQCMD_RST"

◆ Cmd_DQCMD_SAVEPRM

char Cmd_DQCMD_SAVEPRM[] = "DQCMD_SAVEPRM"

◆ Cmd_DQCMD_SETAXMAP

char Cmd_DQCMD_SETAXMAP[] = "DQCMD_SETAXMAP"

◆ Cmd_DQCMD_SETCAL

char Cmd_DQCMD_SETCAL[] = "DQCMD_SETCAL"

◆ Cmd_DQCMD_SETCFG

char Cmd_DQCMD_SETCFG[] = "DQCMD_SETCFG"

◆ Cmd_DQCMD_SETCL

char Cmd_DQCMD_SETCL[] = "DQCMD_SETCL"

◆ Cmd_DQCMD_SETCLK

char Cmd_DQCMD_SETCLK[] = "DQCMD_SETCLK"

◆ Cmd_DQCMD_SETCOMM

char Cmd_DQCMD_SETCOMM[] = "DQCMD_SETCOMM"

◆ Cmd_DQCMD_SETLOCK

char Cmd_DQCMD_SETLOCK[] = "DQCMD_SETLOCK"

◆ Cmd_DQCMD_SETMD

char Cmd_DQCMD_SETMD[] = "DQCMD_SETMD"

◆ Cmd_DQCMD_SETNAME

char Cmd_DQCMD_SETNAME[] = "DQCMD_SETNAME"

◆ Cmd_DQCMD_SETPASS

char Cmd_DQCMD_SETPASS[] = "DQCMD_SETPASS"

◆ Cmd_DQCMD_SETPRM

char Cmd_DQCMD_SETPRM[] = "DQCMD_SETPRM"

◆ Cmd_DQCMD_SETRPLMAX

char Cmd_DQCMD_SETRPLMAX[] = "DQCMD_SETRPLMAX"

◆ Cmd_DQCMD_SETSYNCRT

char Cmd_DQCMD_SETSYNCRT[] = "DQCMD_SETSYNCRT"

◆ Cmd_DQCMD_SETTRIG

char Cmd_DQCMD_SETTRIG[] = "DQCMD_SETTRIG"

◆ Cmd_DQCMD_SETTRL

char Cmd_DQCMD_SETTRL[] = "DQCMD_SETTRL"

◆ Cmd_DQCMD_START

char Cmd_DQCMD_START[] = "DQCMD_START"

◆ Cmd_DQCMD_UNKNOWN

char Cmd_DQCMD_UNKNOWN[] = "<unknown command>"

◆ Cmd_DQCMD_UPDFLASH

char Cmd_DQCMD_UPDFLASH[] = "DQCMD_UPDFLASH"

◆ Cmd_DQCMD_WDSET

char Cmd_DQCMD_WDSET[] = "DQCMD_WDSET"

◆ Cmd_DQCMD_WRCHNL

char Cmd_DQCMD_WRCHNL[] = "DQCMD_WRCHNL"

◆ Cmd_DQCMD_WRFIFO

char Cmd_DQCMD_WRFIFO[] = "DQCMD_WRFIFO"

◆ Cmd_DQCMD_WRFLASH

char Cmd_DQCMD_WRFLASH[] = "DQCMD_WRFLASH"

◆ Cmd_DQCMD_WRRD

char Cmd_DQCMD_WRRD[] = "DQCMD_WRRD"

◆ Cmd_DQCMD_WRRDFIFO

char Cmd_DQCMD_WRRDFIFO[] = "DQCMD_WRRDFIFO"

◆ Cmd_DQCMD_WRVAL

char Cmd_DQCMD_WRVAL[] = "DQCMD_WRVAL"

◆ Cmd_DQCMD_WRVALM

char Cmd_DQCMD_WRVALM[] = "DQCMD_WRVALM"

◆ Err_BAD_CONFIG

char Err_BAD_CONFIG[] = "Bad configuration for device"

◆ Err_BAD_DEVN

char Err_BAD_DEVN[] = "Invalid device number"

◆ Err_BAD_PARAMETER

char Err_BAD_PARAMETER[] = "Invalid parameter"

◆ Err_CALIBRATION_ERROR

char Err_CALIBRATION_ERROR[] = "Error While performing calibration, verify your wiring"

◆ Err_DATA_ERROR

char Err_DATA_ERROR[] = "Layer returned invalid data"

◆ Err_DATA_NOT_AVAILABLE

char Err_DATA_NOT_AVAILABLE[] = "Requested data is not available"

◆ Err_DEVICE_BUSY

char Err_DEVICE_BUSY[] = "Device already in use"

◆ Err_DEVICE_NOTREADY

char Err_DEVICE_NOTREADY[] = "Device is not ready"

◆ Err_DQERR_EXEC

char Err_DQERR_EXEC[] = "Exeption on command execution"

◆ Err_DQERR_GENFAIL

char Err_DQERR_GENFAIL[] = "General failure"

◆ Err_DQERR_INVREQ

char Err_DQERR_INVREQ[] = "Invalid request number (RDFIFO)"

◆ Err_DQERR_LOST

char Err_DQERR_LOST[] = "Packet lost (out of sequence)"

◆ Err_DQERR_MOREDATA

char Err_DQERR_MOREDATA[] = "More data is available"

◆ Err_DQERR_NIMP

char Err_DQERR_NIMP[] = "DaqBIOS command is not implemented or unknown command"

◆ Err_DQERR_NOMORE

char Err_DQERR_NOMORE[] = "No more data is available"

◆ Err_DQERR_NOOPS

char Err_DQERR_NOOPS[] = "DQ not in operation state"

◆ Err_DQERR_NOSEND

char Err_DQERR_NOSEND[] = "Do not return packet"

◆ Err_DQERR_OPS

char Err_DQERR_OPS[] = "IOM is in operation state"

◆ Err_DQERR_PARAM

char Err_DQERR_PARAM[] = "Device cannot complete request with specified parameters"

◆ Err_DQERR_PENDING

char Err_DQERR_PENDING[] = "Do not return packet, do not free buffer"

◆ Err_DQERR_RCV

char Err_DQERR_RCV[] = "Packet receive error"

◆ Err_DQERR_SND

char Err_DQERR_SND[] = "Packet send error"

◆ Err_DQERR_TOOOLD

char Err_DQERR_TOOOLD[] = "Request is too old (RDFIFO)"

◆ Err_DQIOM_ERROR

char Err_DQIOM_ERROR[] = "IOM error"

◆ Err_DQPKT_TOOLONG

char Err_DQPKT_TOOLONG[] = "Data length exceed packet size"

◆ Err_DQRECV_ERROR

char Err_DQRECV_ERROR[] = "Receiving error"

◆ Err_DQSEND_ERROR

char Err_DQSEND_ERROR[] = "Sending error"

◆ Err_DQSOCK_LIB_ERROR

char Err_DQSOCK_LIB_ERROR[] = "Socket error"

◆ Err_EVENT_ERROR

char Err_EVENT_ERROR[] = "Event handling error"

◆ Err_FIFO_OVERFLOW

char Err_FIFO_OVERFLOW[] = "Device FIFO overflow"

◆ Err_ILLEGAL_ENTRY

char Err_ILLEGAL_ENTRY[] = "Invalid entry"

◆ Err_ILLEGAL_HANDLE

char Err_ILLEGAL_HANDLE[] = "Invalid handle"

◆ Err_ILLEGAL_PKTSIZE

char Err_ILLEGAL_PKTSIZE[] = "Incorrect packet size"

◆ Err_INIT_ERROR

char Err_INIT_ERROR[] = "Library initializtion error"

◆ Err_LPERR_ADDROUTRANGE

char Err_LPERR_ADDROUTRANGE[] ="ERROR: Device address out of range"

◆ Err_LPERR_BADCRC

char Err_LPERR_BADCRC[] ="ERROR: CRC Error"

◆ Err_LPERR_BUSY

char Err_LPERR_BUSY[] ="ERROR: CS4 module is busy"

◆ Err_LPERR_CMDRD

char Err_LPERR_CMDRD[] ="ERROR: Read command in progress"

◆ Err_LPERR_CMDWR

char Err_LPERR_CMDWR[] ="ERROR: Write command in progress"

◆ Err_LPERR_EPCSOVERFULL

char Err_LPERR_EPCSOVERFULL[] ="ERROR: FPGA load IC is overfull"

◆ Err_LPERR_IMGVERSIZE

char Err_LPERR_IMGVERSIZE[] ="ERROR: Image size exceeds FPGA load IC size"

◆ Err_LPERR_IO1_12_NOT_EMPTY

char Err_LPERR_IO1_12_NOT_EMPTY[] ="ERROR: DNR slot IO 1,3-12 should be empty. Take the layers out from those slots"

◆ Err_LPERR_IO2_EMPTY

char Err_LPERR_IO2_EMPTY[] ="ERROR: DNR I/O 2 slot empty or layer does not support logic updating"

◆ Err_LPERR_IO3_NOT_EMPTY

char Err_LPERR_IO3_NOT_EMPTY[] ="ERROR: DNR I/O 3 slot not empty"

◆ Err_LPERR_MEMALOC

char Err_LPERR_MEMALOC[] ="ERROR: Unable to allocate memory"

◆ Err_LPERR_SUPASS

char Err_LPERR_SUPASS[] ="ERROR: Wrong SU password"

◆ Err_LPERR_UNABLECOMMSP

char Err_LPERR_UNABLECOMMSP[] ="ERROR: Unable to communicate with on-layer MSP microcontroller"

◆ Err_LPERR_WRONG_CPU_MODEL

char Err_LPERR_WRONG_CPU_MODEL[] ="ERROR: CPU layer does not support logic updating"

◆ Err_NO_MEMORY

char Err_NO_MEMORY[] = "Not enough memory"

◆ Err_NOT_ENOUGH_ROOM

char Err_NOT_ENOUGH_ROOM[] = "Not enough room in the packet/structure"

◆ Err_NOT_IMPLEMENTED

char Err_NOT_IMPLEMENTED[] = "Function is not implemented"

◆ Err_TIMEOUT_ERROR

char Err_TIMEOUT_ERROR[] = "Timeout error"

◆ Err_WRONG_DMAP

char Err_WRONG_DMAP[] = "Requested and received dmap ids do not match"

◆ InstTable

◆ IOMTable

◆ IOMTableLock

tUeiPalObject IOMTableLock