Download PowerDNA API Reference Manual

Transcript
PowerDNA API Reference Manual, Release 4.0
j. for Rx FIFO control (Rx only)
DQ_AR_LB_CHECK_PARITY - include parity check into loopback comparison
DQ_AR_ADD_TIMESTAMP - add timestamp into FIFO data
k. frame counter mode (Rx only)
DQ_FRCNT_COUNT_ALL
- count all frames
DQ_FRCNT_COUNT_GOOD
- only correctly received frames
DQ_FRCNT_COUNT_FIFO
- only placed into the FIFO
DQ_FRCNT_COUNT_TRIGGER - count frames that triggered scheduler
DQ_FRCNT_COUNT_PAR_ERR - count frames with parity error
l. control zero label and FIFO priority behavior (Tx only)
DQ_AR_ALLOW_ZERO_LBL - allow scheduler to output zero labels
DQ_AR_ALLOW_FIFO_HIGH - set FIFO priority higher than scheduler
Note:
None.
4.24.6
DqAdv566SetFilter
Syntax:
int DqAdv566SetFilter(int hd, int devn, int chnl, uint32 cmd, uint32 from, uint32
size, uint32* labels)
Command:
IOCTL
Input:
int hd
Handle to IOM received from DqOpenIOM()
int devn
Layer inside the IOM
int chnl
Channel
uint32 cmd
Command (see description)
uint32 from
Start entry
uint32 size
Number of entries to set/get
uint32* labels
Array of label entries to write/read
Output:
None.
Return:
DQ_NO_MEMORY
error allocating buffer
DQ_ILLEGAL_HANDLE illegal IOM Descriptor or communication wasn’t established
DQ_BAD_DEVN
device indicated by devn does not exist or is not 429-566
DQ_SEND_ERROR
unable to send the Command to IOM
DQ_TIMEOUT_ERROR
nothing is heard from the IOM for Time out duration
DQ_IOM_ERROR
error occurred at the IOM when performing this command
DQ_SUCCESS
successful completion
Other negative values
low level IOM error
Description:
This function writes to or reads from the label filter.
The following commands are valid
DQ_AR_SETFILTER_PUT - change label entries
- 250 -