MiMAC_SendPacket Function

MiWi Development Environment

MiWi(TM) Development Environment Help
MiMAC_SendPacket Function
C
BOOL MiMAC_SendPacket(
    MAC_TRANS_PARAM transParam, 
    BYTE * MACPayload, 
    BYTE MACPayloadLen
);
Description

This is the primary MiMAC interface for the protocol layer to send a packet. Input parameter transParam configure the way to transmit the packet.

Preconditions

MiMAC initialization has been done.

Parameters
Parameters 
Description 
MAC_TRANS_PARAM transParam 
The struture to configure the transmission way 
BYTE * MACPaylaod 
Pointer to the buffer of MAC payload 
BYTE MACPayloadLen 
The size of the MAC payload 
Returns

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

Remarks

None

Example
MiMAC_SendPacket(transParam, MACPayload, MACPayloadLen);
Microchip My Application xx.yy - [Jan 1, 2009]
Copyright © 2009 Microchip Technology, Inc.  All rights reserved.