Jump to main content

# 1.1.1.4.5 DRV_PLC_PHY_PIBGet Function

## C

    void DRV_PLC_PHY_PIBGet (
        const DRV_HANDLE handle,
        DRV_PLC_PHY_PIB_OBJ *pibObj
    );

## Summary

Allows a client to get information from PLC transceiver about PHY Information Base (PIB).

## Description

This routine gets PHY data information from the PLC transceiver.

## Precondition

DRV_PLC_PHY_Open must have been called to obtain a valid opened device handle.

## Parameters

Param | Description
--- | ---
handle | A valid open-instance handle, returned from the driver's open routine.
pibObj | Pointer to the PIB object to get.

## Returns

None.

## Example

    // 'handle', returned from DRV_PLC_PHY_Open previously called

    DRV_PLC_PHY_PIB_OBJ pibObj;
    uint32_t phyVersion;

    pibObj.pData = &phyVersion;
    pibObj.length = 4;
    pibObj.id = PLC_ID_VERSION_NUM;

    DRV_PLC_PHY_PIBGet(handle, &pibObj);

## Remarks

None.

Rev: G