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

bool PCP::PCPSetNB ( bool  value  ) 

Toggle Noiseblanking functionality.

Parameters:
value true or false for noiseblanking on or off
Valid values for value are:
  • true to activate noiseblanking
  • false to deactivate noiseblanking
Sets the noise blanking to value (on/off) true/false... checks the radio response if ok, then sets the value

Returns:
true, on success otherwise returns false
See also:
PCPGetNB PCPGetNBStr PCRNB PCRNBON PCRNBOFF pcrdef.h

Definition at line 655 of file pcp.cpp.

References PCPCheckResponse(), PCPComm, PRadInf::PCPNoiseBlank, PCPRadio, and PComm::PCTell().

{
#ifdef DEBUG_VER_
      fprintf(stderr, "PCP: PCPSETNB - %d\n", value);
#endif // DEBUG_VER_ 

      (value)?(PCPComm->PCTell(PCRNBON)):(PCPComm->PCTell(PCRNBOFF));
      
      if (PCPCheckResponse()) {
            PCPRadio->PCPNoiseBlank=value;
            return true;
      }

      return false;
}


Generated by  Doxygen 1.6.0   Back to index