Zigbee Protocol Controller 1.6.0
uic_main.h File Reference

Go to the source code of this file.

Classes

struct  uic_fixt_setup_step
 
struct  uic_fixt_shutdown_step
 

Typedefs

typedef struct uic_fixt_setup_step uic_fixt_setup_step_t
 
typedef struct uic_fixt_shutdown_step uic_fixt_shutdown_step_t
 

Functions

int uic_main (const uic_fixt_setup_step_t *fixt_setup, const uic_fixt_shutdown_step_t *fixt_shutdown, int argc, char **argv, const char *version)
 Run Unify/Contiki Main loop. More...
 

Function Documentation

◆ uic_main()

int uic_main ( const uic_fixt_setup_step_t fixt_setup,
const uic_fixt_shutdown_step_t fixt_shutdown,
int  argc,
char **  argv,
const char *  version 
)

Run Unify/Contiki Main loop.

This function will initialize Contiki OS and loop until the program exits. It has following stages: 1) Initialize Contiki OS (Timers, Process list etc.) 2) Call all setup fixtures (loop over fixt_setup) 3) Run Contiki main loop 4) Upon shutdown call all shutdown fixtures (loop over fixt_shutdown)

Parameters
fixt_setupArray of setup fixtures to be called during init
fixt_shutdownArray of shutdown fixtures to be called on shutdown
argccommand line arguments count
argvcommand line arguments
versionVersion string to print on "--version" argument
Returns
int 0 on success, other for error