kopia lustrzana https://github.com/Hamlib/Hamlib
frq = cmd_get_freq_mode_status_main_vfo(fd, &mode);
git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@47 7ae35d74-ebe9-4afe-98af-79ac388436b8Hamlib-1.0.1
rodzic
c1c65532ae
commit
03840242f1
|
@ -5,7 +5,7 @@
|
||||||
* via serial interface to an FT-847 using the "CAT" interface.
|
* via serial interface to an FT-847 using the "CAT" interface.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* $Id: testlibft847.c,v 1.6 2000-07-29 02:39:15 javabear Exp $
|
* $Id: testlibft847.c,v 1.7 2000-07-29 20:31:30 javabear Exp $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -125,7 +125,9 @@ static void decode_mode(unsigned char mode) {
|
||||||
|
|
||||||
static int test(fd) {
|
static int test(fd) {
|
||||||
unsigned char data1;
|
unsigned char data1;
|
||||||
|
unsigned char mode;
|
||||||
int i;
|
int i;
|
||||||
|
long int frq; /* freq */
|
||||||
|
|
||||||
cmd_cat_off(fd); /* cat off */
|
cmd_cat_off(fd); /* cat off */
|
||||||
sleep(1);
|
sleep(1);
|
||||||
|
@ -146,7 +148,9 @@ static int test(fd) {
|
||||||
data1 = cmd_get_rx_status(fd);
|
data1 = cmd_get_rx_status(fd);
|
||||||
decode_rx_status_flags(data1);
|
decode_rx_status_flags(data1);
|
||||||
sleep(1);
|
sleep(1);
|
||||||
cmd_get_freq_mode_status_main_vfo(fd);
|
frq = cmd_get_freq_mode_status_main_vfo(fd, &mode);
|
||||||
|
printf("freq = %ld Hz and mode = %x \n",frq, mode );
|
||||||
|
|
||||||
sleep(1);
|
sleep(1);
|
||||||
}
|
}
|
||||||
cmd_cat_off(fd); /* cat off */
|
cmd_cat_off(fd); /* cat off */
|
||||||
|
|
Ładowanie…
Reference in New Issue