| 2638 | } |
| 2639 | |
| 2640 | int 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 |
nothing calls this directly
no test coverage detected