2.3.20 PHY_ConfigRxPromiscuousMode Function

C

PHY_Retval_t PHY_ConfigRxPromiscuousMode(bool promCtrl)

Summary

Configures RX promiscuous mode

Description

This function is used to enable the RX promiscuous mode. The TRX will receive all frames even with FCS failure, PHY layer will discard the CRC invalid packet and TRX will not acknowledge even ack is requested by the received packet(auto ack is disabled in this mode).

Precondition

PHY_Init() should have been called before calling this function

Parameters

ParamDescription
promCtrltrue to enable promiscuous mode
false to disable promiscuous mode

Returns

PHY_SUCCESS - If promCtrl bits are configured correctly

PHY_FAILURE - otherwise

Example

bool promCtrl = true;

// Enable Promiscuous mode
PHY_ConfigRxPromiscuousMode(promCtrl);

// To get the PDT level configured
PHY_GetTrxConfig(AACK_PROMSCS_MODE, &promCtrl);

Remarks

None