AN2700 Freescale Semiconductor / Motorola, AN2700 Datasheet - Page 14

no-image

AN2700

Manufacturer Part Number
AN2700
Description
Basic Web Server Development with MC9S12NE64 and CMX-MicroNet TCP/IP Stack
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
CMX Stack Overview
14
mn_http_set_message(arguments)
mn_http_find_value(arguments)
mn_pf_set_entry(arguments)
mn_gf_set_entry(arguments)
mn_vf_set_entry(arguments)
mn_http_set_file(arguments)
mn_ustoa(arguments)
mn_ether_init()
mn_server()
ne64_init()
Function
mn_init()
Basic Web Server with MC9S12NE64 and CMX-MicroNet TCP/IP Stack, Rev. 0.3
Table 4. Selected CMX-MicroNet API Functions
Generally sets up the CMX-MicroNet TCP/IP stack. In this example, it
Executes the ETHER_INIT macro in ethernet.h . The ETHER_INIT
Located in ne64_ether.c in the netlibe_ne64.mcp project. This routine
These are virtual file system functions that are located in vfile.c in the
Located in http.c . For HTTP functionality, the main web page must be
Used to convert an unsigned short integer variable to ASCII. This
Located in mnserver.c . This routine is a general-purpose server
calls mn_arp_init() , mn_http_init() , and mn_ether_init() . This routine
also sets up the CMX-MicroNet virtual file system. mn_init() can be
found in socket.c in the netlibe_ne64.mcp project.
macro defined for this example is ne64_init() . mn_ether_init() can be
found in ethernet.h in the netlibe_ne64.mcp project.
initializes and enables the MC9S12NE64 integrated Ethernet
controller.
netlibe_ne64.mcp project. These functions are designed to make it
easy to retrieve arrays associated with web pages and function
pointers used by server-side-includes and HTTP post routines. For
mn_gf_set_entry , the #define SERVER_SIDE_INCLUDES code in
the mnconfig.h file must be set to 1.
called index.htm or index.html (unless the main page name is
changed in http.c by modifying the default_page1 or default_page2
variable names).
CMX-MicroNet support function is located in support.c .
function that combines the HTTP and FTP servers and provides TCP
and UDP server functionality. New HTTP and FTP sockets are
opened and closed as needed by CMX-MicroNet software. All other
sockets must be opened before calling mn_server . For example,
passive TCP sockets can be opened with the NO_OPEN type before
calling mn_server() . This function receives a packet and, if an HTTP
or FTP packet is received, calls the appropriate HTTP or FTP
functions. If the received packet is any type other than HTTP or FTP,
the function calls mn_app_server_process_packet .
Description
Freescale Semiconductor

Related parts for AN2700