
MC1322x SMAC Primitives
MC1322x SMAC Reference Manual, Rev. 1.7
Freescale Semiconductor
3-23
3.4.3
OTAP_Init
OTAP_Init must be called at the application data execution. This function identifies an incoming message
which pretends to put the application on OTAP mode.
Prototype
void OTAP_Init(message_t * pRxMsg)
Arguments
pRxMsg
A message of RX type, OTAP will check the incoming data on this message, this
message can be the same RX message from the application or the application shall
copy the data from its buffer to the pRxMsg´s buffer, the easiest solution is to
share the RX message between the application and the OTAP module.
Returns
None
Usage
OTAP_Init must be called at the end of the initialization section as shown on the following sample code.
...
#if OTAP_ENABLED == TRUE
OTAP_Init(&RX_msg);
gbOtapExecute = OTAP_ENABLED;
#endif
...