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

Function dummy_get_func

rigs/dummy/dummy.c:1280–1292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1278
1279
1280static int dummy_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status)
1281{
1282 struct dummy_priv_data *priv = (struct dummy_priv_data *)STATE(rig)->priv;
1283 const channel_t *curr = priv->curr;
1284
1285 ENTERFUNC;
1286 *status = (curr->funcs & func) ? 1 : 0;
1287
1288 rig_debug(RIG_DEBUG_VERBOSE, "%s called: %s\n", __func__,
1289 rig_strfunc(func));
1290
1291 RETURNFUNC(RIG_OK);
1292}
1293
1294
1295static int dummy_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val)

Callers

nothing calls this directly

Calls 2

rig_debugFunction · 0.85
rig_strfuncFunction · 0.85

Tested by

no test coverage detected