diff --git a/tests/rigmatrix.c b/tests/rigmatrix.c index da6bc1384..ad8d8eb46 100644 --- a/tests/rigmatrix.c +++ b/tests/rigmatrix.c @@ -4,7 +4,7 @@ * The code is rather ugly since this is only a try out. * * - * $Id: rigmatrix.c,v 1.7 2001-02-14 01:12:59 f4cfe Exp $ + * $Id: rigmatrix.c,v 1.8 2001-02-15 00:01:35 f4cfe Exp $ * * * This program is free software; you can redistribute it and/or @@ -137,6 +137,45 @@ int print_caps_parms(const struct rig_caps *caps, void *data) printf("Unknown"); } + printf(""); + + switch (caps->dcd_type) { + case RIG_DCD_RIG: + printf("rig"); + break; + case RIG_DCD_PARALLEL: + printf("parallel"); + break; + case RIG_DCD_SERIAL_CTS: + case RIG_DCD_SERIAL_DSR: + printf("serial"); + break; + case RIG_DCD_NONE: + printf("None"); + break; + default: + printf("Unknown"); + } + + printf(""); + + switch (caps->port_type) { + case RIG_PORT_SERIAL: + printf("serial"); + break; + case RIG_PORT_DEVICE: + printf("device"); + break; + case RIG_PORT_NETWORK: + printf("network"); + break; + case RIG_PORT_NONE: + printf("None"); + break; + default: + printf("Unknown"); + } + printf("%d%d%d%c%d%s", caps->serial_rate_min, caps->serial_rate_max, caps->serial_data_bits, @@ -178,6 +217,7 @@ int print_caps_caps(const struct rig_caps *caps, void *data) print_yn(caps->get_vfo); print_yn(caps->set_ptt); print_yn(caps->get_ptt); + print_yn(caps->get_dcd); print_yn(caps->set_rptr_shift); print_yn(caps->get_rptr_shift); print_yn(caps->set_rptr_offs); @@ -506,7 +546,8 @@ int main (int argc, char *argv[]) printf("

"); printf("\n"); - printf("" + printf("" + "" "" "\n"); status = rig_list_foreach(print_caps_parms,NULL); @@ -526,7 +567,7 @@ int main (int argc, char *argv[]) "" "" "" - "" + "" "" "" ""
ModelPTTSpeed minSpeed max
ModelPTTDCDPortSpeed minSpeed maxParm.HandshakeWrite delayPost delayTimeoutRetry
Set freqGet freqSet modeGet modeSet VFOGet VFOSet PTTGet PTTSet PTTGet PTTGet DCDSet rptr shiftGet rptr shiftSet rptr offsGet rptr offsSet split frqGet split frq