1.3.3.12 PAL_DataIndication Typedef

C

typedef void (*PAL_DataIndication)(uint8_t *pData, uint16_t length);

Summary

Pointer to a PAL Data Indication event handler function.

Description

This data type defines the required function signature for the PAL reception data indication 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

pData

Pointer to the data buffer containing received data

length

Length of the received data in bytes

Returns

None.

Example

    static void _plcDataIndication(uint8_t *pData, uint16_t length)
    {

    }

    PAL_INIT palInitData;

    palInitData.palHandlers.palDataIndication = _plcDataIndication;
    palInitData.palHandlers.palTxConfirm = _plcTxConfirm;
    palInitData.palHandlers.palRxParamsIndication = _plcRxParamsIndication;

    PAL_Init(&palInitData);

Remarks

None.