1.2.3.4.8 SRV_PSERIAL_SerialCfmMessage Function

C

size_t SRV_PSERIAL_SerialCfmMessage
(
    uint8_t* pDataDst,
    DRV_PLC_PHY_TRANSMISSION_CFM_OBJ* pDataSrc
);

Summary

Serializes the result of a PLC transmitted frame.

Precondition

None.

Parameters

ParamDescription
pDataDstPointer to buffer where frame will be serialized
pDataSrcPointer to a DRV_PLC_PHY_TRANSMISSION_CFM_OBJ object containing the PLC transmission result and parameters

Returns

Length of serialized frame.

Example

static void APP_PLCDataCfmCb(DRV_PLC_PHY_TRANSMISSION_CFM_OBJ *cfmObj, uintptr_t context)
{
    size_t length;

    /* Serialize received message */
    length = SRV_PSERIAL_SerialCfmMessage(appData.pSerialData, cfmObj);
    /* Send through USI */
    SRV_USI_Send_Message(appData.srvUSIHandle, SRV_USI_PROT_ID_PHY,
            appData.pSerialData, length);
}

Remarks

None.