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.

Parameters

ParamDescription
handleA valid open-instance handle, returned from the driver's open routine
pibObjPointer 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.