Rtos API example
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.
- net_pana_parameter_set(), A function to set up PANA library parameters.
Checking existing PANA setup.
- net_pana_parameter_read(), A function to read current PANA library setup.
Definition in file net_pana_parameters_api.h.
Typedef Documentation
typedef struct pana_lib_parameters_s pana_lib_parameters_s |
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_ptr An 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_ptr A pointer for PANA parameters.
- Returns:
- 0, Change OK.
- -1, Invalid values.
- -2, PANA not supported.
Generated on Sun Jul 17 2022 08:25:35 by 1.7.2