Mkw01 Smac Data Types And Structures; Fundamental Data Types; Rxpacket_T - NXP Semiconductors MKW01 Reference Manual

Simple media access controller (smac)
Table of Contents

Advertisement

Software Architecture
MKW01 SMAC projects support only the MKW01-based target boards
designated in the files.
2.2

MKW01 SMAC Data Types and Structures

The MKW01 SMAC fundamental data types and defined structures are discussed in the following
sections.
2.2.1

Fundamental Data Types

The following list shows the fundamental data types and the naming convention used in the MKW01
SMAC:
uint8_t
Unsigned 8-bit definition
uint16_t
Unsigned 16-bit definition
uint32_t
Unsigned 32-bit definition
int8_t
Signed 8-bit definition
int16_t
Signed 16-bit definition
int32_t
Signed 32-bit definition
These data types are used in the MKW01 SMAC project as well as in the applications projects. They are
defined in the
EmbeddedTypes.h
2.2.2

rxPacket_t

This structure defines the variable used for MKW01 SMAC received data buffer:
typedef struct rxPacket_tag{
uint8_t
u8MaxDataLength;
rxStatus_t rxStatus;
uint8_t
u8DataLength;
smacHeader_t smacHeader;
smacPdu_t
smacPdu;
}rxPacket_t;
Members
u8MaxDataLength
Max number of bytes to be received.
rxStatus
Indicates the reception state. See rxStatus_t data type for more detail.
u8DataLength
Number of received bytes.
smacPdu
The MKW01 SMAC protocol data unit.
smacHeader
SMAC structure that defines the header used. Freescale recommends that the user
does not modify this structure directly, but through the associated functions.
MKW01 Simple Media Access Controller (SMAC) Reference Manual, Rev. 0.0
2-10
NOTE
file.
Freescale Semiconductor

Advertisement

Table of Contents
loading

Table of Contents