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

Function netrigctl_set_rptr_shift

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

Source from the content-addressed store, hash-verified

1252
1253
1254static int netrigctl_set_rptr_shift(RIG *rig, vfo_t vfo,
1255 rptr_shift_t rptr_shift)
1256{
1257 int ret;
1258 char cmd[CMD_MAX];
1259 char buf[BUF_MAX];
1260 char vfostr[16] = "";
1261
1262 rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
1263
1264 ret = netrigctl_vfostr(rig, vfostr, sizeof(vfostr), RIG_VFO_A);
1265
1266 if (ret != RIG_OK) { return ret; }
1267
1268 SNPRINTF(cmd, sizeof(cmd), "R%s %s\n", vfostr, rig_strptrshift(rptr_shift));
1269
1270 ret = netrigctl_transaction(rig, cmd, strlen(cmd), buf);
1271
1272 if (ret > 0)
1273 {
1274 return -RIG_EPROTO;
1275 }
1276 else
1277 {
1278 return ret;
1279 }
1280}
1281
1282
1283static int netrigctl_get_rptr_shift(RIG *rig, vfo_t vfo,

Callers

nothing calls this directly

Calls 4

rig_debugFunction · 0.85
netrigctl_vfostrFunction · 0.85
rig_strptrshiftFunction · 0.85
netrigctl_transactionFunction · 0.85

Tested by

no test coverage detected