1.3.3.13 PAL_TxConfirm Typedef
C
typedef void (*PAL_TxConfirm)(PAL_RESULT result);
Summary
Pointer to a PAL Transmission Confirm event handler function.
Description
This data type defines the required function signature for the PAL transmission confirm event handling callback function. When PAL_Init is called, a client must register a pointer whose function signature (parameter and return value types) matches the types specified by this function pointer in order to receive transfer related event calls back from the PAL.
Parameters
| Param | Description |
|---|---|
|
result |
Transmission result reported as PAL_RESULT Enum. |
Returns
None.
Example
static void _plcTxConfirm(PAL_RESULT result)
{
switch(result)
{
case PAL_RESULT_SUCCESS:
break;
case PAL_RESULT_ERROR:
break;
case PAL_RESULT_TIMEOUT:
break;
}
}
PAL_INIT palInitData;
palInitData.palHandlers.palDataIndication = _plcDataIndication;
palInitData.palHandlers.palTxConfirm = _plcTxConfirm;
palInitData.palHandlers.palRxParamsIndication = _plcRxParamsIndication;
PAL_Init(&palInitData);
Remarks
If the result is PAL_RESULT_SUCCESS, it means that the data was transferred successfully. Otherwise, result indicates the error type.
