1.1.1.4.15 DRV_PLC_PHY_EnableTX Function

C

void DRV_PLC_PHY_EnableTX (
    const DRV_HANDLE handle, 
    bool enable 
);

Summary

Enables/Disables PLC transmission.

Description

This function allows a client to enable or disable the PLC transmission. If there is any transmission on going, it will be cancelled and notified through the TX confirm callback.

For PL360 this function does nothing.

Precondition

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

Parameters

ParamDescription
handleA valid open-instance handle, returned from the driver's open routine
enableSet true to enable PLC transmission. Set false to disable it.

Returns

None.

Example

DRV_HANDLE handle; // Returned from DRV_PLC_PHY_Initialize

while (true)
{
    // ...
    if (handle)
    {
        DRV_PLC_PHY_EnableTX (object, false);
    }
    else
    {
        DRV_PLC_PHY_EnableTX (object, true);
    }
    // ...
}

Remarks

This function is only available for PL460 (MCC configuration).