1.2.3.4.4 SRV_PSERIAL_ParseSetPIB Function

C

void SRV_PSERIAL_ParseSetPIB
(
    DRV_PLC_PHY_PIB_OBJ* pDataDst,
    uint8_t* pDataSrc
);

Summary

Extracts PIB field from SRV_PSERIAL_CMD_PHY_SET_CFG Serial frame.

Precondition

None.

Parameters

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

Returns

None.

Example

SRV_PSERIAL_COMMAND command;
DRV_PLC_PHY_PIB_OBJ pibObj;

/* Process received message from USI */
command = SRV_PSERIAL_GetCommand(pData);
if (command == SRV_PSERIAL_CMD_PHY_SET_CFG) {
    SRV_PSERIAL_ParseSetPIB(&pibObj, pData);
    /* Set PIB object on PLC Driver */
}

Remarks

None.