2.3.28 PHY_GetTrxConfig Function

C

PHY_Retval_t PHY_GetTrxConfig(PHY_ConfigParam_t parameter, uint8_t *paramValue)

Summary

To read a current setting of particular transceiver parameter

Description

The function is used to read the current of particular parameter. The following parameters can be read from TRX, | Param | Description | |:----- |:----------- | |ANT_DIVERSITY|Antenna Diversity| |ANT_SELECT|Antenna Configured - ANTENNA_1/ANTENNA_2| |ANT_CTRL|Antenna Control| |AACK_PROMSCS_MODE|Promiscuous Mode| |TX_PWR|Tx Power Configured| |RX_SENS|Rx Sensitivity| |RX_RPC|RX Reduced Power Consumption| |RX_AUTO_ACK|Automatic acknowledgement| |RX_RESERVED_FRAME|Reserved frame reception| |FILTER_RESERVED_FRAME|Filter reserved frame|

Precondition

PHY_Init() should have been called before calling this function.

Parameters

ParamDescription
parameterType of the parameter to be read
paramValuePointer to the current parameter value

Returns

PHY_INVALID_PARAMETER - If the parameter is invalid

PHY_SUCCESS - otherwise

Example

PHY_Retval_t retVal = PHY_FAILURE;
bool promCtrl = true;

// To get the promiscuous mode configured
PHY_GetTrxConfig(AACK_PROMSCS_MODE, (uint8_t *)&promCtrl);

Remarks

None