1.3.3.9 PAL_GetPhyPib Function
C
PAL_RESULT PAL_GetPhyPib (
DRV_PLC_PHY_PIB_OBJ *pibObj
)
Summary
Gets value of Meters And More PHY PIB attribute.
Description
This routine allows a user to get information from PLC transceiver via PHY information base (PIB).
Parameters
| Param | Description |
|---|---|
|
pibObj |
Pointer to PIB object to indicate the PIB to read. PIB object includes a data buffer to store the read value. |
Returns
Result of get operation as a PAL_RESULT Enum.
Example
DRV_PLC_PHY_PIB_OBJ pibObj;
uint32_t phyVersion;
pibObj.id = PLC_ID_VERSION_NUM;
pibObj.length = 4;
if (PAL_GetPhyPib(&pibObj) == PAL_RESULT_SUCCESS)
{
phyVersion = *(uint32_t *)pibObj.pData;
}
Remarks
None.
