1.1.1.4 Library Interface

PLC PHY driver library provides the following interfaces:

Functions

NameDescription
DRV_PLC_PHY_InitializeInitializes the PLC PHY instance for the specified driver index
DRV_PLC_PHY_OpenOpens the specified PLC PHY driver instance and returns a handle to it
DRV_PLC_PHY_CloseCloses an opened instance of the PLC PHY driver given its handle
DRV_PLC_PHY_TxRequestAllows a client to transmit PLC PHY data through Power Line
DRV_PLC_PHY_PIBGetAllows a client to get information from PLC transceiver about PLC PHY and PHY information base (PIB)
DRV_PLC_PHY_PIBSetAllows a client to set information to PLC transceiver on PLC PHY and PHY information base (PIB)
DRV_PLC_PHY_TxCfmCallbackRegisterAllows a client to set a data confirm event handling function for the driver to call back when the requested transmission has finished
DRV_PLC_PHY_DataIndCallbackRegisterAllows a client to set a data indication event handling function for the driver to call back when a data reception has finished
DRV_PLC_PHY_SleepDisableCallbackRegisterAllows a client to set an sleep mode disable event handling function for the driver to call back when the PLC driver is active again
DRV_PLC_PHY_ExceptionCallbackRegisterAllows a client to set an exception event handling function for the driver to call back when some error occurs through PLC transceiver communication
DRV_PLC_PHY_ExternalInterruptHandlerAllows application to register callback for PLC Interrupt pin
DRV_PLC_PHY_StatusGets the current status of the PLC driver module
DRV_PLC_PHY_TasksMaintains the driver's state machine
DRV_PLC_PHY_SleepPLC driver Sleep mode management
DRV_PLC_PHY_EnableTXEnables/Disables PLC transmission

Data types and constants

NameTypeDescription
DRV_PLC_PHY_TX_CFM_CALLBACKTypedefPointer to a PLC PHY Driver Transmission Confirm Event handler function
DRV_PLC_PHY_DATA_IND_CALLBACKTypedefPointer to a PLC PHY Driver Reception Event handler function
DRV_PLC_PHY_SLEEP_CALLBACKTypedefNotifies when Sleep Mode is disabled and PLC PHY driver is available to be used again
DRV_PLC_PHY_EXCEPTION_CALLBACKTypedefPointer to a PLC PHY Driver Exceptions Event handler function
DRV_PLC_PHY_EXCEPTIONEnumDefines the type for PLC PHY Driver transfer errors

G3 Data types and constants

NameTypeDescription
DRV_PLC_PHY_IDEnumList of available G3 PLC PHY Information Base objects
DRV_PLC_PHY_MOD_TYPEEnumList of G3 modulations
DRV_PLC_PHY_MOD_SCHEMEEnumList of G3 modulations schemes
DRV_PLC_PHY_DEL_TYPEEnumList of G3 delimiter types
DRV_PLC_PHY_TX_RESULTEnumList of transmission results
DRV_PLC_PHY_TONE_MAP_RSPStructIncludes modulation type, modulation scheme and Tone Map data
DRV_PLC_PHY_MAX_PSDU_LEN_PARAMSStructIncludes the parameters used to get the maximum PSDU length computation
DRV_PLC_PHY_TRANSMISSION_OBJStructIncludes PLC Transmission setup data
DRV_PLC_PHY_TRANSMISSION_CFM_OBJStructIncludes a transmission result and timestamp
DRV_PLC_PHY_RECEPTION_OBJStructIncludes PLC PHY Reception data and PHY parameters
DRV_PLC_PHY_PIB_OBJStructObject to access the PLC PHY Information Base

PRIME Data types and constants

NameTypeDescription
DRV_PLC_PHY_IDEnumList of available PRIME PLC PHY Information Base objects
DRV_PLC_PHY_SCHEnumList of PRIME modulations schemes
DRV_PLC_PHY_FRAME_TYPEEnumList of PRIME frame types
DRV_PLC_PHY_HEADEREnumList of PRIME header types
DRV_PLC_PHY_CHANNELEnumList of PRIME channels
DRV_PLC_PHY_BUFFER_IDEnumList of buffers ID to handle PLC communications
DRV_PLC_PHY_TX_RESULTEnumList of transmission results
DRV_PLC_PHY_SIGNAL_CAPTURE_STATEEnumIncludes the Noise Capture States
DRV_PLC_PHY_SIGNAL_CAPTURE_INFOStructIncludes information about Noise Capture
DRV_PLC_PHY_TRANSMISSION_OBJStructIncludes PLC Transmission setup data
DRV_PLC_PHY_TRANSMISSION_CFM_OBJStructIncludes a transmission result and timestamp
DRV_PLC_PHY_RECEPTION_OBJStructIncludes PLC PHY Reception data and PHY parameters
DRV_PLC_PHY_PIB_OBJStructObject to access the PLC PHY Information Base