1.2.3.4.6 SRV_PSERIAL_ParseTxMessage Function

C

void SRV_PSERIAL_ParseTxMessage
(
    DRV_PLC_PHY_TRANSMISSION_OBJ* pDataDst,
    uint8_t* pDataSrc
);

Summary

Extracts a PLC frame to be transmitted from SRV_PSERIAL_CMD_PHY_SEND_MSG Serial frame.

Precondition

None.

Parameters

ParamDescription
pDataDstPointer to a DRV_PLC_PHY_TRANSMISSION_OBJ object to fill
pDataSrcPointer to buffer containing Serial frame

Returns

None.

Example

SRV_PSERIAL_COMMAND command;
DRV_PLC_PHY_TRANSMISSION_OBJ plcTxObj;

/* Process received message from USI */
command = SRV_PSERIAL_GetCommand(pData);
if (command == SRV_PSERIAL_CMD_PHY_SEND_MSG) {
    SRV_PSERIAL_ParseTxMessage(&plcTxObj, pData);
    /* Send Message through PLC */
    DRV_PLC_PHY_Send(appData.drvPl360Handle, &plcTxObj);
}

Remarks

None.