Microchip® Advanced Software Framework

api_encoder.c File Reference

Encodes mac api's to comman byte stream.

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

#include <string.h>
#include "compiler.h"
#include "sio2ncp.h"
#include "api_parser.h"

Macros

#define MAX_MAC_PIB_ATTRIBUTE_ID   (macMinSIFSPeriod)
 
#define MAX_PHY_PIB_ATTRIBUTE_ID   (phySymbolsPerOctet)
 
#define MIN_MAC_PIB_ATTRIBUTE_ID   (macAckWaitDuration)
 
#define MIN_PRIVATE_PIB_ATTRIBUTE_ID   (macIeeeAddress)
 

Functions

static FLASH_DECLARE (uint8_t phy_pib_size[])
 
uint8_t mac_get_pib_attribute_size (uint8_t pib_attribute_id)
 
retval_t wpan_init (void)
 The stack initialization function. More...
 
bool wpan_mcps_data_req (uint8_t SrcAddrMode, wpan_addr_spec_t *DstAddrSpec, uint8_t msduLength, uint8_t *msdu, uint8_t msduHandle, uint8_t TxOptions)
 Initiate MCPS-DATA.request service and have it placed in the MCPS-SAP queue. More...
 
bool wpan_mlme_gts_req (uint16_t DevShortAddr, gts_char_t GtsChar)
 
bool wpan_mlme_reset_req (bool SetDefaultPib)
 Initiate MLME-RESET.request service and have it placed in the MLME-SAP queue. More...
 
bool wpan_mlme_set_req (uint8_t PIBAttribute, void *PIBAttributeValue)
 Initiate MLME-SET.request service and have it placed in MLME_SAP queue. More...
 

Variables

static uint8_t length = 0
 
static uint8_t * tx_buff_ptr = &tx_buffer[CMD_POS]
 
static uint8_t tx_buffer [TX_BUFFER_LENGTH] = {0}