1.2.3.4.2 SRV_PSERIAL_ParseGetPIB Function

C

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

Summary

Extracts PIB field from SRV_PSERIAL_CMD_PHY_GET_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_GET_CFG) {
    SRV_PSERIAL_ParseGetPIB(&pibObj, pData);
    /* Get PIB object from PLC Driver */
}

Remarks

None.