01.06.2013 Views

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

For more detailed description see How to add a user device driver/link layer interface<br />

Clib TCPIP.C implementation of this function:<br />

int Dev_Close_Interface(DevUserIfaceHandle DevHandlePtr,<br />

int * errorcode);<br />

Related Topics<br />

Top of list<br />

Index page<br />

DEV_OPEN_IFACE - Open device driver interface<br />

Interrupt 0xAC service 0xA2: DEV_RECV_IFACE, Move received data<br />

Parameters<br />

AH<br />

ES:DI<br />

Receive and process incoming data at the TCP/IP stack.<br />

0xA2 (=DEV_RECV_IFACE)<br />

Device handle from the IfaceHandle member of the DevUserDriver structure used at the<br />

DEV_OPEN_IFACE call.<br />

Return Value<br />

Comments<br />

DX = 0, AX = 0: Success.<br />

DX = -1: Failure, AX contains error code<br />

255: Insufficient memory to complete operation<br />

This function must be called to process incoming data on the TCP/IP stack. This function in turn calls the<br />

driver receive function (specified by the DevRecv member of the DevUserDriver structure at the<br />

DEV_OPEN_IFACE call) and inserts the received data into the receive queue of the matching socket (if there<br />

is one). Any tasks waiting on the socket (sleeping at RECV or RECVFROM ) are then signaled that there is<br />

new data available. Only IGMP and ARP requests are directly processed in the task which does this call.<br />

Do not call this API from inside of an ISR!<br />

This function should be used only in combination with the Wait for receive event API call in the user's receiver<br />

task for their device driver interface.<br />

For more detailed description see How to add an TCP/IP device driver/link layer interface<br />

Clib TCPIP.C implementation of this function:<br />

int Dev_Recv_Interface( DevUserIfaceHandle DevHandlePtr,<br />

int * errorcode);<br />

Related Topics<br />

Example - Receiver Task which calls this API<br />

Example Receiver function which would be called by this API<br />

Page 151 / 400

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!