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.

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.