On Time RTOS-32 Documentation
Welcome
RTTarget-32
RTKernel-32
RTFiles-32
RTIP-32
RTIP-32 Programming Manual
RTIP-32 Reference Manual
RTIP-32 Configuration
Socket API
Simplified Networking API
Extended RTIP-32 API
Function vf_init
Function xn_add_dns_server
Function xn_add_host_table_entry
Function xn_clear_host_cache
Function xn_delete_host_table_entry
Function xn_get_domain_name
Function xn_has_dns
Function xn_set_domain_name
Function xn_set_server_list
Function xn_name2ip_addr
Function xn_abort
Function xn_arp_send
Function xn_attach
Function xn_bootp_res
Function xn_bootp
Function xn_debug_error
Function xn_getlasterror
Function xn_geterror_string
Function xn_interface_close
Function xn_interface_info
Function xn_interface_mcast
Function xn_interface_open
Function xn_interface_open_config
Function xn_interface_opt
Function xn_interface_ethernet_statistics
Function xn_interface_statistics
Function xn_ip_set_option
Function xn_ping
Function xn_pkt_data_max
Function xn_rarp
Function xn_rt_add
Function xn_rt_cycle_gw
Function xn_rt_del
Function xn_rt_replace
Function xn_rtip_exit
Function xn_rtip_init
Function xn_rtip_restart
Function xn_set_ip
Function xn_tcp_is_connect
Function xn_tcp_is_read
Function xn_tcp_is_write
Function xn_wait_tcp_output
Function xn_autoanswer
Function xn_autologin
Function xn_hangup
Function xn_scriptlogin
Function xn_autoip
Function xn_ioacc_init
Function xn_nat_init
Function xn_arp_add
Function xn_arp_del
Function xn_arp_remote
Function xn_arp_cache_lookup
Function xn_send_ethernet_frame
Function xn_callbacks
Function cb_wr_screen_string_fnc
Function cb_rs232_connection_lost_fnc
Function cb_error_report_fnc
Function cb_raw_mode_in_char_fnc
Function cb_autoip_new_ip_fnc
Function cb_autoip_no_ip_fnc
Function cb_packetin_isr
Function cb_packetin_task
Function cb_packetout
PPP
DHCP Client
DHCP Server
FTP Client
FTP Server
TFTP Client
TFTP Server
Telnet Client
Telnet Server
Web Server
SNMP Client
POP3 Client
SMTP Client
SNTP Client
SMB Server
SMB Client
SMB3 Server
SMB3 Client
WLAN Driver
Error Codes
RTPEG-32
RTUSB-32
|
Function xn_debug_error
xn_debug_error displays a string and optionally RTIP-32 internal data. Note that this function is declared in header file Rtpdbapi.h which must be included to use it.
void xn_debug_error(const char * string,
int type,
dword val1,
dword val2);
ParametersstringA message to display.
typeIdentifier describing the type of additional data to display. See below for all supported values.
val1Additional data to display. The interpretation of this value depends on parameter type.
val2Additional data to display. The interpretation of this value depends on parameter type.
Parameter type can have any one of the following values:
Value |
Description |
NOVAR |
Write string only; val1 and val2 are not used |
EBS_INT1 |
val1 is an integer |
EBS_INT2 |
val1 and val 2 are integers |
LINT1 |
val1 is a long signed integer |
LINT2 |
val1 and val 2 are long signed integers |
DINT1 |
val1 is a long unsigned integer |
DINT2 |
val1 and val 2 are long unsigned integers |
STR1 |
val1 is a pointer to a string |
STR2 |
val1 and val 2 are pointers to strings |
PTR1 |
val1 is a pointer and will be displayed in hex |
PTR2 |
val1 and val2 are pointers and will be displayed in hex |
IPADDR |
val1 is a pointer to an IP address |
ARPC_ENTRY |
val1 is a pointer to an arp cache entry |
ETHERADDR |
val1 is a pointer to an Ethernet MAC address |
RT_ENTRY |
val1 is a pointer to a routing table entry |
RT |
Display the whole routing table; val1 and val2 are not used |
PKT |
val1 is a pointer to an Ethernet packet |
PORTS_TCP |
Write current TCP port list; val1 and val2 are not used |
PORTS_UDP |
Write current UDP port list; val1 and val2 are not used |
PORTS_RAW |
Write current RAW port list; val1 and val2 are not used |
PORTS_PING |
Write current PING port list; val1 and val2 are not used |
DCU_STATS |
Displays statistics about how many DCUs are or have been used from each DCU packet pool. Parameters val1 and val2 are not used |
xn_debug_error uses callback function cb_wr_screen_string_fnc to display the the complete diagnostics message.
Extended RTIP-32 API
Function xn_bootp
Function xn_getlasterror
|