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

Function ether_rot_get_level

rotators/ether6/ether6.c:310–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308
309
310static int ether_rot_get_level(ROT *rot, setting_t level, value_t *val)
311{
312 const struct rot_state *rs = ROTSTATE(rot);
313
314 rig_debug(RIG_DEBUG_VERBOSE, "%s called: %s\n", __func__, rot_strlevel(level));
315
316 switch (level)
317 {
318 case ROT_LEVEL_SPEED:
319 val->i = rs->current_speed;
320 break;
321
322 default:
323 return -RIG_ENAVAIL;
324 }
325
326 return RIG_OK;
327}
328
329
330static int ether_rot_set_level(ROT *rot, setting_t level, value_t val)

Callers

nothing calls this directly

Calls 2

rig_debugFunction · 0.85
rot_strlevelFunction · 0.85

Tested by

no test coverage detected