Rtos API example
net_address_extension.h File Reference
API for setting up link layer short address manually. More...
Go to the source code of this file.
Functions | |
void | net_ext_set_short_address_from_app (uint16_t short_id, uint8_t generate_dynamical_at_DAD) |
Function to set short address from application. | |
void | net_ext_reset_short_address_from_app (void) |
Clears currently used static or default short address and enables dynamic generation of new short address. | |
uint16_t | net_ext_get_short_address (void) |
Get current short address used in the network for this particular interface. |
Detailed Description
API for setting up link layer short address manually.
Setting short address
- net_ext_set_short_address_from_app(), Sets up a user-specified short address and enables or disables DAD.
NOTE: In case of duplication of address and DAD (duplicate address detection) enabled, i.e., DAD=1, the stack generates a short address dynamically.
Resetting short address.
- net_ext_reset_short_address_from_app(), Clears any user-specified static or default short address and enables dynamic generation.
Definition in file net_address_extension.h.
Function Documentation
uint16_t net_ext_get_short_address | ( | void | ) |
Get current short address used in the network for this particular interface.
- Returns:
- 0xfffe or 0xffff if stack is not using any short address.
void net_ext_reset_short_address_from_app | ( | void | ) |
Clears currently used static or default short address and enables dynamic generation of new short address.
void net_ext_set_short_address_from_app | ( | uint16_t | short_id, |
uint8_t | generate_dynamical_at_DAD | ||
) |
Function to set short address from application.
- Parameters:
-
short_id 16-bit user-specified short address. generate_dynamical_at_DAD Set 1 if stack is allowed to generate new short address dynamically in case of DAD, otherwise set 0.
- Returns:
- 0xfffe or 0xffff when the stack does not use any short address.
Generated on Sun Jul 17 2022 08:25:35 by 1.7.2