www.beck-ipc.com

@CHIP-RTOS C Library V2.06 - TCP/IP API


Set_IPConfig

Set IP, subnet mask of the default Ethernet interface and/or gateway.

void Set_IPConfig ( const char far *IP,
                    const char far *Mask,
                    const char far *Gateway );

Parameters

IP

Pointer to new IP address expressed as a null terminated ASCII string in network address dot notation.

Mask

Pointer to new net submask expressed as a null terminated ASCII string in dot notation.

Gateway

Pointer to new gateway address expressed as a null terminated ASCII string in dot notation.

Return Value

-- none --

Comments

Any of the three parameters can be set to NULL pointers if the respective value is not to be set.

Important:
This API function writes to chip.ini and is not reentrant.   Do not use this API in combination with other tasks or @CHIP-RTOS commands which are writing to chip.ini, e.g. DHCP.   Avoid race conditions with any other API call which writes or reads to/from the chip.ini, e.g. BIOS service 0x23.

SC1x3 Comments

This function applies only to the IPv4 configuration of the internal integrated Ethernet device interface.

See Also

RTOS API

This library function invokes a RTOS software interrupt. Refer to this RTOS API function's documentation for more details.

Supported since or modified in @CHIP-RTOS version

    SC12SC13SC11SC1x3
    V1.00V1.00n/aV0.90

This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document