1.2.2.4.8 SRV_PSNIFFER_ConvertToneMask Function
C
void SRV_PSNIFFER_ConvertToneMask(uint8_t* pDataSrc, uint8_t* pToneMaskDst);
Summary
Converts a Tone Mask configuration command coming the Microchip Hybrid Sniffer Tool to the right format to be configured on G3-PLC PHY layer.
Description
This function takes a Tone Mask configuration command with the format coming from the Microchip Hybrid Sniffer Tool and converts it to a format to be configured on G3-PLC PHY layer to be used on further transmissions and receptions.
If misconfigured, no PLC frames will be seen.
Precondition
None.
Parameters
Param | Description |
---|---|
pDataSrc | Pointer to the data where the command is stored (USI) |
pToneMaskDst | The Tone Mask converted to PHY format |
Returns
None.
Example
switch (command) { case SRV_PSNIFFER_CMD_SET_PLC_TONE_MASK: { SRV_PSNIFFER_ConvertToneMask(pData, appData.plcPIB.pData); appData.plcPIB.id = PLC_ID_TONE_MASK; appData.plcPIB.length = PSNIFFER_CARRIERS_SIZE; DRV_PLC_PHY_PIBSet(appData.drvPlcHandle, &appData.plcPIB); break; } }
Remarks
This function is only available in G3-PLC profile.