Microchip® Advanced Software Framework

mac_mcps_data.c File Reference

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)
 
static uint8_t check_msdu_handle_cb (void *buf, void *handle)
 
static uint8_t check_persistence_time_zero (void *buf_ptr, void *handle)
 
static uint8_t decrement_persistence_time (void *buf_ptr, void *handle)
 
static void handle_exp_persistence_timer (buffer_t *buf_ptr)
 
static void handle_persistence_time_decrement (void)
 
static bool mac_buffer_purge (uint8_t msdu_handle)
 
void mac_gen_mcps_data_conf (buffer_t *buf, uint8_t status, uint8_t handle, uint32_t timestamp)
 
void mac_process_data_frame (buffer_t *buf_ptr)
 Processes data frames. More...
 
void mac_start_persistence_timer (void)
 
static void mac_t_persistence_cb (void *callback_parameter)
 
void mcps_data_request (uint8_t *msg)
 Builds the data frame for transmission. More...
 
void mcps_purge_request (uint8_t *msg)
 Processes a MCPS-PURGE.request primitive. More...
 

#define FRAME_COUNTER_LEN   (0x04)

static uint8_t check_msdu_handle_cb ( void *  buf,
void *  handle 
)
static

References frame_info_tag::msduHandle.

Referenced by mac_buffer_purge().

static uint8_t check_persistence_time_zero ( void *  buf_ptr,
void *  handle 
)
static
static uint8_t decrement_persistence_time ( void *  buf_ptr,
void *  handle 
)
static
static bool mac_buffer_purge ( uint8_t  msdu_handle)
static
static void mac_t_persistence_cb ( void *  callback_parameter)
static