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

Function rig_fire_mode_event

src/event.c:646–670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

644}
645
646int rig_fire_mode_event(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
647{
648 ENTERFUNC;
649
650 rig_debug(RIG_DEBUG_TRACE, "Event: mode changed to %s, width %liHz on %s\n",
651 rig_strrmode(mode), width, rig_strvfo(vfo));
652
653 rig_set_cache_mode(rig, vfo, mode, width);
654
655 // This doesn't work well for Icom rigs -- no way to tell which VFO we're on
656 // Should work for most other rigs using AI1; mode
657 if (RIG_BACKEND_NUM(rig->caps->rig_model) != RIG_ICOM)
658 {
659 STATE(rig)->use_cached_mode = 1;
660 }
661
662 network_publish_rig_transceive_data(rig);
663
664 if (rig->callbacks.mode_event)
665 {
666 rig->callbacks.mode_event(rig, vfo, mode, width, rig->callbacks.mode_arg);
667 }
668
669 RETURNFUNC(0);
670}
671
672
673int rig_fire_vfo_event(RIG *rig, vfo_t vfo)

Callers 1

icom_process_async_frameFunction · 0.85

Calls 5

rig_debugFunction · 0.85
rig_strrmodeFunction · 0.85
rig_strvfoFunction · 0.85
rig_set_cache_modeFunction · 0.85

Tested by

no test coverage detected