Network Control Initialization Procedure (NETCTRL)
4-22
The user has the option of immediately calling NC_NetStart() again upon re-
turn. This makes for a good stack reboot function. Optionally, the configuration
can also be reloaded. This allows the stack to be restarted after a major config-
uration change.
The callback functions return void, and take no calling parameters.
Stop Network
NC_NetStop
Syntax
void NC_NetStop( int StopCode );
Parameter(s)
StopCode
Return code to be returned by NC_NetStart()
Return Value
nothing
Description
This function is called to shutdown a network initiated with NC_NetStart(). The
return value supplied in the StopCode parameter becomes the return value for
NC_NetStart(). See the description of NC_NetStart() for more detail.
Initiate a System Session
NC_SystemOpen
Syntax
void NC_SystemOpen();
Parameter(s)
none
Return Value
nothing
Description
This is the first function that should be called when using the stack. It initializes
the stack’s memory manager, and the OS (or OS translation layer).
Shutdown the System
NC_SystemClose
Syntax
void NC_SystemClose();
Parameter(s)
none
Return Value
nothing
Description
This is the last function that should be called when using the stack. It shuts
down the memory manager and performs a final memory analysis.