Mkw01 Smac To Application Messaging - NXP Semiconductors MKW01 Reference Manual

Simple media access controller (smac)
Table of Contents

Advertisement

Usage
This data type is used internally by SMAC. Call SMAC_SetIVKey with two 16 byte buffer pointers as
parameters to change the SMAC initial vector and encryption key settings.
2.3

MKW01 SMAC to Application Messaging

The RTOS based SMAC communicates with the application layer in two ways: directly, through the return
value of the functions, if the request is synchronous (change channel, output power, etc) and indirectly,
through SAPs for asynchronous events (data confirm, ED/CCA confirm, data indication, timeout
indication). Both SAPs (data and management) pass information to the application using a messaging
system. The data structures used by this system are described below.
typedef enum smacMessageDefs_tag
{
gMcpsDataCnf_c,
gMcpsDataInd_c,
gMlmeCcaCnf_c,
gMlmeEdCnf_c,
gMlmeTimeoutInd_c,
gMlme_UnexpectedRadioResetInd_c,
}smacMessageDefs_t;
The above enumeration summarizes the types of messages passed through SAPs. As mentioned earlier,
there are data confirm, data indication (data layer), CCA confirm, ED confirm, timeout indication and
unexpected radio reset indication (management layer) messages. Each message type is accompanied by
corresponding message data. The main structures that build the message data are described below.
Table 2-1. Message Types and Associated Data Structures
Index
1
2
3
MKW01 Simple Media Access Controller (SMAC) Reference Manual, Rev. 0.0
Freescale Semiconductor
Associated Data
Message Type
Structures
smacDataCnf_t
gMcpsDataCnf_c
gMcpsDataInd_c
smacDataInd_t
smacCcaCnf_t
gMlmeCcaCnf_c
Description
Contains a smacErrors_t element. See
Section 2.2.8,
"smacErrors_t"
u8LastRxRssi
value indicating the RSSI obtained during
the reception
pRxPacket
pointer to the packet passed as
parameter to MLMERXEnableRequest.
Contains a smacErrors_t element. See
Section 2.2.8,
"smacErrors_t"
Software Architecture
2-17

Advertisement

Table of Contents
loading

Table of Contents