Logo Search packages:      
Sourcecode: icomlib version File versions  Download package

const char * PCP::PCPGetAutoGainStr (  ) 

Get current session's autogain value (const char* version).

Checks PCPRadio struct for member PCPAutoGain for the current auto-gain setting. Decodes true and false into string values "1" and "0".

Returns:
the character string of the current setting.
See also:
PCPGetAutoGain PCPSetAutoGain

Definition at line 1179 of file pcp.cpp.

References PCPGetAutoGain(), and PCPTemp.

{
    memset(PCPTemp, '\0', sizeof(PCPTemp));
    (PCPGetAutoGain())?(strcpy(PCPTemp,"1")):(strcpy(PCPTemp,"0"));
    return PCPTemp;
}


Generated by  Doxygen 1.6.0   Back to index