EdbgRecv
This function receives messages from the client over the Ethernet debug interface.
BOOL EdbgRecv(
UCHAR Id,
UCHAR *pRecvBuf,
DWORD *pdwLen,
DWORD Timeout );
Parameters
Id
[in] Identifier of the EDBG client (returned from EdbgRegisterClient).pRecvBuf
[out] Pointer to the buffer to receive data.pdwLen
[in] Pointer to a DWORD that contains the buffer size.[out] Pointer to a DWORD that contains the number of bytes of data received.
Timeout
[in] DWORD that contains the timeout value in seconds, which is one of the following two values:Value Description 0 Don't block INFINITE Wait indefinitely
Return Values
TRUE indicates success. FALSE indicates failure.
Remarks
If no data is received for the specified service, this function blocks until data is ready or a timeout occurs. Provide a buffer size, in bytes, equal to or greater than EDBG_MAX_DATA_SIZE, or outstanding data will be discarded.
This function is implemented in the Edbg.dll that is loaded by an application on the development workstation; it is also implemented in Ethdbg.lib, which is linked into the kernel on the target device.
Requirements
Runs on | Versions | Defined in | Include | Link to |
---|---|---|---|---|
Windows CE OS | 2.10 and later | Ethdbg.h | Ethdbg.lib |
See Also
EdbgRegisterClient (Development Workstation), EdbgRegisterClient (Target Device), EdbgSend