kopia lustrzana https://github.com/Hamlib/Hamlib
adding rig_cap stuff
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@84 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.1.0
rodzic
59a5c09e83
commit
2b30ec4833
|
@ -6,7 +6,7 @@
|
|||
* box (FIF-232C) or similar.
|
||||
*
|
||||
*
|
||||
* $Id: testlibft747.c,v 1.8 2000-08-19 04:07:00 javabear Exp $
|
||||
* $Id: testlibft747.c,v 1.9 2000-09-04 04:06:14 javabear Exp $
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
|
@ -36,6 +36,7 @@
|
|||
|
||||
#include "testlibft747.h"
|
||||
#include "ft747.h"
|
||||
#include "rig.h"
|
||||
|
||||
static unsigned char datain[350]; /* data read from rig */
|
||||
|
||||
|
@ -217,9 +218,14 @@ static int test(fd) {
|
|||
|
||||
int main(void) {
|
||||
|
||||
struct rig_caps *rc; /* points to rig caps */
|
||||
|
||||
int fd;
|
||||
|
||||
rc = rig_get_caps(); /* find capabilities */
|
||||
|
||||
printf("rig_name = %s \n", rc->rig_name);
|
||||
|
||||
fd = rig_open(SERIAL_PORT);
|
||||
printf("port opened ok \n");
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue