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.

ES:DX<br />

Pointer to a 16 byte memory area where the IP gateway is to be stored as a null terminated string.<br />

Top of list<br />

Index page<br />

Interrupt 0xA0 service 0x06: Set IP default gateway<br />

Parameters<br />

AH<br />

Set the IP gateway to the string supplied<br />

Must be 6.<br />

ES:DX<br />

Pointer to a 16 byte memory area where the IP gateway is stored as a null terminated string.<br />

Comments<br />

A new IP configuration must be activated by calling the ipeth command<br />

or by calling the TCP/IP API interrupt 0xAC service 0x71 (RECONFIG_ETHERNET).<br />

The TCP/IP stack of the <strong>IPC<strong>@CHIP</strong></strong> supports only one valid default gateway for all device interfaces:<br />

Ethernet, pppserver and pppclient.<br />

The ipcfg command shows the current default gateway.<br />

Important:<br />

This API function writes to chip.ini and is not reentrant.<br />

Don't use in different tasks or in combination with <strong>@CHIP</strong>-<strong>RTOS</strong> commands,<br />

which are writing to chip.ini, e.g. DHCP. Avoid race conditions with<br />

any other API call which also writes or reads the chip.ini file.<br />

e.g. service 0x23<br />

Related Topics<br />

Top of list<br />

Index page<br />

Ethernet default gateway initialization<br />

GATEWAY command line<br />

ADD_DEFAULT_GATEWAY API function<br />

PPP server default gateway initialization<br />

Interrupt 0xA0 service 0x07: Execute a command shell command<br />

Parameters<br />

AH<br />

Passes a command string to the command interpreter.<br />

Must be 7.<br />

ES:DX<br />

Pointer to a null terminated command line.<br />

Return Value<br />

Comments<br />

AX==0 success<br />

AX==-1 error (loading EXE file failed!)<br />

Page 83 / 400

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

Saved successfully!

Ooh no, something went wrong!