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.

Top of list<br />

Index page<br />

Interrupt 0xAC service 0xA3: DEV_RECV_WAIT, Wait for received data<br />

Parameters<br />

AH<br />

ES:DI<br />

Waits for data received signal from Interrupt Service Routine.<br />

0xA3 (=DEV_RECV_WAIT)<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 sleeps until a DEV_NOTIFY_ISR signal by the device's ISR indicates that received data is<br />

available. This function should be used in combination with the DEV_RECV_IFACE API within the user<br />

implemented receiver task.<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_Recv_Wait(DevUserIfaceHandle DevHandlePtr,<br />

int * errorcode);<br />

Related Topics<br />

Top of list<br />

Index page<br />

Example - Receiver Task<br />

Interrupt 0xAC service 0xA4: DEV_NOTIFY_ISR, Signal from ISR<br />

Notify the TCP/IP stack from inside of an Interrupt Service Routine that there is incoming data available and/or<br />

that the device has sent a frame successfully.<br />

Parameters<br />

AH<br />

0xA4 (=DEV_NOTIFY_ISR)<br />

Page 152 / 400

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

Saved successfully!

Ooh no, something went wrong!