Download Network Enabler SDK 2 API Reference

Transcript
Network Enabler SDK 2 API Reference
API List
Function Name
Description
sysc_GetSerialInterface get serial port interface
sysc_GetSerialIoctl
get serial port parameters
sysc_SaveAndRestart
save new settings and restart NE-4100-P
sysc_SetDebug
set debug output setting
sysc_SetGateway
set gateway address
sysc_SetIP
set the specified network interface IP address
sysc_SetIPConfig
define how to get IP address, netmask and gateway
sysc_SetIPLocating
set IP Location function
sysc_SetName
set server name
sysc_SetNetmask
set netmask
sysc_SetPassword
set password
sysc_SetSerialFIFO
set serial port FIFO settings
sysc_SetSerialInterface set serial port interface
sysc_SetSerialIoctl
set serial port parameters
sysc_SetToDefault
set to default values
Flash ROM Access API
The header file sdkflash.h must be included in your source code when calling flash ROM access
functions.
Function Name
flash_erase
flash_length
flash_read
flash_write
sys_FlashErase
sys_FlashLength
sys_FlashRead
sys_FlashWrite
Description
erase flash ROM
get length of data in flash ROM
read data from flash ROM
write data to flash ROM
erase flash ROM
get length of data in flash ROM
read data to flash ROM
write data to flash ROM
Debug API
The header file sdkdbg.h must be included in your source code when calling debug functions.
Function Name
dbg_printf
dbg_put_block
dbg_put_ch
dbg_put_doubleword
dbg_put_doubleword_hex
dbg_put_IP
dbg_put_string
dbg_put_word
dbg_put_word_hex
Description
print formatted output to debug output stream
print out a block of data for debugging
print out a character for debugging
print out a 4-byte unsigned long value for debugging
print out a 4-byte unsigned long value with HEX format for
debugging
print out an IP address in a.b.c.d format for debugging
print out a string for debugging
print out a 2-byte unsigned integer value for debugging
print out a 2-byte unsigned integer value with HEX format for
debugging
2-7