TwiceAsNice
2019-02-18
|
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_file * | rbfOpen (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>" |
int AllocHLTables | ( | uint32 | pid | ) |
int ClearInstEntry | ( | uint32 | pid | ) |
int DAQLIB DqCloseIOM | ( | int | Iom | ) |
int DqCmdEchoBroadCast | ( | int | Iom, |
pDQRDCFG | pDQRdCfg | ||
) |
int DqCmdEchoBroadCastPNP | ( | int | Iom, |
pDQRDCFG | pDQRdCfg | ||
) |
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 | handle, |
uint32 | flags, | ||
int | timeout_us, | ||
pDQEVENT * | event_buf, | ||
int * | size | ||
) |
int DAQLIB DqCmdReset | ( | int | Iom | ) |
int DAQLIB DqCmdResetTimestamp | ( | int | Iom | ) |
int DqCmdSendEndOfFrame | ( | int | Iom, |
uint32 | DeviceNum | ||
) |
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 DqCmdWriteReadAll_int | ( | int | Iom, |
pDQWRRD | pDQWr, | ||
pDQWRRD | pDQRd, | ||
uint16 * | dqCounter, | ||
uint16 * | dqTStamp | ||
) |
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 | ||
) |
int DqSendAndRecvCmd | ( | int | Iom, |
int | sPktSz, | ||
int | delay, | ||
int * | rPktSz | ||
) |
int findStrInArr | ( | char * | str, |
char * | strArr[], | ||
int | arrSize | ||
) |
int FreeHLTables | ( | uint32 | pid | ) |
pDQINSTE GetInstEntry | ( | ) |
int GetParsedCapsInfo | ( | int | Iom, |
uint8 | dev, | ||
char * | cap_buf, | ||
size_t | bufsize, | ||
char * | cap_names[], | ||
char * | cap_vals[], | ||
int * | cap_count | ||
) |
double htondbl | ( | double | f | ) |
float htonf | ( | float | f | ) |
int InitInstEntry | ( | uint32 | pid | ) |
double ntohdbl | ( | double | f | ) |
float ntohf | ( | float | f | ) |
int ObtainCapsInfo | ( | int | Iom, |
uint8 | dev | ||
) |
int ObtainDQCfg | ( | int | Iom | ) |
int ObtainPktSize | ( | int | Iom | ) |
|
static |
|
static |
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 Cmd_DQCMD_BURST[] = "DQCMD_BURST" |
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_EVENT[] = "DQCMD_EVENT" |
char Cmd_DQCMD_FINISH[] = "DQCMD_FINISH" |
char Cmd_DQCMD_GETCAPS[] = "DQCMD_GETCAPS" |
char Cmd_DQCMD_GETCFG[] = "DQCMD_GETCFG" |
char Cmd_DQCMD_GETCRC[] = "DQCMD_GETCRC" |
char Cmd_DQCMD_GETPRM[] = "DQCMD_GETPRM" |
char Cmd_DQCMD_INITIOM[] = "DQCMD_INITIOM" |
char Cmd_DQCMD_IOCTL[] = "DQCMD_IOCTL" |
char Cmd_DQCMD_IOCTLD[] = "DQCMD_IOCTLD" |
char Cmd_DQCMD_IOCTLR[] = "DQCMD_IOCTLR" |
char Cmd_DQCMD_RBFCPUWR[] = "DQCMD_RBFCPUWR" |
char Cmd_DQCMD_RBFDEVLIST[] = "DQCMD_RBFDEVLIST" |
char Cmd_DQCMD_RBFPAGEWR[] = "DQCMD_RBFPAGEWR" |
char Cmd_DQCMD_RDCHNL[] = "DQCMD_RDCHNL" |
char Cmd_DQCMD_RDFIFO[] = "DQCMD_RDFIFO" |
char Cmd_DQCMD_RDNAME[] = "DQCMD_RDNAME" |
char Cmd_DQCMD_RDSTS[] = "DQCMD_RDSTS" |
char Cmd_DQCMD_RDVAL[] = "DQCMD_RDVAL" |
char Cmd_DQCMD_RDVALM[] = "DQCMD_RDVALM" |
char Cmd_DQCMD_RST[] = "DQCMD_RST" |
char Cmd_DQCMD_SAVEPRM[] = "DQCMD_SAVEPRM" |
char Cmd_DQCMD_SETAXMAP[] = "DQCMD_SETAXMAP" |
char Cmd_DQCMD_SETCAL[] = "DQCMD_SETCAL" |
char Cmd_DQCMD_SETCFG[] = "DQCMD_SETCFG" |
char Cmd_DQCMD_SETCL[] = "DQCMD_SETCL" |
char Cmd_DQCMD_SETCLK[] = "DQCMD_SETCLK" |
char Cmd_DQCMD_SETCOMM[] = "DQCMD_SETCOMM" |
char Cmd_DQCMD_SETLOCK[] = "DQCMD_SETLOCK" |
char Cmd_DQCMD_SETMD[] = "DQCMD_SETMD" |
char Cmd_DQCMD_SETNAME[] = "DQCMD_SETNAME" |
char Cmd_DQCMD_SETPASS[] = "DQCMD_SETPASS" |
char Cmd_DQCMD_SETPRM[] = "DQCMD_SETPRM" |
char Cmd_DQCMD_SETRPLMAX[] = "DQCMD_SETRPLMAX" |
char Cmd_DQCMD_SETSYNCRT[] = "DQCMD_SETSYNCRT" |
char Cmd_DQCMD_SETTRIG[] = "DQCMD_SETTRIG" |
char Cmd_DQCMD_SETTRL[] = "DQCMD_SETTRL" |
char Cmd_DQCMD_START[] = "DQCMD_START" |
char Cmd_DQCMD_UNKNOWN[] = "<unknown command>" |
char Cmd_DQCMD_UPDFLASH[] = "DQCMD_UPDFLASH" |
char Cmd_DQCMD_WDSET[] = "DQCMD_WDSET" |
char Cmd_DQCMD_WRCHNL[] = "DQCMD_WRCHNL" |
char Cmd_DQCMD_WRFIFO[] = "DQCMD_WRFIFO" |
char Cmd_DQCMD_WRFLASH[] = "DQCMD_WRFLASH" |
char Cmd_DQCMD_WRRD[] = "DQCMD_WRRD" |
char Cmd_DQCMD_WRRDFIFO[] = "DQCMD_WRRDFIFO" |
char Cmd_DQCMD_WRVAL[] = "DQCMD_WRVAL" |
char Cmd_DQCMD_WRVALM[] = "DQCMD_WRVALM" |
char Err_BAD_CONFIG[] = "Bad configuration for device" |
char Err_BAD_DEVN[] = "Invalid device number" |
char Err_BAD_PARAMETER[] = "Invalid parameter" |
char Err_CALIBRATION_ERROR[] = "Error While performing calibration, verify your wiring" |
char Err_DATA_ERROR[] = "Layer returned invalid data" |
char Err_DATA_NOT_AVAILABLE[] = "Requested data is not available" |
char Err_DEVICE_BUSY[] = "Device already in use" |
char Err_DEVICE_NOTREADY[] = "Device is not ready" |
char Err_DQERR_EXEC[] = "Exeption on command execution" |
char Err_DQERR_GENFAIL[] = "General failure" |
char Err_DQERR_INVREQ[] = "Invalid request number (RDFIFO)" |
char Err_DQERR_LOST[] = "Packet lost (out of sequence)" |
char Err_DQERR_MOREDATA[] = "More data is available" |
char Err_DQERR_NIMP[] = "DaqBIOS command is not implemented or unknown command" |
char Err_DQERR_NOMORE[] = "No more data is available" |
char Err_DQERR_NOOPS[] = "DQ not in operation state" |
char Err_DQERR_NOSEND[] = "Do not return packet" |
char Err_DQERR_OPS[] = "IOM is in operation state" |
char Err_DQERR_PARAM[] = "Device cannot complete request with specified parameters" |
char Err_DQERR_SND[] = "Packet send error" |
char Err_DQERR_TOOOLD[] = "Request is too old (RDFIFO)" |
char Err_DQIOM_ERROR[] = "IOM error" |
char Err_DQPKT_TOOLONG[] = "Data length exceed packet size" |
char Err_DQRECV_ERROR[] = "Receiving error" |
char Err_DQSEND_ERROR[] = "Sending error" |
char Err_DQSOCK_LIB_ERROR[] = "Socket error" |
char Err_EVENT_ERROR[] = "Event handling error" |
char Err_FIFO_OVERFLOW[] = "Device FIFO overflow" |
char Err_ILLEGAL_ENTRY[] = "Invalid entry" |
char Err_ILLEGAL_HANDLE[] = "Invalid handle" |
char Err_ILLEGAL_PKTSIZE[] = "Incorrect packet size" |
char Err_INIT_ERROR[] = "Library initializtion error" |
char Err_LPERR_ADDROUTRANGE[] ="ERROR: Device address out of range" |
char Err_LPERR_BADCRC[] ="ERROR: CRC Error" |
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_EPCSOVERFULL[] ="ERROR: FPGA load IC is overfull" |
char Err_LPERR_IMGVERSIZE[] ="ERROR: Image size exceeds FPGA load IC size" |
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 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_MEMALOC[] ="ERROR: Unable to allocate memory" |
char Err_LPERR_SUPASS[] ="ERROR: Wrong SU password" |
char Err_LPERR_UNABLECOMMSP[] ="ERROR: Unable to communicate with on-layer MSP microcontroller" |
char Err_LPERR_WRONG_CPU_MODEL[] ="ERROR: CPU layer does not support logic updating" |
char Err_NO_MEMORY[] = "Not enough memory" |
char Err_NOT_ENOUGH_ROOM[] = "Not enough room in the packet/structure" |
char Err_NOT_IMPLEMENTED[] = "Function is not implemented" |
char Err_TIMEOUT_ERROR[] = "Timeout error" |
char Err_WRONG_DMAP[] = "Requested and received dmap ids do not match" |
DQINSTE InstTable[DQ_MAX_INST_TABLE_SIZE] |
DQIOME IOMTable[DQ_MAX_IOM_TABLE_SIZE] |
tUeiPalObject IOMTableLock |