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.
Description
Takes a SetPIB 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_SET_CFG) { SRV_PSERIAL_ParseSetPIB(&pibObj, pData); /* Set PIB object on PLC Driver */ }
Remarks
None.