MiMAC_ReceivedPacket Function

MiWi Development Environment

MiWi(TM) Development Environment Help
MiMAC_ReceivedPacket Function
C
BOOL MiMAC_ReceivedPacket();
Description

This is the primary MiMAC interface for the protocol layer to check if a packet has been received by the RF transceiver. When a packet has been received, all information will be stored in the global variable MACRxPacket in the format of MAC_RECEIVED_PACKET

This is the primary MiMAC interface for the protocol layer to check if a packet has been received by the RF transceiver. When a packet has been received, all information will be stored in the global variable MACRxPacket in the format of MAC_RECEIVED_PACKET;

Preconditions

MiMAC initialization has been done. 

MiMAC initialization has been done.

Returns

A boolean to indicate if a packet has been received by the RF transceiver. 

A boolean to indicate if a packet has been received by the RF transceiver.

Remarks

None 

None

Example 1
if( TRUE == MiMAC_ReceivedPacket() )
{
    // handle the raw data from RF transceiver

    // discard the current packet
    MiMAC_DiscardPacket();
}
Example 2
if( TRUE == MiMAC_ReceivedPacket() )
{
    // handle the raw data from RF transceiver

    // discard the current packet
    MiMAC_DiscardPacket();
}
Microchip My Application xx.yy - [Jan 1, 2009]
Copyright © 2009 Microchip Technology, Inc.  All rights reserved.