kopia lustrzana https://github.com/Hamlib/Hamlib
use MODE_xx defines
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@40 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.0.1
rodzic
3544876e28
commit
644b460775
|
@ -6,7 +6,7 @@
|
||||||
* box (FIF-232C) or similar.
|
* box (FIF-232C) or similar.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* $Id: testlibft747.c,v 1.3 2000-07-28 03:09:08 javabear Exp $
|
* $Id: testlibft747.c,v 1.4 2000-07-29 00:50:45 javabear Exp $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -97,19 +97,20 @@ static void decode_mode_bit_map(unsigned char mbm) {
|
||||||
printf("mbm = %x, mode = %x \n",mbm, mode);
|
printf("mbm = %x, mode = %x \n",mbm, mode);
|
||||||
|
|
||||||
switch(mode) {
|
switch(mode) {
|
||||||
case 1:
|
case MODE_FM:
|
||||||
printf("Current Mode = FM \n");
|
printf("Current Mode = FM \n");
|
||||||
break;
|
break;
|
||||||
case 2:
|
case MODE_AM:
|
||||||
printf("Current Mode = AM \n");
|
printf("Current Mode = AM \n");
|
||||||
break;
|
break;
|
||||||
case 4:
|
case MODE_CW:
|
||||||
printf("Current Mode = CW \n");
|
printf("Current Mode = CW \n");
|
||||||
|
printf("MODE_CW = %i \n", MODE_CW);
|
||||||
break;
|
break;
|
||||||
case 8:
|
case MODE_USB:
|
||||||
printf("Current Mode = USB \n");
|
printf("Current Mode = USB \n");
|
||||||
break;
|
break;
|
||||||
case 16:
|
case MODE_LSB:
|
||||||
printf("Current Mode = LSB \n");
|
printf("Current Mode = LSB \n");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -162,8 +163,7 @@ static void dump_hex(unsigned char *ptr, int size, int length) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static int test(fd) {
|
static int test(fd) {
|
||||||
int n,i;
|
int i;
|
||||||
int bytes = 0;
|
|
||||||
struct ft747_update_data *header;
|
struct ft747_update_data *header;
|
||||||
|
|
||||||
cmd_set_split_yes(fd);
|
cmd_set_split_yes(fd);
|
||||||
|
|
Ładowanie…
Reference in New Issue