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

const char * PCP::PCPGetSpeed (  ) 

Gets current speed (const char* version).

Checks PCPRadio struct for member PCPSpeed for the current speed (baudrate) setting. Decodes the tcflag_t baudrate in the struct

Returns:
const character string baudrate
See also:
PCPGetSpeed_t

Definition at line 897 of file pcp.cpp.

References PCPRadio, and PRadInf::PCPSpeed.

{
      switch(PCPRadio->PCPSpeed) {
            case B300: return "300"; break;
            case B600: return "600"; break;
            case B1200: return "1200"; break;
            case B1800: return "1800"; break;
            case B2400: return "2400"; break;
            case B4800: return "4800"; break;
            case B9600: return "9600"; break;
            case B19200: return "19200"; break;
            case B38400: return "38400"; break;
            case B57600: return "57600"; break;
            default: return "unknown"; break;
      }
      return "unknown";
}


Generated by  Doxygen 1.6.0   Back to index