Microchip® Advanced Software Framework

serial_if_mlme.c File Reference

PRIME Serial Interface for MLME.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include <string.h>
#include "compiler.h"
#include "serial_if_mlme.h"
#include <mngl.h>
#include <prime.h>
#include <usi.h>

Enumerations

enum  ADDRESS_IND {
  NOADDRESS,
  EUI48,
  SNA_REQ
}
 

Functions

static int _serial_if_mlme_pack_active_conn (uint8_t *puc_buf_des, uint8_t *px_buf_org)
 Packets a MLME Callback to avoid misalignments. More...
 
static int _serial_if_mlme_pack_active_conn_ex (uint8_t *puc_buf_des, uint8_t *px_buf_org)
 Packets a MLME Callback to avoid misalignments. More...
 
static int _serial_if_mlme_pack_available_switch_table (uint8_t *puc_buf_des, uint8_t *px_buf_org)
 Packets a MLME Callback to avoid misalignments. More...
 
static int _serial_if_mlme_pack_direct_conn (uint8_t *puc_buf_des, uint8_t *px_buf_org)
 Packets a MLME Callback to avoid misalignments. More...
 
static int _serial_if_mlme_pack_direct_switch_table (uint8_t *puc_buf_des, uint8_t *px_buf_org)
 Packets a MLME Callback to avoid misalignments. More...
 
static int _serial_if_mlme_pack_ex_snr_table (uint8_t *puc_buf_des, uint8_t *px_buf_org)
 Packets a MLME Callback to avoid misalignments. More...
 
static int _serial_if_mlme_pack_list_phy_comm (uint8_t *puc_buf_des, uint8_t *px_buf_org)
 Packets a MLME Callback to avoid misalignments. More...
 
static int _serial_if_mlme_pack_mcast_entries (uint8_t *puc_buf_des, uint8_t *px_buf_org)
 Packets a MLME Callback to avoid misalignments. More...
 
static int _serial_if_mlme_pack_mlme_callback (uint8_t *puc_mlme_command, int l_len)
 Packets a MLME Callback to avoid misalignments. More...
 
static int _serial_if_mlme_pack_node_432_table (uint8_t *puc_buf_des, uint8_t *px_buf_org)
 Packets a MLME Callback to avoid misalignments. More...
 
static int _serial_if_mlme_pack_reg_devices (uint8_t *puc_buf_des, uint8_t *px_buf_org)
 Packets a MLME Callback to avoid misalignments. More...
 
static int _serial_if_mlme_pack_switch_table (uint8_t *puc_buf_des, uint8_t *px_buf_org)
 Packets a MLME Callback to avoid misaligments. More...
 
static int _serial_if_mlme_unpack_demote_req_base (void)
 This function extracts the MLME SAP Demote.Request. More...
 
static int _serial_if_mlme_unpack_get_req (void)
 This function extracts the MLME SAP Get.Request. More...
 
static int _serial_if_mlme_unpack_list_get_req (void)
 This function extracts the MLME SAP List.Get.Request. More...
 
static int _serial_if_mlme_unpack_promote_req_base (void)
 This function extracts the MLME SAP Promote.Request. More...
 
static int _serial_if_mlme_unpack_register_req (void)
 This function extracts the MLME SAP Register.Request. More...
 
static int _serial_if_mlme_unpack_set_req (void)
 This function extracts the MLME SAP Set.Request. More...
 
static int _serial_if_mlme_unpack_unregister_req_base (void)
 This function extracts the MLME SAP Unregister.Request. More...
 
uint8_t serial_if_mlme_api_parser (uint8_t *puc_rx_msg, uint16_t us_len)
 Received message. More...
 
int8_t serial_if_mlme_process (void)
 Function to encapsulate MLME Tx Control Process. More...
 

Variables

static uint8_t commandMlmeToPack [MLME_DATA_SIZE]
 
static uint8_t NewMlmeCallBackCmd [MLME_DATA_SIZE]
 
static uint8_t * puc_rx