Embedded TCP/IP stack  4.7.0
Stack Initialization API

Detailed Description

For example:

...
static fnet_uint8_t stack_heap[FAPP_CFG_HEAP_SIZE];
struct fnet_init_params init_params;
// Input parameters for FNET stack initialization.
init_params.netheap_ptr = stack_heap;
init_params.netheap_size = sizeof(stack_heap);
// Init FNET stack.
if(fnet_init(&init_params) != FNET_ERR)
{
// Initialize Network Interfaces.
,,,
// Place your code here.
}
else
fnet_printf("ERROR: FNET stack initialization is failed!\n");
...

Data Structures

struct  fnet_mutex_api_t
 Recursive mutex API. It should be defined by application if FNET_CFG_MULTITHREADING is set. More...
 
struct  fnet_timer_api_t
 Timer API. It must be defined by application if FNET_CFG_TIMER_ALT is set. More...
 
struct  fnet_init_params
 Input parameters structure for fnet_init() More...
 

Typedefs

typedef void * fnet_mutex_t
 Mutex type. More...
 

Functions

fnet_return_t fnet_init (struct fnet_init_params *init_params)
 Initializes the FNET TCP/IP stack. More...
 
void fnet_release (void)
 Releases the FNET TCP/IP stack. More...
 
void fnet_poll (void)
 General polling function. More...
 

© 2005-2020 by Andrej Butok. http://fnet.sourceforge.net