www.beck-ipc.com

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


Get_DHCP_Status_Ext

Get DHCP status of the Ethernet interface.

void Get_DHCP_Status_Ext ( unsigned int *dhcp_use,
                           unsigned int *dhcp_stat,
                           UserEthDhcp_Entry far * *dhcpptr );

Parameters

dhcp_use

Output parameter:  Pointer to a where a "DHCP in use" boolean value will be output to.  The location will be set to '1' if the DHCP is currently being used and '0' if not in use.

dhcp_stat

Output parameter:  Pointer to a where a DHCP status word will be stored.   The status is encoded as follows:
    0: System is not configured (is in progress)
    1: System is configured by a DHCP Server
    2: System configure retry failed (or no retry started before)

dhcpptr

DHCP Config Data:  Pointer to Pointer to a UserEthDhcp_ Entry struct. The struct contains some DHCP Config data (read Only!). If no data available the pointer will be assigned to NULL.

Return Value

-- none --

Comments

The UserEthDhcp_Entry data is a read-only information.   Do not write to this data structure!

See Also

RTOS API

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


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


End of document