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

Function rig_get_parm

src/settings.c:286–301  ·  view source on GitHub ↗

* \brief get the value of a parameter * \param rig The rig handle * \param parm The parameter * \param val The location where to store the value of \a parm * * Retrieves the value of a \a parm. * The parameter value \a val can be a float or an integer. See #value_t * for more information. * * \return RIG_OK if the operation has been successful, otherwise * a negative value if an

Source from the content-addressed store, hash-verified

284 * \sa rig_has_get_parm(), rig_set_parm()
285 */
286int HAMLIB_API rig_get_parm(RIG *rig, setting_t parm, value_t *val)
287{
288 rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
289
290 if (CHECK_RIG_ARG(rig) || !val)
291 {
292 return -RIG_EINVAL;
293 }
294
295 if (rig->caps->get_parm == NULL || !rig_has_get_parm(rig, parm))
296 {
297 return -RIG_ENAVAIL;
298 }
299
300 return rig->caps->get_parm(rig, parm, val);
301}
302
303
304/**

Callers 5

getParmMethod · 0.85
getParmIMethod · 0.85
getParmFMethod · 0.85
csv_parm_saveFunction · 0.85
rigctl_parse.cFile · 0.85

Calls 2

rig_debugFunction · 0.85
rig_has_get_parmFunction · 0.85

Tested by

no test coverage detected