Jump to main content

# 1.2.2.4.6 SRV_PSNIFFER_SetTxPayloadSymbols Function

## C

    void SRV_PSNIFFER_SetTxPayloadSymbols
    (
        uint16_t payloadSym
    );

## Summary

Sets the number of transmitted symbols on Sniffer library for further use.

## Description

Number of transmitted symbols is set on Sniffer library so that info can be later serialized along with other transmission parameters.

## Precondition

None.

## Parameters

Param | Description
--- | ---
payloadSym | Number of symbols.

## Returns

None.

## Example

    static void APP_PLCDataCfmCb(DRV_PLC_PHY_TRANSMISSION_CFM_OBJ *pCfmObj)
    {
        /* Report TX Symbols */
        appData.plcPIB.id = PLC_ID_TX_PAY_SYMBOLS;
        appData.plcPIB.length = 2;
        DRV_PLC_PHY_PIBGet(appData.drvPl360Handle, &appData.plcPIB);

        SRV_PSNIFFER_SetTxPayloadSymbols(*(uint16_t *)appData.plcPIB.pData);

        /* Serialize transmitted message */
        length = SRV_PSNIFFER_SerialCfmMessage(appData.pSerialData, pCfmObj);
        /* Send through USI */
        SRV_USI_Send_Message(appData.srvUSIHandle, SRV_USI_PROT_ID_SNIFF_G3,
                appData.pSerialData, length);
    }

## Remarks

None.

Rev: G