Loading...
Searching...
No Matches
band_changed.c
// This is currently included in rig.c
// Can customize during build
// Eventually should improved this for external actions when
// rigctld gets integrated as a service within Hamlib
int HAMLIB_API rig_band_changed(RIG *rig, hamlib_bandselect_t band)
{
// See band_changed.c
// Examples:
// rig_set_func(rig, RIG_VFO_CURR, RIG_FUNC_TUNER, 1);
// rig_set_func(rig, RIG_VFO_CURR, RIG_FUNC_TUNER, 0);
// value_t v;
// rig_set_ant(rig, RIG_VFO_CURR, 1, v);
switch (band)
{
case RIG_BANDSELECT_2200M:
break;
case RIG_BANDSELECT_600M:
break;
case RIG_BANDSELECT_160M:
break;
case RIG_BANDSELECT_80M:
break;
case RIG_BANDSELECT_60M:
break;
case RIG_BANDSELECT_40M:
break;
case RIG_BANDSELECT_30M:
break;
case RIG_BANDSELECT_20M:
break;
case RIG_BANDSELECT_17M:
break;
case RIG_BANDSELECT_15M:
break;
case RIG_BANDSELECT_12M:
break;
case RIG_BANDSELECT_10M:
break;
case RIG_BANDSELECT_6M:
break;
case RIG_BANDSELECT_WFM:
break;
case RIG_BANDSELECT_MW:
break;
case RIG_BANDSELECT_AIR:
break;
case RIG_BANDSELECT_2M:
break;
case RIG_BANDSELECT_1_25M:
break;
case RIG_BANDSELECT_70CM:
break;
case RIG_BANDSELECT_33CM:
break;
case RIG_BANDSELECT_23CM:
break;
case RIG_BANDSELECT_13CM:
break;
case RIG_BANDSELECT_9CM:
break;
case RIG_BANDSELECT_5CM:
break;
case RIG_BANDSELECT_3CM:
break;
case RIG_BANDSELECT_GEN:
break;
default:
rig_debug(RIG_DEBUG_ERR, "%s: Unknown band=%d\n", __func__, band);
}
return RIG_OK;
}
RIG
struct s_rig RIG
Rig structure definition (see rig for details).
Definition rig.h:264
hamlib_bandselect_t
hamlib_bandselect_t
Definition rig.h:798
rig_debug
void rig_debug(enum rig_debug_level_e debug_level, const char *fmt,...)
Print debugging messages through stderr by default.
Definition debug.c:206
RIG_OK
@ RIG_OK
Definition rig.h:191
RIG_DEBUG_ERR
@ RIG_DEBUG_ERR
Definition rig.h:246
RIG_BANDSELECT_600M
@ RIG_BANDSELECT_600M
Definition rig.h:801
RIG_BANDSELECT_1_25M
@ RIG_BANDSELECT_1_25M
Definition rig.h:819
RIG_BANDSELECT_GEN
@ RIG_BANDSELECT_GEN
Definition rig.h:814
RIG_BANDSELECT_17M
@ RIG_BANDSELECT_17M
Definition rig.h:808
RIG_BANDSELECT_6M
@ RIG_BANDSELECT_6M
Definition rig.h:812
RIG_BANDSELECT_9CM
@ RIG_BANDSELECT_9CM
Definition rig.h:824
RIG_BANDSELECT_160M
@ RIG_BANDSELECT_160M
Definition rig.h:802
RIG_BANDSELECT_AIR
@ RIG_BANDSELECT_AIR
Definition rig.h:816
RIG_BANDSELECT_20M
@ RIG_BANDSELECT_20M
Definition rig.h:807
RIG_BANDSELECT_MW
@ RIG_BANDSELECT_MW
Definition rig.h:815
RIG_BANDSELECT_2200M
@ RIG_BANDSELECT_2200M
Definition rig.h:800
RIG_BANDSELECT_23CM
@ RIG_BANDSELECT_23CM
Definition rig.h:822
RIG_BANDSELECT_33CM
@ RIG_BANDSELECT_33CM
Definition rig.h:821
RIG_BANDSELECT_60M
@ RIG_BANDSELECT_60M
Definition rig.h:804
RIG_BANDSELECT_3CM
@ RIG_BANDSELECT_3CM
Definition rig.h:826
RIG_BANDSELECT_12M
@ RIG_BANDSELECT_12M
Definition rig.h:810
RIG_BANDSELECT_WFM
@ RIG_BANDSELECT_WFM
Definition rig.h:813
RIG_BANDSELECT_5CM
@ RIG_BANDSELECT_5CM
Definition rig.h:825
RIG_BANDSELECT_15M
@ RIG_BANDSELECT_15M
Definition rig.h:809
RIG_BANDSELECT_30M
@ RIG_BANDSELECT_30M
Definition rig.h:806
RIG_BANDSELECT_70CM
@ RIG_BANDSELECT_70CM
Definition rig.h:820
RIG_BANDSELECT_40M
@ RIG_BANDSELECT_40M
Definition rig.h:805
RIG_BANDSELECT_80M
@ RIG_BANDSELECT_80M
Definition rig.h:803
RIG_BANDSELECT_13CM
@ RIG_BANDSELECT_13CM
Definition rig.h:823
RIG_BANDSELECT_2M
@ RIG_BANDSELECT_2M
Definition rig.h:818
RIG_BANDSELECT_10M
@ RIG_BANDSELECT_10M
Definition rig.h:811