Microchip® Advanced Software Framework

mac_data_req.c File Reference

Implements data request related functions.

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 DATA_REQ_PAYLOAD_LEN   (1)
 

Functions

static buffer_tbuild_null_data_frame (void)
 
static uint8_t find_long_buffer (void *buf, void *long_addr)
 
static uint8_t find_short_buffer (void *buf, void *short_addr)
 
bool mac_build_and_tx_data_req (bool expl_poll, bool force_own_long_addr, uint8_t expl_dest_addr_mode, address_field_t *expl_dest_addr, uint16_t expl_dest_pan_id)
 Build and transmits data request command frame. More...
 
void mac_handle_tx_null_data_frame (void)
 
void mac_process_data_request (buffer_t *msg)
 Processes a received data request command frame. More...
 

#define DATA_REQ_PAYLOAD_LEN   (1)