Jump to main content

# 1.2.2.4.4 SRV_PSNIFFER_SetTxMessage Function

## C

    void SRV_PSNIFFER_SetTxMessage
    (
        DRV_PLC_PHY_TRANSMISSION_OBJ* pTxObj
    );

## Summary

Gives a transmitted PLC object to Sniffer library so it is stored for later serialization.

## Description

The given transmitted PLC object contains a PLC frame and its related parameters, all this info is stored in sniffer library for later serialization when SRV_PSNIFFER_SerialCfmMessage is called.

## Precondition

None.

## Parameters

Param | Description
--- | ---
pTxObj | Pointer to a PLC transmission object to be stored (see G3 DRV_PLC_PHY_TRANSMISSION_OBJ Struct and PRIME DRV_PLC_PHY_TRANSMISSION_OBJ Struct).

## Returns

None.

## Example

    static void APP_PLCTxFrame(DRV_PLC_PHY_TRANSMISSION_OBJ* pTxObj)
    {
        /* Give transmission object to Sniffer */
        SRV_PSNIFFER_SetTxMessage(pTxObj);
        /* Send PLC frame through PHY Driver */
        /* DRV_PLC_PHY_xxx(pTxObj); */
    }

## Remarks

None.

Rev: G