* set_poweroff is gone in favor of set_powerstat

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@422 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.1.1
Stéphane Fillod, F8CFE 2001-03-02 18:30:11 +00:00
rodzic f859ece040
commit 49f0c90f5d
3 zmienionych plików z 13 dodań i 11 usunięć

Wyświetl plik

@ -6,7 +6,7 @@
* via serial interface to an AOR scanner. * via serial interface to an AOR scanner.
* *
* *
* $Id: aor.c,v 1.4 2001-02-27 23:06:53 f4cfe Exp $ * $Id: aor.c,v 1.5 2001-03-02 18:29:31 f4cfe Exp $
* *
* *
* *
@ -287,16 +287,18 @@ int aor_set_ts(RIG *rig, vfo_t vfo, shortfreq_t ts)
} }
/* /*
* aor_set_poweroff * aor_set_powerstat
* Assumes rig!=NULL, rig->state.priv!=NULL * Assumes rig!=NULL, rig->state.priv!=NULL
*/ */
int aor_set_poweroff(RIG *rig) int aor_set_powerstat(RIG *rig, powerstat_t status)
{ {
unsigned char ackbuf[16]; unsigned char ackbuf[16];
int ack_len; int ack_len;
/* turn off power */ if (status != RIG_POWER_OFF)
return -RIG_EINVAL;
/* turn off power */
aor_transaction (rig, "QP", 2, ackbuf, &ack_len); aor_transaction (rig, "QP", 2, ackbuf, &ack_len);
return RIG_OK; return RIG_OK;

Wyświetl plik

@ -6,7 +6,7 @@
* via serial interface to an AOR scanner. * via serial interface to an AOR scanner.
* *
* *
* $Id: aor.h,v 1.3 2000-12-05 22:01:00 f4cfe Exp $ * $Id: aor.h,v 1.4 2001-03-02 18:29:48 f4cfe Exp $
* *
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
@ -37,7 +37,7 @@ int aor_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width);
int aor_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width); int aor_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width);
int aor_set_ts(RIG *rig, vfo_t vfo, shortfreq_t ts); int aor_set_ts(RIG *rig, vfo_t vfo, shortfreq_t ts);
int aor_set_poweroff(RIG *rig); int aor_set_powerstat(RIG *rig, powerstat_t status);
extern const struct rig_caps ar8200_caps; extern const struct rig_caps ar8200_caps;

Wyświetl plik

@ -7,7 +7,7 @@
* purpose mainly. * purpose mainly.
* *
* *
* $Id: dummy.c,v 1.4 2001-03-01 00:26:19 f4cfe Exp $ * $Id: dummy.c,v 1.5 2001-03-02 18:30:11 f4cfe Exp $
* *
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
@ -400,7 +400,7 @@ static int dummy_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
} }
static int dummy_set_poweron(RIG *rig) static int dummy_set_powerstat(RIG *rig, powerstat_t status)
{ {
rig_debug(RIG_DEBUG_VERBOSE,__FUNCTION__ " called\n"); rig_debug(RIG_DEBUG_VERBOSE,__FUNCTION__ " called\n");
@ -408,7 +408,7 @@ static int dummy_set_poweron(RIG *rig)
} }
static int dummy_set_poweroff(RIG *rig) static int dummy_get_powerstat(RIG *rig, powerstat_t *status)
{ {
rig_debug(RIG_DEBUG_VERBOSE,__FUNCTION__ " called\n"); rig_debug(RIG_DEBUG_VERBOSE,__FUNCTION__ " called\n");
@ -594,8 +594,8 @@ const struct rig_caps dummy_caps = {
set_vfo: dummy_set_vfo, set_vfo: dummy_set_vfo,
get_vfo: dummy_get_vfo, get_vfo: dummy_get_vfo,
set_poweron: dummy_set_poweron, set_powerstat: dummy_set_powerstat,
set_poweroff: dummy_set_poweroff, get_powerstat: dummy_get_powerstat,
set_level: dummy_set_level, set_level: dummy_set_level,
get_level: dummy_get_level, get_level: dummy_get_level,
set_func: dummy_set_func, set_func: dummy_set_func,