Download PowerDNA API Reference Manual

Transcript
PowerDNA API Reference Manual, Release 4.0
Description:
Get pointer to the beginning of the input data map allocated for the specified device
3.5.4 DqRtVmapGetOutputMap
Syntax:
int DqRtVmapGetOutputMap(int handle, int dmapid, int trl_list,
unsigned char** mappedData);
Input:
int handle
Handle to the IOM
int dmapid
Identifier of the VMAP
int trl_list
Index of the VMAP entry
Output:
unsigned char**
pointer to the beginning of the specified entry output VMAP
mappedData
buffer
Return:
DQ_ILLEGAL_HANDLE
invalid IOM handle
DQ_BAD_DEVN
there is no device with the specified number
DQ_SUCCESS
command processed successfully
Description:
Get pointer to the beginning of the output data map allocated for the specified device.
3.5.5 DqRtVmapAddOutputData
Syntax:
int DqRtVmapAddOutputData(int handle, int vmapid, int trl_index,
uint32 data_size, int* act_size, uint8* data);
Input:
int handle
Handle to the IOM
int vmapid
Identifier of the VMAP to write to
int trl_index
Index of the VMAP entry to update
int data_Size
Size of the data buffer in bytes
uint8* data
Data to send to the VMAP
Output:
int* act_size
Number of bytes actually sent to the VMAP
Return:
DQ_ILLEGAL_HANDLE
invalid IOM handle
DQ_BAD_DEVN
there is no device with the specified number
DQ_SUCCESS
command processed successfully
Description:
Copies data into the output packet and returns number of bytes left in the packet.
- 79 -