0.01.00
mac.cpp File Reference

This file implements the subset of IEEE 802.15.4 primitives required for Thread. More...

#include "mac.hpp"
#include "utils/wrap_string.h"
#include <openthread/platform/random.h>
#include "openthread-instance.h"
#include "common/code_utils.hpp"
#include "common/debug.hpp"
#include "common/encoding.hpp"
#include "common/logging.hpp"
#include "crypto/aes_ccm.hpp"
#include "crypto/sha256.hpp"
#include "mac/mac_frame.hpp"
#include "thread/link_quality.hpp"
#include "thread/mle_router.hpp"
#include "thread/thread_netif.hpp"

Macros

#define WPP_NAME   "mac.tmh"
 

Functions

void ot::Mac::otPlatRadioEnergyScanDone (otInstance *aInstance, int8_t aEnergyScanMaxRssi)
 The radio driver calls this method to notify OpenThread that the energy scan is complete. More...
 
void ot::Mac::otPlatRadioTxStarted (otInstance *aInstance, otRadioFrame *aFrame)
 The radio driver calls this method to notify OpenThread that the transmission has started. More...
 
void ot::Mac::otPlatRadioTxDone (otInstance *aInstance, otRadioFrame *aFrame, otRadioFrame *aAckFrame, otError aError)
 The radio driver calls this function to notify OpenThread that the transmit operation has completed, providing both the transmitted frame and, if applicable, the received ack frame. More...
 
void ot::Mac::otPlatRadioReceiveDone (otInstance *aInstance, otRadioFrame *aFrame, otError aError)
 The radio driver calls this method to notify OpenThread of a received frame. More...
 

Variables

static const uint8_t ot::Mac::sMode2Key []
 
static const otExtAddress ot::Mac::sMode2ExtAddress
 
static const uint8_t ot::Mac::sExtendedPanidInit [] = {0xde, 0xad, 0x00, 0xbe, 0xef, 0x00, 0xca, 0xfe}
 
static const char ot::Mac::sNetworkNameInit [] = "OpenThread"
 

Detailed Description

This file implements the subset of IEEE 802.15.4 primitives required for Thread.

Variable Documentation

§ sMode2ExtAddress

const otExtAddress ot::Mac::sMode2ExtAddress
static
Initial value:
=
{
{ 0x35, 0x06, 0xfe, 0xb8, 0x23, 0xd4, 0x87, 0x12 },
}

§ sMode2Key

const uint8_t ot::Mac::sMode2Key[]
static
Initial value:
=
{
0x78, 0x58, 0x16, 0x86, 0xfd, 0xb4, 0x58, 0x0f, 0xb0, 0x92, 0x54, 0x6a, 0xec, 0xbd, 0x15, 0x66
}