Handles MCPS related primitives and frames.
Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.
#include <compiler.h>
#include <string.h>
#include <stdint.h>
#include <stdbool.h>
#include "return_val.h"
#include "pal.h"
#include "bmm.h"
#include "qmm.h"
#include "tal.h"
#include "ieee_const.h"
#include "mac_msg_const.h"
#include "mac_api.h"
#include "mac_msg_types.h"
#include "mac_data_structures.h"
#include "stack_config.h"
#include "mac_internal.h"
#include "mac.h"
#include "mac_build_config.h"
Macros | |
#define | FRAME_COUNTER_LEN (0x04) |
Functions | |
static retval_t | build_data_frame (mcps_data_req_t *pmdr, frame_info_t *frame) |
void | mac_gen_mcps_data_conf (buffer_t *buf, uint8_t status, uint8_t handle) |
void | mac_process_data_frame (buffer_t *buf_ptr) |
Processes data frames. More... | |
void | mcps_data_request (uint8_t *msg) |
Builds the data frame for transmission. More... | |
#define FRAME_COUNTER_LEN (0x04) |
|
static |
References aMaxMACSafePayloadSize, aMaxPHYPacketSize, convert_16_bit_to_byte_address(), convert_16_bit_to_byte_array(), convert_64_bit_to_byte_array(), convert_spec_16_bit_to_byte_array(), mcps_data_req_tag::DstAddr, mcps_data_req_tag::DstAddrMode, mcps_data_req_tag::DstPANId, FCF_ACK_REQUEST, FCF_FRAME_VERSION_2006, FCF_FRAMETYPE_DATA, FCF_LONG_ADDR, FCF_NO_ADDR, FCF_PAN_ID_COMPRESSION, FCF_SECURITY_ENABLED, FCF_SET_DEST_ADDR_MODE, FCF_SET_FRAMETYPE, FCF_SET_SOURCE_ADDR_MODE, FCF_SHORT_ADDR, if(), mac_pib_tag::mac_DSN, MAC_FRAME_TOO_LONG, mac_pib, MAC_SUCCESS, frame_info_tag::mpdu, mcps_data_req_tag::msduLength, mcps_data_req_tag::SrcAddrMode, tal_pib, mcps_data_req_tag::TxOptions, and WPAN_TXOPT_ACK.
Referenced by mcps_data_request().