kopia lustrzana https://github.com/Hamlib/Hamlib
* load 'dummy' backend
* misc updates git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@387 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.1.1
rodzic
3036906158
commit
8aa7914570
|
@ -3,7 +3,7 @@
|
||||||
* This programs dumps the capabilities of a backend rig.
|
* This programs dumps the capabilities of a backend rig.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* $Id: dumpcaps.c,v 1.11 2001-02-11 23:19:58 f4cfe Exp $
|
* $Id: dumpcaps.c,v 1.12 2001-02-14 01:11:22 f4cfe Exp $
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or
|
* This program is free software; you can redistribute it and/or
|
||||||
|
@ -49,6 +49,7 @@ int main (int argc, char *argv[])
|
||||||
status |= rig_load_backend("kenwood");
|
status |= rig_load_backend("kenwood");
|
||||||
status |= rig_load_backend("aor");
|
status |= rig_load_backend("aor");
|
||||||
rig_load_backend("winradio"); /* may not be compiled ... */
|
rig_load_backend("winradio"); /* may not be compiled ... */
|
||||||
|
rig_load_backend("dummy");
|
||||||
|
|
||||||
if (status != RIG_OK ) {
|
if (status != RIG_OK ) {
|
||||||
printf("rig_load_backend: error = %s \n", rigerror(status));
|
printf("rig_load_backend: error = %s \n", rigerror(status));
|
||||||
|
@ -112,25 +113,8 @@ int main (int argc, char *argv[])
|
||||||
case RIG_TYPE_COMPUTER:
|
case RIG_TYPE_COMPUTER:
|
||||||
printf("Computer\n");
|
printf("Computer\n");
|
||||||
break;
|
break;
|
||||||
default:
|
case RIG_TYPE_OTHER:
|
||||||
printf("Unknown\n");
|
printf("Other\n");
|
||||||
}
|
|
||||||
|
|
||||||
printf("PTT type:\t");
|
|
||||||
switch (caps->ptt_type) {
|
|
||||||
case RIG_PTT_RIG:
|
|
||||||
printf("rig capable\n");
|
|
||||||
break;
|
|
||||||
case RIG_PTT_PARALLEL:
|
|
||||||
printf("thru parallel port (DATA0)\n");
|
|
||||||
break;
|
|
||||||
case RIG_PTT_SERIAL_RTS:
|
|
||||||
printf("thru serial port (CTS/RTS)\n");
|
|
||||||
case RIG_TYPE_SCANNER:
|
|
||||||
printf("Scanner\n");
|
|
||||||
break;
|
|
||||||
case RIG_TYPE_COMPUTER:
|
|
||||||
printf("Computer\n");
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
printf("Unknown\n");
|
printf("Unknown\n");
|
||||||
|
@ -181,10 +165,14 @@ int main (int argc, char *argv[])
|
||||||
printf("Preamp:");
|
printf("Preamp:");
|
||||||
for(i=0; i<MAXDBLSTSIZ && caps->preamp[i] != 0; i++)
|
for(i=0; i<MAXDBLSTSIZ && caps->preamp[i] != 0; i++)
|
||||||
printf(" %ddB", caps->preamp[i]);
|
printf(" %ddB", caps->preamp[i]);
|
||||||
|
if (caps->preamp[i] == 0)
|
||||||
|
printf(" none");
|
||||||
printf("\n");
|
printf("\n");
|
||||||
printf("Attenuator:");
|
printf("Attenuator:");
|
||||||
for(i=0; i<MAXDBLSTSIZ && caps->attenuator[i] != 0; i++)
|
for(i=0; i<MAXDBLSTSIZ && caps->attenuator[i] != 0; i++)
|
||||||
printf(" %ddB",caps->attenuator[i]);
|
printf(" %ddB",caps->attenuator[i]);
|
||||||
|
if (caps->attenuator[i] == 0)
|
||||||
|
printf(" none");
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
printf("Get functions: ");
|
printf("Get functions: ");
|
||||||
|
|
Ładowanie…
Reference in New Issue