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.

interface has its own IP configuration and is used by the TCP/IP stack for IP communication in the same way<br />

as the pre-installed internal devices of the <strong>IPC<strong>@CHIP</strong></strong> (e.g. Internal Ethernet, PPP server or PPPclient).<br />

For more detailed description and a generic example see How to add an TCP/IP device driver/link layer<br />

interface.<br />

On the first DEV_OPEN_IFACE call for installing a TCP/IP device driver, the IfaceHandle member of the<br />

DevUserDriver structure at [ES:DI] must be NULL. If an interface is closed with DEV_CLOSE_IFACE and the<br />

user wants to reopen that device interface (e.g. for changing IP configuration) , the IfaceHandle value set<br />

by the system in the first DEV_OPEN_IFACE call must be preserved.<br />

You will find all needed types, constants and prototypes in the CLIB header files TCPIPAPI.H and TCPIP.H.<br />

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

int Dev_Open_Interface( DevUserDriver far * DriverInfo,<br />

int * errorcode)<br />

Please note: The API calls 0xA0 through 0xA7 for implementing your own TCP/IP device drivers are<br />

not part of our six official <strong>@CHIP</strong>-<strong>RTOS</strong> versions. For ordering special version including this feature,<br />

please contact support@beck-ipc.com.<br />

Related Topics<br />

Top of list<br />

Index page<br />

DEV_CLOSE_IFACE - Close device driver interface<br />

DEV_WAIT_DHCP_COMPLETE - Wait for DHCP IP configuration<br />

Example - Installing device driver<br />

Interrupt 0xAC service 0xA1: DEV_CLOSE_IFACE, Close TCP/IP device driver/interface<br />

Parameters<br />

AH<br />

ES:DI<br />

Close a TCP device driver/interface, remove an added link layer from the internal TCP/IP stack.<br />

0xA1 (=DEV_CLOSE_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: AX contains error code<br />

222: Invalid parameter<br />

236: Closing already in progress<br />

237: Device already closed<br />

This function closes the device driver/interface. It calls the driver close function and deactivates the layer from<br />

the internal TCP/IP stack of the <strong>@CHIP</strong>-<strong>RTOS</strong>.<br />

Page 150 / 400

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

Saved successfully!

Ooh no, something went wrong!