Rtos API example

Embed: (wiki syntax)

« Back to documentation index

net_pana_parameters_api.h File Reference

net_pana_parameters_api.h File Reference

An API for setting up or changing PANA library parameters. More...

Go to the source code of this file.

Data Structures

struct  pana_lib_parameters_s
 The structure defines PANA library parameters. More...

Typedefs

typedef struct
pana_lib_parameters_s 
pana_lib_parameters_s
 The structure defines PANA library parameters.

Functions

int8_t net_pana_parameter_set (const pana_lib_parameters_s *parameter_ptr)
 A function to set PANA library parameters.
int8_t net_pana_parameter_read (pana_lib_parameters_s *parameter_ptr)
 A function to read existing PANA library parameters.

Detailed Description

An API for setting up or changing PANA library parameters.

Setting up PANA parameters.

Checking existing PANA setup.

Definition in file net_pana_parameters_api.h.


Typedef Documentation

The structure defines PANA library parameters.


Function Documentation

int8_t net_pana_parameter_read ( pana_lib_parameters_s parameter_ptr )

A function to read existing PANA library parameters.

Parameters:
parameter_ptrAn output pointer for PANA parameters.
Returns:
0, Read OK.
-1, PANA not supported.
int8_t net_pana_parameter_set ( const pana_lib_parameters_s parameter_ptr )

A function to set PANA library parameters.

Note: This function should be called after net_init_core() and definitely before creating any 6LoWPAN interface.

For future compatibility, to support extensions to this structure, read the current parameters using net_pana_parameter_read(), modify known fields, then set.

Parameters:
parameter_ptrA pointer for PANA parameters.
Returns:
0, Change OK.
-1, Invalid values.
-2, PANA not supported.