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 PHY Protocol Data Unit (PPDU).

Precondition

The PAL_Initialize function should have been called before calling this function.

Parameters

ParametersDescription
pchPhysical channel
snrSignal to noise ratio output parameter
qtQT 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.