Jump to main content

# 1.1.1.4.6 DRV_PLC_PHY_PIBSet Function

## C

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

## Summary

Allows a client to set information to PLC transceiver on PHY Information Base (PIB).

## Description

This routine sets PHY data information to 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 set.

## Returns

None.

## Example

    // 'handle', returned from DRV_PLC_PHY_Open previously called

    DRV_PLC_PHY_PIB_OBJ pibObj;
    uint8_t autoMode
    uint8_t impedance;

    // Disable AUTODETECT impedance mode
    autoMode = 0;

    // Set VLO impedance mode
    impedance = VLO_STATE;

    pibObj.pData = &autoMode;
    pibObj.length = 1;
    pibObj.id = PLC_ID_CFG_AUTODETECT_IMPEDANCE;
    DRV_PLC_PHY_PIBSet(handle, &pibObj);

    pibObj.pData = &impedance;
    pibObj.length = 1;
    pibObj.id = PLC_ID_CFG_IMPEDANCE;
    DRV_PLC_PHY_PIBSet(handle, &pibObj);

## Remarks

None.

Rev: G