MiMAC_SetAltAddress Function

MiWi Development Environment

MiWi(TM) Development Environment Help
MiMAC_SetAltAddress Function
C
BOOL MiMAC_SetAltAddress(
    BYTE * Address, 
    BYTE * PANID
);
Description

This is the primary MiMAC interface for the protocol layer to set alternative network address and/or PAN identifier. This function call applies to only IEEE 802.15.4 compliant RF transceivers. In case alternative network address is not supported, this function will return FALSE.

Preconditions

MiMAC initialization has been done.

Parameters
Parameters 
Description 
BYTE * Address 
The alternative network address of the host device. 
BYTE * PANID 
The PAN identifier of the host device 
Returns

A boolean to indicates if setting alternative network address is successful.

Remarks

None

Example
WORD NetworkAddress = 0x0000;
WORD PANID = 0x1234;
MiMAC_SetAltAddress(&NetworkAddress, &PANID);
Microchip My Application xx.yy - [Jan 1, 2009]
Copyright © 2009 Microchip Technology, Inc.  All rights reserved.