1.4.3.21 PAL_GetSNR Function
C
uint8_t PAL_GetSNR(uint16_t pch, uint8_t *snr, uint8_t qt);
Summary
Convert QT value to Signal Noise Ratio (SNR).
Description
This function is used to get the value of the Signal to Noise Ratio, defined as the ratio of measured received signal level to noise level of last received PPDU (PHY Protocol Data Unit).
Precondition
The PAL_Initialize function should have been called before calling this function.
Parameters
Param | Description |
---|---|
pch | Physical channel |
snr | Signal to noise ratio output parameter |
qt | QT input parameter to get SNR level |
Returns
PAL_CFG_SUCCESS - If successful
PAL_CFG_INVALID_INPUT - If unsuccessful
Example
uint8_t result=PAL_CFG_SUCCESS;
uint8_t snr=0;
uint8_t qt=5;
uint16_t pch=1;
result = PAL_GetSNR(pch, &snr, qt);
Remarks
Not available in PHY Serial medium.