Atmel Software Framework

nwk_internal.h File Reference

Copyright (c) 2013-2015 Atmel Corporation.

All rights reserved.

#include "rf4ce.h"
#include "node_config.h"
#include "qmm.h"

Data Structures

struct  app_info_tag
 
struct  auto_disc_var_tag
 
struct  ch_ag_var_tag
 
struct  data_var_tag
 
struct  disc_var_tag
 
struct  network_timer_tag
 
struct  nib_tag
 
struct  nwk_cmd_frame_hdr_tag
 
struct  nwk_cmd_frame_tag
 
struct  nwk_disc_req_cmd_tag
 
struct  nwk_frame_header_tag
 
struct  nwk_frame_tag
 
struct  nwk_pair_req_cmd_tag
 
struct  nwk_pair_resp_cmd_tag
 
struct  nwk_ping_req_cmd_tag
 
struct  nwk_ping_req_frm_tag
 
struct  nwk_ping_resp_cmd_tag
 
struct  nwk_ping_resp_frm_tag
 
struct  nwk_seed_cmd_tag
 
union  nwk_var_tag
 
struct  pair_var_tag
 
struct  phy_layer_attrib_tag
 
struct  reset_var_tag
 
struct  rx_en_var_tag
 
struct  start_var_tag
 
struct  unpair_var_tag
 
struct  vendor_info_tag
 

Macros

#define CH_NORM_CAPABLE_MASK   0x08
 
#define EE_NIB_OFFSET   (8)
 
#define EE_OWN_FRAME_CNTR_OFFSET
 
#define EE_PAIRING_REF_OFFSET   (EE_NIB_OFFSET + sizeof(nib_t))
 
#define FALSE   false
 
#define NODE_TYPE_MASK   0x01
 
#define NWK_FCF_CH_15   (1 << 6)
 
#define NWK_FCF_CH_20   (2 << 6)
 
#define NWK_FCF_CH_25   (3 << 6)
 
#define NWK_FCF_CH_MASK   0xC0
 
#define NWK_FCF_CH_NOT_SPEC   (0 << 6)
 
#define NWK_FCF_PROTOCOL_VERSION   (nwkcProtocolVersion << 3)
 
#define NWK_FCF_RESERVED   (1 << 5)
 
#define NWK_FCF_SEC_DISABLED   (0 << 2)
 
#define NWK_FCF_SEC_ENABLED   (1 << 2)
 
#define NWK_FRAME_TYPE_CMD   2
 
#define NWK_FRAME_TYPE_DATA   1
 
#define NWK_FRAME_TYPE_MASK   0x03
 
#define NWK_FRAME_TYPE_RESERVED   0
 
#define NWK_FRAME_TYPE_VENDOR   3
 
#define nwkActivePeriod_def   0xffffff
 
#define nwkBaseChannel_def   Base_Channel /* 15 */
 
#define nwkcChannelMask
 
#define nwkcFrameCounterWindow   1024
 
#define nwkChAgEdThreshold_def   10 /* 10 -> -80 dBm */
 
#define nwkChAgEnabled_def   false
 
#define nwkChAgScanInterval_def   0x00393870 /* MAC symbols => 60sec */
 
#define nwkcMACBeaconPayloadLength   2
 
#define nwkcMaxDutyCycle   62500
 
#define nwkcMaxKeySeedWaitTime   3750
 
#define nwkcMaxNodeDescListSize
 
#define nwkcMaxPairingTableEntries   NWKC_MAX_PAIRING_TABLE_ENTRIES
 
#define nwkcMaxSecCmdTxPower   -15
 
#define nwkcMinActivePeriod   1050
 
#define nwkcMinControllerPairingTableSize   1
 
#define nwkcMinNodeDescTableSize   3
 
#define nwkcMinNWKHeaderOverhead   5
 
#define nwkcMinTargetPairingTableSize   5
 
#define nwkcNodeCapabilities   NWKC_NODE_CAPABILITIES
 
#define nwkcProtocolIdentifier   0xce
 
#define nwkcProtocolVersion   1
 
#define nwkcVendorIdentifier   NWKC_VENDOR_IDENTIFIER
 
#define nwkcVendorString   NWKC_VENDOR_STRING
 
#define nwkDiscoveryLQIThreshold_def   0xff
 
#define nwkDiscoveryRepetitionInterval_def   0x0030d4
 
#define nwkDutyCycle_def   0x000000
 
#define nwkFrameCounter_def   0x00000001
 
#define nwkIndicateDiscoveryRequests_def   FALSE
 
#define nwkInPowerSave_def   FALSE
 
#define nwkMaxDiscoveryRepetitions_def   0x01
 
#define nwkMaxFirstAttemptCSMABackoffs_def   4
 
#define nwkMaxFirstAttemptFrameRetries_def   3
 
#define nwkMaxReportedNodeDescriptors_def   0x03
 
#define nwkPairingTable_def   NULL
 
#define nwkResponseWaitTime_def   0x00186a
 
#define nwkScanDuration_def   6 /* 960 * (2^n + 1) symbols; here: ~1sec */
 
#define nwkUserString_def   NULL
 
#define PWR_SRC_MASK   0x02
 
#define RF4CE_VERSION   100 /* = 1.0 */
 
#define SECURITY_CAPABLE_MASK   0x04
 
#define TRUE   true
 

Typedefs

typedef struct app_info_tag app_info_t
 
typedef enum auto_disc_state_tag auto_disc_state_t
 type used for internal autodiscovery state machine More...
 
typedef struct auto_disc_var_tag auto_disc_var_t
 
typedef struct ch_ag_var_tag ch_ag_var_t
 
typedef struct data_var_tag data_var_t
 
typedef struct disc_var_tag disc_var_t
 
typedef struct network_timer_tag network_timer_t
 
typedef __PACK__DATA__ struct
nib_tag 
nib_t
 
typedef struct
nwk_cmd_frame_hdr_tag 
nwk_cmd_frame_hdr_t
 
typedef struct nwk_cmd_frame_tag nwk_cmd_frame_t
 
typedef struct nwk_disc_req_cmd_tag nwk_disc_req_cmd_t
 
typedef struct nwk_frame_header_tag nwk_frame_header_t
 
typedef struct nwk_frame_tag nwk_frame_t
 
typedef struct nwk_pair_req_cmd_tag nwk_pair_req_cmd_t
 
typedef struct
nwk_pair_resp_cmd_tag 
nwk_pair_resp_cmd_t
 
typedef struct nwk_ping_req_cmd_tag nwk_ping_req_cmd_t
 
typedef struct nwk_ping_req_frm_tag nwk_ping_req_frm_t
 
typedef struct
nwk_ping_resp_cmd_tag 
nwk_ping_resp_cmd_t
 
typedef struct
nwk_ping_resp_frm_tag 
nwk_ping_resp_frm_t
 
typedef struct nwk_seed_cmd_tag nwk_seed_cmd_t
 
typedef enum nwk_state_tag nwk_state_t
 
typedef union nwk_var_tag nwk_var_t
 
typedef struct pair_var_tag pair_var_t
 
typedef struct phy_layer_attrib_tag phy_layer_attrib_t
 
typedef struct reset_var_tag reset_var_t
 
typedef struct rx_en_var_tag rx_en_var_t
 
typedef struct start_var_tag start_var_t
 
typedef struct unpair_var_tag unpair_var_t
 
typedef struct vendor_info_tag vendor_info_t
 

Enumerations

enum  auto_disc_state_tag {
  WAITING_FOR_FIRST_REQUEST,
  WAITING_FOR_SECOND_REQUEST,
  AUTO_DISC_DONE
}
 type used for internal autodiscovery state machine More...
 
enum  nwk_state_tag {
  NWK_STATE_IDLE,
  NWK_COLD_START,
  NWK_WARM_START,
  NWK_NLDE_DATA_REQUEST,
  NWK_NLDE_DATA_INDICATION,
  NWK_NLDE_DATA_CONFIRM,
  NWK_NLME_AUTO_DISCOVERY_REQUEST,
  NWK_NLME_AUTO_DISCOVERY_CONFIRM,
  NWK_NLME_COMM_STATUS_INDICATION,
  NWK_NLME_DISCOVERY_REQUEST,
  NWK_NLME_DISCOVERY_INDICATION,
  NWK_NLME_DISCOVERY_RESPONSE,
  NWK_NLME_DISCOVERY_CONFIRM,
  NWK_NLME_GET_REQUEST,
  NWK_NLME_GET_CONFIRM,
  NWK_NLME_PAIR_REQUEST,
  NWK_NLME_PAIR_INDICATION,
  NWK_NLME_PAIR_RESPONSE,
  NWK_NLME_PAIR_CONFIRM,
  NWK_NLME_RESET_REQUEST,
  NWK_NLME_RESET_CONFIRM,
  NWK_NLME_RX_ENABLE_REQUEST,
  NWK_NLME_RX_ENABLE_CONFIRM,
  NWK_NLME_SET_REQUEST,
  NWK_NLME_SET_CONFIRM,
  NWK_NLME_START_REQUEST,
  NWK_NLME_START_CONFIRM,
  NWK_NLME_UNPAIR_REQUEST,
  NWK_NLME_UNPAIR_INDICATION,
  NWK_NLME_UNPAIR_RESPONSE,
  NWK_NLME_UNPAIR_CONFIRM,
  NWK_CH_AGILITY_REQ,
  NWK_CH_AG_SCAN,
  NWK_NLME_UPDATE_KEY_REQUEST,
  NWK_NLME_UPDATE_KEY_CONFIRM,
  NWK_SEEDING,
  NWK_PING_REQUEST,
  NWK_WAITING_FOR_PING_REQ,
  NWK_WAITING_FOR_PING_RESP,
  NWK_SENDING_PING_RESP
}
 
enum  SHORTENUM {
  ASSOCIATIONREQUEST = (0x01),
  ASSOCIATIONRESPONSE,
  DISASSOCIATIONNOTIFICATION,
  DATAREQUEST,
  PANIDCONFLICTNOTIFICAION,
  ORPHANNOTIFICATION,
  BEACONREQUEST,
  COORDINATORREALIGNMENT,
  GTSREQUEST,
  ORPHANREALIGNMENT,
  BEACON_MESSAGE,
  DATAREQUEST_IMPL_POLL,
  NULL_FRAME,
  MCPS_MESSAGE,
  STB_CCM_OK = 0,
  STB_CCM_ILLPARM,
  STB_CCM_KEYMISS,
  STB_CCM_MICERR,
  SECURITY_00_LEVEL = 0x00,
  SECURITY_01_LEVEL,
  SECURITY_02_LEVEL,
  SECURITY_03_LEVEL,
  SECURITY_04_LEVEL,
  SECURITY_05_LEVEL,
  SECURITY_06_LEVEL,
  SECURITY_07_LEVEL,
  DISCOVERY_REQUEST = 0x01,
  DISCOVERY_RESPONSE = 0x02,
  PAIR_REQUEST = 0x03,
  PAIR_RESPONSE = 0x04,
  UNPAIR_REQUEST = 0x05,
  KEY_SEED = 0x06,
  PING_REQUEST = 0x07,
  PING_RESPONSE = 0x08
}
 

Functions

void auto_disc_incoming_disc_req (uint8_t *msg_buf)
 
void auto_disc_resp_mcps_data_conf_cb (uint8_t *msg_buf)
 
void ch_ag_interval_timer_expired_cb (void *callback_parameter)
 
void ch_ag_mlme_scan_conf_cb (uint8_t *msg_buf)
 
void discovery_response_frm_conf_cb (uint8_t *msg_buf)
 
void duty_cycle_end_cb (void *callback_parameter)
 
void enter_normal_operation (void)
 
 FLASH_EXTERN (uint8_t app_user_string[15])
 
 FLASH_EXTERN (uint16_t VendorIdentifier)
 
 FLASH_EXTERN (uint8_t vendor_string[7])
 
bool get_pairing_table_entry (uint8_t *entry, uint64_t *ieee_addr)
 
void handle_discovery_frm_conf_cb (void)
 
void handle_rx_duty_cycle (void)
 
void incoming_discovery_request (uint8_t *msg_buf)
 
void incoming_discovery_response (uint8_t *msg_buf)
 
void incoming_pair_request (uint8_t *msg_buf)
 
void incoming_pair_response (uint8_t *msg_buf)
 
void incoming_ping_msg (uint8_t *msg_buf)
 
void incoming_ping_response (uint8_t *msg_buf)
 
void incoming_seed_msg (uint8_t *msg_buf)
 
void incoming_unpair_request (uint8_t *msg_buf)
 
bool is_pairing_table_full (void)
 
void issue_ch_agility_confirm (nwk_enum_t status, bool ChannelChanged)
 
void issue_comm_status_msg (uint8_t status)
 
void issue_nlme_reset_conf (uint8_t status)
 
void issue_pair_confirm (nwk_enum_t status)
 
void issue_start_conf (uint8_t status)
 
void mcps_data_conf_cb (uint8_t *msg)
 
void mcps_data_ind_cb (uint8_t *msg)
 
void mlme_beacon_notify_ind_cb (uint8_t *msg)
 
void mlme_reset_conf_cb (uint8_t *msg)
 
void mlme_rx_enable_conf_cb (uint8_t *msg)
 
void mlme_scan_conf_cb (uint8_t *msg)
 
void mlme_start_conf_cb (uint8_t *msg)
 
void nlde_data_confirm_intern (uint8_t *msg)
 
void nlde_data_indication_intern (uint8_t *msg_buf)
 
void nlde_data_request_intern (uint8_t *msg_buf)
 
void nlme_auto_discovery_confirm_intern (uint8_t *msg_buf)
 
void nlme_auto_discovery_request_intern (uint8_t *msg_buf)
 
void nlme_comm_status_indication_intern (uint8_t *msg_buf)
 
void nlme_discovery_confirm_intern (uint8_t *msg_buf)
 
void nlme_discovery_indication_intern (uint8_t *msg_buf)
 
void nlme_discovery_request_intern (uint8_t *msg_buf)
 
void nlme_discovery_response_intern (uint8_t *msg_buf)
 
void nlme_get_confirm_intern (uint8_t *msg_buf)
 
void nlme_get_request_intern (uint8_t *msg_buf)
 
void nlme_pair_confirm_intern (uint8_t *msg_buf)
 
void nlme_pair_indication_intern (uint8_t *msg_buf)
 
void nlme_pair_request_intern (uint8_t *msg_buf)
 
void nlme_pair_response_intern (uint8_t *msg_buf)
 
void nlme_reset_confirm_intern (uint8_t *msg_buf)
 
void nlme_reset_request_intern (uint8_t *msg_buf)
 
void nlme_rx_enable_confirm_intern (uint8_t *msg_buf)
 
void nlme_rx_enable_request_intern (uint8_t *msg_buf)
 
void nlme_set_confirm_intern (uint8_t *msg_buf)
 
void nlme_set_request_intern (uint8_t *msg_buf)
 
void nlme_start_confirm_intern (uint8_t *msg_buf)
 
void nlme_start_request_intern (uint8_t *msg_buf)
 
void nlme_unpair_confirm_intern (uint8_t *msg_buf)
 
void nlme_unpair_indication_intern (uint8_t *msg_buf)
 
void nlme_unpair_request_intern (uint8_t *msg_buf)
 
void nlme_unpair_response_intern (uint8_t *msg_buf)
 
void nlme_update_key_confirm_intern (uint8_t *msg_buf)
 
void nlme_update_key_request_intern (uint8_t *msg_buf)
 
void nwk_ch_agility_confirm_intern (uint8_t *msg_buf)
 
void nwk_ch_agility_indication_intern (uint8_t *msg_buf)
 
void nwk_ch_agility_request_intern (uint8_t *msg_buf)
 
void nwk_dispatch_event (uint8_t *event)
 
void pair_req_mcps_data_conf_cb (uint8_t *msg_buf)
 
void pair_resp_mcps_data_conf_cb (uint8_t *msg_buf)
 
void ping_req_mcps_data_conf_cb (uint8_t *msg_buf)
 
void ping_resp_mcps_data_conf_cb (uint8_t *msg_buf)
 
void read_nib (void)
 
void remove_pairing_entry (uint8_t entry)
 
void seed_mcps_data_conf_cb (uint8_t *msg_buf)
 
void send_ping_request (void)
 
void start_scan (uint8_t scan_type, uint8_t channel)
 
bool start_waiting_for_seeding (void)
 
void store_nib (void)
 
nwk_enum_t target_start_seeding (void)
 
void unpair_req_mcps_data_conf_cb (uint8_t *msg_buf)
 
void wait_for_ping_request_expired_cb (void *callback_parameter)
 
void warm_start_conf_cb (uint8_t *msg_buf)
 

Variables

uint8_t Base_Channel
 
uint8_t Channel_Offset
 
network_timer_t network_timer
 
queue_t nhle_nwk_q
 
nib_t nib
 
queue_t nwk_nhle_q
 
__PACK__RST_DATA__ nwk_state_t nwk_state
 
nwk_var_t nwk_var
 
phy_layer_attrib_t phy_layer_attrib
 

#define CH_NORM_CAPABLE_MASK   0x08
#define EE_NIB_OFFSET   (8)
#define EE_OWN_FRAME_CNTR_OFFSET
Value:
offsetof(struct nib_tag, FrameCounter))
Definition: nwk_internal.h:271
#define EE_NIB_OFFSET
Definition: nwk_internal.h:253
#define EE_PAIRING_REF_OFFSET   (EE_NIB_OFFSET + sizeof(nib_t))
#define FALSE   false
#define NODE_TYPE_MASK   0x01
#define NWK_FCF_CH_15   (1 << 6)
#define NWK_FCF_CH_20   (2 << 6)
#define NWK_FCF_CH_25   (3 << 6)
#define NWK_FCF_CH_MASK   0xC0
#define NWK_FCF_CH_NOT_SPEC   (0 << 6)
#define NWK_FCF_PROTOCOL_VERSION   (nwkcProtocolVersion << 3)
#define NWK_FCF_RESERVED   (1 << 5)
#define NWK_FCF_SEC_DISABLED   (0 << 2)
#define NWK_FCF_SEC_ENABLED   (1 << 2)
#define NWK_FRAME_TYPE_CMD   2
#define NWK_FRAME_TYPE_DATA   1
#define NWK_FRAME_TYPE_MASK   0x03
#define NWK_FRAME_TYPE_RESERVED   0
#define NWK_FRAME_TYPE_VENDOR   3
#define nwkActivePeriod_def   0xffffff
#define nwkBaseChannel_def   Base_Channel /* 15 */
#define nwkcChannelMask
Value:
(((uint32_t)1 << Base_Channel) | \
((uint32_t)1 << (Base_Channel + Channel_Offset)) | \
((uint32_t)1 << (Base_Channel + Channel_Offset + Channel_Offset)))
uint8_t Channel_Offset
uint8_t Base_Channel
#define nwkcFrameCounterWindow   1024
#define nwkChAgEdThreshold_def   10 /* 10 -> -80 dBm */
#define nwkChAgEnabled_def   false
#define nwkChAgScanInterval_def   0x00393870 /* MAC symbols => 60sec */
#define nwkcMACBeaconPayloadLength   2
#define nwkcMaxDutyCycle   62500
#define nwkcMaxKeySeedWaitTime   3750
#define nwkcMaxNodeDescListSize
Value:
3 /* 3 = (LARGE_BUFFER_SIZE - 3) /
* sizeof(node_desc_t) */
#define nwkcMaxPairingTableEntries   NWKC_MAX_PAIRING_TABLE_ENTRIES
#define nwkcMaxSecCmdTxPower   -15
#define nwkcMinActivePeriod   1050
#define nwkcMinControllerPairingTableSize   1
#define nwkcMinNodeDescTableSize   3
#define nwkcMinNWKHeaderOverhead   5
#define nwkcMinTargetPairingTableSize   5
#define nwkcNodeCapabilities   NWKC_NODE_CAPABILITIES
#define nwkcProtocolIdentifier   0xce
#define nwkcProtocolVersion   1
#define nwkcVendorIdentifier   NWKC_VENDOR_IDENTIFIER
#define nwkcVendorString   NWKC_VENDOR_STRING
#define nwkDiscoveryLQIThreshold_def   0xff
#define nwkDiscoveryRepetitionInterval_def   0x0030d4
#define nwkDutyCycle_def   0x000000
#define nwkFrameCounter_def   0x00000001
#define nwkIndicateDiscoveryRequests_def   FALSE
#define nwkInPowerSave_def   FALSE
#define nwkMaxDiscoveryRepetitions_def   0x01
#define nwkMaxFirstAttemptCSMABackoffs_def   4
#define nwkMaxFirstAttemptFrameRetries_def   3
#define nwkMaxReportedNodeDescriptors_def   0x03
#define nwkPairingTable_def   NULL
#define nwkResponseWaitTime_def   0x00186a
#define nwkScanDuration_def   6 /* 960 * (2^n + 1) symbols; here: ~1sec */
#define nwkUserString_def   NULL
#define PWR_SRC_MASK   0x02
#define RF4CE_VERSION   100 /* = 1.0 */
#define SECURITY_CAPABLE_MASK   0x04
#define TRUE   true

typedef struct app_info_tag app_info_t

type used for internal autodiscovery state machine

typedef struct ch_ag_var_tag ch_ag_var_t
typedef struct data_var_tag data_var_t
typedef struct disc_var_tag disc_var_t
typedef __PACK__DATA__ struct nib_tag nib_t
typedef struct nwk_frame_tag nwk_frame_t
typedef enum nwk_state_tag nwk_state_t
typedef union nwk_var_tag nwk_var_t
typedef struct pair_var_tag pair_var_t
typedef struct reset_var_tag reset_var_t
typedef struct rx_en_var_tag rx_en_var_t
typedef struct start_var_tag start_var_t
typedef struct unpair_var_tag unpair_var_t

type used for internal autodiscovery state machine

Enumerator
WAITING_FOR_FIRST_REQUEST 
WAITING_FOR_SECOND_REQUEST 
AUTO_DISC_DONE 
Enumerator
NWK_STATE_IDLE 
NWK_COLD_START 
NWK_WARM_START 
NWK_NLDE_DATA_REQUEST 
NWK_NLDE_DATA_INDICATION 
NWK_NLDE_DATA_CONFIRM 
NWK_NLME_AUTO_DISCOVERY_REQUEST 
NWK_NLME_AUTO_DISCOVERY_CONFIRM 
NWK_NLME_COMM_STATUS_INDICATION 
NWK_NLME_DISCOVERY_REQUEST 
NWK_NLME_DISCOVERY_INDICATION 
NWK_NLME_DISCOVERY_RESPONSE 
NWK_NLME_DISCOVERY_CONFIRM 
NWK_NLME_GET_REQUEST 
NWK_NLME_GET_CONFIRM 
NWK_NLME_PAIR_REQUEST 
NWK_NLME_PAIR_INDICATION 
NWK_NLME_PAIR_RESPONSE 
NWK_NLME_PAIR_CONFIRM 
NWK_NLME_RESET_REQUEST 
NWK_NLME_RESET_CONFIRM 
NWK_NLME_RX_ENABLE_REQUEST 
NWK_NLME_RX_ENABLE_CONFIRM 
NWK_NLME_SET_REQUEST 
NWK_NLME_SET_CONFIRM 
NWK_NLME_START_REQUEST 
NWK_NLME_START_CONFIRM 
NWK_NLME_UNPAIR_REQUEST 
NWK_NLME_UNPAIR_INDICATION 
NWK_NLME_UNPAIR_RESPONSE 
NWK_NLME_UNPAIR_CONFIRM 
NWK_CH_AGILITY_REQ 
NWK_CH_AG_SCAN 
NWK_NLME_UPDATE_KEY_REQUEST 
NWK_NLME_UPDATE_KEY_CONFIRM 
NWK_SEEDING 
NWK_PING_REQUEST 
NWK_WAITING_FOR_PING_REQ 
NWK_WAITING_FOR_PING_RESP 
NWK_SENDING_PING_RESP 
enum SHORTENUM
Enumerator
ASSOCIATIONREQUEST 
ASSOCIATIONRESPONSE 
DISASSOCIATIONNOTIFICATION 
DATAREQUEST 
PANIDCONFLICTNOTIFICAION 
ORPHANNOTIFICATION 
BEACONREQUEST 
COORDINATORREALIGNMENT 
GTSREQUEST 
ORPHANREALIGNMENT 
BEACON_MESSAGE 
DATAREQUEST_IMPL_POLL 
NULL_FRAME 
MCPS_MESSAGE 
STB_CCM_OK 

CCM en/decryption OK.

STB_CCM_ILLPARM 

Illegal parameter value in stb_ccm_secure()

STB_CCM_KEYMISS 

No previous key init in stb_ccm_secure()

STB_CCM_MICERR 

MIC error detected in stb_ccm_secure()

SECURITY_00_LEVEL 

Security Level 0.

SECURITY_01_LEVEL 

Security Level 1.

SECURITY_02_LEVEL 

Security Level 2.

SECURITY_03_LEVEL 

Security Level 3.

SECURITY_04_LEVEL 

Security Level 4.

SECURITY_05_LEVEL 

Security Level 5.

SECURITY_06_LEVEL 

Security Level 6.

SECURITY_07_LEVEL 

Security Level 7.

DISCOVERY_REQUEST 
DISCOVERY_RESPONSE 
PAIR_REQUEST 
PAIR_RESPONSE 
UNPAIR_REQUEST 
KEY_SEED 
PING_REQUEST 
PING_RESPONSE 

void auto_disc_incoming_disc_req ( uint8_t *  msg_buf)
void auto_disc_resp_mcps_data_conf_cb ( uint8_t *  msg_buf)
void ch_ag_interval_timer_expired_cb ( void *  callback_parameter)
void ch_ag_mlme_scan_conf_cb ( uint8_t *  msg_buf)
void discovery_response_frm_conf_cb ( uint8_t *  msg_buf)
void duty_cycle_end_cb ( void *  callback_parameter)
void enter_normal_operation ( void  )
FLASH_EXTERN ( uint8_t  app_user_string[15])
FLASH_EXTERN ( uint16_t  VendorIdentifier)
FLASH_EXTERN ( uint8_t  vendor_string[7])
bool get_pairing_table_entry ( uint8_t *  entry,
uint64_t *  ieee_addr 
)
void handle_discovery_frm_conf_cb ( void  )
void handle_rx_duty_cycle ( void  )
void incoming_discovery_request ( uint8_t *  msg_buf)
void incoming_discovery_response ( uint8_t *  msg_buf)
void incoming_pair_request ( uint8_t *  msg_buf)
void incoming_pair_response ( uint8_t *  msg_buf)
void incoming_ping_msg ( uint8_t *  msg_buf)
void incoming_ping_response ( uint8_t *  msg_buf)
void incoming_seed_msg ( uint8_t *  msg_buf)
void incoming_unpair_request ( uint8_t *  msg_buf)
bool is_pairing_table_full ( void  )
void issue_ch_agility_confirm ( nwk_enum_t  status,
bool  ChannelChanged 
)
void issue_comm_status_msg ( uint8_t  status)
void issue_nlme_reset_conf ( uint8_t  status)
void issue_pair_confirm ( nwk_enum_t  status)
void issue_start_conf ( uint8_t  status)
void mcps_data_conf_cb ( uint8_t *  msg)
void mcps_data_ind_cb ( uint8_t *  msg)
void mlme_beacon_notify_ind_cb ( uint8_t *  msg)
void mlme_reset_conf_cb ( uint8_t *  msg)
void mlme_rx_enable_conf_cb ( uint8_t *  msg)
void mlme_scan_conf_cb ( uint8_t *  msg)
void mlme_start_conf_cb ( uint8_t *  msg)
void nlde_data_confirm_intern ( uint8_t *  msg)
void nlde_data_indication_intern ( uint8_t *  msg_buf)
void nlde_data_request_intern ( uint8_t *  msg_buf)
void nlme_auto_discovery_confirm_intern ( uint8_t *  msg_buf)
void nlme_auto_discovery_request_intern ( uint8_t *  msg_buf)
void nlme_comm_status_indication_intern ( uint8_t *  msg_buf)
void nlme_discovery_confirm_intern ( uint8_t *  msg_buf)
void nlme_discovery_indication_intern ( uint8_t *  msg_buf)
void nlme_discovery_request_intern ( uint8_t *  msg_buf)
void nlme_discovery_response_intern ( uint8_t *  msg_buf)
void nlme_get_confirm_intern ( uint8_t *  msg_buf)
void nlme_get_request_intern ( uint8_t *  msg_buf)
void nlme_pair_confirm_intern ( uint8_t *  msg_buf)
void nlme_pair_indication_intern ( uint8_t *  msg_buf)
void nlme_pair_request_intern ( uint8_t *  msg_buf)
void nlme_pair_response_intern ( uint8_t *  msg_buf)
void nlme_reset_confirm_intern ( uint8_t *  msg_buf)
void nlme_reset_request_intern ( uint8_t *  msg_buf)
void nlme_rx_enable_confirm_intern ( uint8_t *  msg_buf)
void nlme_rx_enable_request_intern ( uint8_t *  msg_buf)
void nlme_set_confirm_intern ( uint8_t *  msg_buf)
void nlme_set_request_intern ( uint8_t *  msg_buf)
void nlme_start_confirm_intern ( uint8_t *  msg_buf)
void nlme_start_request_intern ( uint8_t *  msg_buf)
void nlme_unpair_confirm_intern ( uint8_t *  msg_buf)
void nlme_unpair_indication_intern ( uint8_t *  msg_buf)
void nlme_unpair_request_intern ( uint8_t *  msg_buf)
void nlme_unpair_response_intern ( uint8_t *  msg_buf)
void nlme_update_key_confirm_intern ( uint8_t *  msg_buf)
void nlme_update_key_request_intern ( uint8_t *  msg_buf)
void nwk_ch_agility_confirm_intern ( uint8_t *  msg_buf)
void nwk_ch_agility_indication_intern ( uint8_t *  msg_buf)
void nwk_ch_agility_request_intern ( uint8_t *  msg_buf)
void nwk_dispatch_event ( uint8_t *  event)
void pair_req_mcps_data_conf_cb ( uint8_t *  msg_buf)
void pair_resp_mcps_data_conf_cb ( uint8_t *  msg_buf)
void ping_req_mcps_data_conf_cb ( uint8_t *  msg_buf)
void ping_resp_mcps_data_conf_cb ( uint8_t *  msg_buf)
void read_nib ( void  )
void remove_pairing_entry ( uint8_t  entry)
void seed_mcps_data_conf_cb ( uint8_t *  msg_buf)
void send_ping_request ( void  )
void start_scan ( uint8_t  scan_type,
uint8_t  channel 
)
bool start_waiting_for_seeding ( void  )
void store_nib ( void  )
nwk_enum_t target_start_seeding ( void  )
void unpair_req_mcps_data_conf_cb ( uint8_t *  msg_buf)
void wait_for_ping_request_expired_cb ( void *  callback_parameter)
void warm_start_conf_cb ( uint8_t *  msg_buf)

uint8_t Base_Channel
uint8_t Channel_Offset
network_timer_t network_timer
queue_t nhle_nwk_q
nib_t nib
queue_t nwk_nhle_q
nwk_var_t nwk_var
phy_layer_attrib_t phy_layer_attrib