1.2.2.4 Library Interface

PLC PHY Sniffer library provides the following interfaces:

Functions

NameDescription
SRV_PSNIFFER_GetCommandExtracts Command field from Sniffer frame
SRV_PSNIFFER_SerialRxMessageSerializes a received PLC frame along with its parameters
SRV_PSNIFFER_SerialCfmMessageSerializes a transmitted PLC frame along with its parameters
SRV_PSNIFFER_SetTxMessageGives a transmitted PLC object to Sniffer library so it is stored for later serialization
SRV_PSNIFFER_SetRxPayloadSymbolsSets the number of received symbols on Sniffer library for further use
SRV_PSNIFFER_SetTxPayloadSymbolsSets the number of transmitted symbols on Sniffer library for further use
SRV_PSNIFFER_SetPLCChannelSets PLC channel to be used on PLC Sniffer (Only available on PRIME PLC profile)
SRV_PSNIFFER_ConvertToneMaskConverts a Tone Mask configuration coming from an external tool to the right format to be configured on PLC PHY layer (Only available on G3 PLC profile)

Data types and constants

NameTypeDescription
SRV_PSNIFFER_COMMANDEnumDefines the available PLC Sniffer commands