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.
Description
Takes a GetPIB Serial frame as parameter, extracts the PIB information from the expected position in buffer and fills a DRV_PLC_PHY_PIB_OBJ object, see G3 DRV_PLC_PHY_PIB_OBJ Struct and PRIME DRV_PLC_PHY_PIB_OBJ Struct.
Precondition
None.
Parameters
| Param | Description |
|---|---|
| pDataDst | Pointer to a DRV_PLC_PHY_PIB_OBJ object to fill |
| pDataSrc | Pointer 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.
