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

Function flrig_set_func

rigs/dummy/flrig.c:2640–2661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2638}
2639
2640int flrig_set_func(RIG *rig, vfo_t vfo, setting_t func,
2641 int status)
2642{
2643 int retval;
2644 char cmd_arg[MAXARGLEN];
2645 rig_debug(RIG_DEBUG_VERBOSE, "%s called: level=%s, status=%d\n", __func__,
2646 rig_strfunc(func), status);
2647
2648 switch (func)
2649 {
2650 case RIG_FUNC_TUNER:
2651 SNPRINTF(cmd_arg, sizeof(cmd_arg),
2652 "<params><param><value>%d</value></param></params>", status);
2653 retval = flrig_transaction(rig, "rig.tune", cmd_arg, NULL, 0);
2654 break;
2655
2656 default:
2657 retval = -RIG_ENIMPL;
2658 }
2659
2660 return retval;
2661}
2662
2663// Allow FlRig to be "powered down" that is send it a shutdown command.
2664// Note - RIG_POWER_ON is deliberately not supported as launching FlRig

Callers

nothing calls this directly

Calls 3

rig_debugFunction · 0.85
rig_strfuncFunction · 0.85
flrig_transactionFunction · 0.85

Tested by

no test coverage detected