Stack Task
[TCP/IP Stack from Microchip Version 4.50 (Modified)]


Detailed Description

The Stack Manager coordinates the other Microchip TCP/IP Stack modules.

StackTask is implemented as a cooperative task; when given processing time, it polls the MAC layer for valid data packets. When one is received, it decodes it and routes it to the appropriate module for further processing.


Files

file  StackTsk.c
 TCP/IP Stack Manager Module for Microchip TCP/IP Stack.
file  StackTsk.h
 Microchip TCP/IP Stack Definitions.

Typedefs

typedef struct _MAC_ADDR MAC_ADDR
 This structure stores a 6 byte MAC address.
typedef struct _NODE_INFO NODE_INFO
 This structure stores informations of an network node.

Functions

void StackInit (void)
 Initializes the Microchip TCP/IP Stack and its components.
void StackTask (void)
 TCP/IP Stack FSM is executed.
void StackApplications (void)
 Calls all loaded application modules.


Function Documentation

void StackApplications ( void   ) 

Calls all loaded application modules.

Precondition:
StackInit() is already called.
Remarks:
This function must be called periodically to ensure timely responses.

Definition at line 257 of file StackTsk.c.

void StackInit ( void   ) 

Initializes the Microchip TCP/IP Stack and its components.

Precondition:
None
Remarks:
This function must be called before any of the stack or its component routines are used.

Definition at line 111 of file StackTsk.c.

void StackTask ( void   ) 

TCP/IP Stack FSM is executed.

Precondition:
StackInit() is already called.
Remarks:
This FSM checks for new incoming packets, and routes it to appropriate stack components. It also performs timed operations. This function must be called periodically to ensure timely responses.

Definition at line 159 of file StackTsk.c.


Generated on Sun Nov 27 20:02:40 2011 for eWicht by  doxygen 1.5.5