MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / dummy_set_func

Function dummy_set_func

rigs/dummy/dummy.c:1258–1277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1256
1257
1258static int dummy_set_func(RIG *rig, vfo_t vfo, setting_t func, int status)
1259{
1260 struct dummy_priv_data *priv = (struct dummy_priv_data *)STATE(rig)->priv;
1261 channel_t *curr = priv->curr;
1262
1263 ENTERFUNC;
1264 rig_debug(RIG_DEBUG_VERBOSE, "%s called: %s %d\n", __func__,
1265 rig_strfunc(func), status);
1266
1267 if (status)
1268 {
1269 curr->funcs |= func;
1270 }
1271 else
1272 {
1273 curr->funcs &= ~func;
1274 }
1275
1276 RETURNFUNC(RIG_OK);
1277}
1278
1279
1280static int dummy_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status)

Callers

nothing calls this directly

Calls 2

rig_debugFunction · 0.85
rig_strfuncFunction · 0.85

Tested by

no test coverage detected