www.beck-ipc.com

@CHIP-RTOS C Library - TCP/IP API


Get_IPConfig

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

void Get_IPConfig ( char far *IP,
                    char far *Mask,
                    char far *Gateway );

Parameters

IP

Output parameter:   Pointer to a 16 byte memory area where the IP address is to be stored as a null terminated string.

Mask

Output parameter:   Pointer to a 16 byte memory area where the subnet mask is to be stored as a null terminated string.

Gateway

Output parameter:   Pointer to a 16 byte memory area where the gateway address is to be stored as a null terminated string.

Return Value

-- none --

Comments

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

SC1x3/SC2x 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

    SC12SC13SC11SC1x3SC2x
    V1.00V1.00n/aV0.90V1.00

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


End of document