MiApp_WriteData Macro

MiWi Development Environment

MiWi(TM) Development Environment Help
MiApp_WriteData Macro
C
#define MiApp_WriteData(a) TxBuffer[TxData++] = a
Description

This macro writes one byte of application payload to the TX buffer.

Preconditions

Protocol initialization has been done. MiApp_FlushTx() has been called before calling the first MiApp_WriteData for the first time.

Parameters
Parameters 
Description 
BYTE a 
One byte of application payload to be written to the TX buffer 
Returns

None

Remarks

None

Example
MiApp_FlushTx();
MiApp_WriteData(AppPayload[0]);
MiApp_WriteData(AppPayload[1]);
Microchip My Application xx.yy - [Jan 1, 2009]
Copyright © 2009 Microchip Technology, Inc.  All rights reserved.