@CHIP-RTOS C Library - TCP/IP API
Receive and process incoming data at the TCP/IP stack.
int Dev_Recv_Interface( DevUserIfaceHandle DevHandlePtr,
int * errorcode);
- Device handle
- Output parameter: Failure
code, 0 on success.
- 0: success
-1: See reported errorcode
- Go here
for example usage of this API.
This API invokes your device driver's receiver
function to collect the incoming data from your device.
Your receiver callback function will then pass the received data up
the TCP/IP stack.
- This library function invokes a RTOS software interrupt.
Refer to this RTOS API function's
for more details.
On SC1x3/SC2x (RTOS version >=1.13, CLIB version >=2.10) there's
also a version of this function which uses dynamic linking instead of a
software interrupt, which reduces the function's overhead and thus
speeds up your application. This function's name is
Dev_Recv_Interface_Dyn. You should however not use this function
directly. Instead you should add the define TCPIP_DYN_LINK_DEV
to your program before including the CLIB's header file(s):
This will map the original function's name to the dynamic linking
version. This way you can also easily switch existing programs to
- Example - function which would be called by this API
- Example - Receiver Task which calls this API
Supported since or modified in @CHIP-RTOS version
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document