@CHIP-RTOS C Library V2.00 - 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.
Don't use in different tasks or in combination with @CHIP-RTOS commands,
which are writing to chip.ini, e.g. DHCP. Avoid race conditions with
any other API call, which writes or read also to/from chip.ini
e.g. BIOS service 0x23.
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
|