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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

BX<br />

CX<br />

ES:DI<br />

Number of available received packets<br />

Number of sent packets completed (provisional)<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<br />

This function should only be called from the device driver specific ISR. It can be used to signal a receiver task<br />

which is waiting at the DEV_RECV_WAIT call. In this case the number of received packets should be set in<br />

BX register.<br />

The current implementation does not support a transmit task. The sent packets count in CX is a provision for<br />

informing a transmit task about completion of packet transmission.<br />

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_Notify_ISR( DevUserIfaceHandle DevHandlePtr,<br />

unsigned int rcvdPackets,<br />

unsigned int sentPackets);<br />

Related Topics<br />

Top of list<br />

Index page<br />

Example - User device ISR<br />

Interrupt 0xAC service 0xA5: DEV_GET_BUF, Get a buffer from TCP/IP stack<br />

Parameters<br />

AH<br />

CX<br />

ES:DI<br />

Get a buffer from TCP/IP stack's pre-allocated buffer for storing incoming data from this device<br />

0xA5 (=DEV_GET_BUF)<br />

Number of bytes buffer required<br />

Output Parameter: Pointer to a variable of type DevUserBufferHandle where the user buffer handle is<br />

stored. (This value is for internal use.)<br />

Return Value<br />

Page 153 / 400

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

Saved successfully!

Ooh no, something went wrong!