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

bool PCP::PCPCheckResponse (  )  [private]

Internally called method to check radio response.

read from the radio for the PCRAOK and PCRABAD reply.

Returns:
true - for PCRAOK false - for PCRABAD false - and sets ErrRead to true if garbage was read.

Definition at line 1268 of file pcp.cpp.

References PComm::PCHear(), PCPComm, PCPErrRead, and PCPTemp.

Referenced by PCPInit(), PCPPowerDown(), PCPPowerUp(), PCPSetAutoGain(), PCPSetFilter(), PCPSetFreq(), PCPSetMode(), PCPSetNB(), PCPSetRFAttenuator(), PCPSetSquelch(), PCPSetToneSq(), and PCPSetVolume().

{
    PCPComm->PCHear(PCPTemp);
    if (strncmp(PCPTemp, PCRAOK, 4)==0) {
        PCPErrRead=false;
        return true;
    } else if (strncmp(PCPTemp, PCRABAD, 4)==0) {
        PCPErrRead=false;
        return false;
    }

    PCPErrRead = true;
    return false;
}


Generated by  Doxygen 1.6.0   Back to index