2.3.8 PHY_RxEnable Function
C
PHY_TrxStatus_t PHY_RxEnable(PHY_TrxState_t state)
Summary
Switches receiver on or off
Description
This function switches the receiver on (PHY_STATE_RX_ON) or off (PHY_STATE_TRX_OFF)
Precondition
PHY_init() should have been called before calling this function.
Parameters
Param | Description |
---|---|
state | State of the Transceiver to be set |
PHY_STATE_RX_ON - Transceiver will be put into Receive state | |
PHY_STATE_TRX_OFF -Transceiver will be put into OFF state |
Returns
PHY_TRX_OFF- If receiver has been switched off, or PHY_RX_ON - otherwise.
Example
PHY_TrxStatus_t trxStatus; PHY_TrxState_t trxState = PHY_STATE_RX_ON; trxStatus = PHY_RxEnable(trxState); if(PHY_RX_ON == trxStatus) { //TRX is in receive state }
Remarks
None