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

bool PCP::PCPQuerySquelch (  ) 

Querys radio's squelch status.

Actually querys the radio for a status on it's squelch state (open or closed).

true if the radio's squelch is open or false otherwise.
See also:

Definition at line 832 of file pcp.cpp.

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

      char __tempvar1[8];
      memset(__tempvar1, '\0', sizeof(__tempvar1));
      strncpy(__tempvar1, PCRASQL, sizeof(__tempvar1)-1);
      strncat(__tempvar1, PCRASQLCL, sizeof(__tempvar1)-strlen(__tempvar1)-1);

      if (PCPComm->PCAsk(PCRQSQL)) {
            if(PCPComm->PCHear(PCPTemp)) {
                  if (strncmp(PCPTemp, __tempvar1, 4)==0) {
                        return false;
                  } else {
                        return true;
      return false;

Generated by  Doxygen 1.6.0   Back to index