2.3.24 PHY_ConvertTxPwrRegValToDbm Function
C
PHY_Retval_t PHY_ConvertTxPwrRegValToDbm(uint8_t regValue, int8_t *dbmValue)
Summary
To convert the Tx Power Register index value to dbm Value
Description
This function is used to convert Tx Power Register index value to dbm Value
Precondition
PHY_Init() should have been called before calling this function
Parameters
Param | Description |
---|---|
regVaue | Index of the Power register value (Range 0-15) |
dbmValue | Corresponding dbm value to the Pwr register value |
Returns
PHY_SUCCESS - If reg value can be converted into dBm value
PHY_FAILURE - If regVaue is holding the invalid value
Example
uint8_t pwrRegIndex = 0x04; int8_t pwrDbm; // To get the dBm value corresponding to power register index PHY_ConvertTxPwrRegValToDbm(pwrRegIndex, &pwrDbm);
Remarks
None