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]);