Call Back Functions

MiWi Development Environment

MiWi(TM) Development Environment Help
Call Back Functions
Callback Functions

 

MiApp callback functions are called from the protocol stack to application layer. In most of the cases, the callback functions are defined as macros. If developer choose to implement the function, the macro can be commented out and replaced by a function call in the application layer.

Macros
 
Name 
Description 
 
MiApp_CB_AllowConnection is called by the stack to the application layer to notify the application that a node is trying to join the network. Application may return a boolean to indicate if joining is allowed or denied. 
 
MiApp_CB_RFDAcknowledgement is called by the MiWi or MiWi PRO stack to notify the application that a network layer acknowledgement is received from a sleeping device. MiApp function MiApp_UnicastAddress or MiApp_UnicastConnection cannot wait for the acknowledgement from a sleep device, so call back function has to be used to notify the application layer that acknowledgement has been received. 
Microchip My Application xx.yy - [Jan 1, 2009]
Copyright © 2009 Microchip Technology, Inc.  All rights reserved.