| 308 | |
| 309 | |
| 310 | static 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 | |
| 330 | static int ether_rot_set_level(ROT *rot, setting_t level, value_t val) |
nothing calls this directly
no test coverage detected