Rtos API example

Embed: (wiki syntax)

« Back to documentation index

net_address_extension.h File Reference

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

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.

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_id16-bit user-specified short address.
generate_dynamical_at_DADSet 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.