Update public API Doxygen comments in amp_conf.c

pull/538/head
Nate Bargmann 2021-02-08 12:40:01 -06:00
rodzic 30c04fabd4
commit b97b4218cb
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: F72625E2EDBED598
1 zmienionych plików z 48 dodań i 26 usunięć

Wyświetl plik

@ -109,7 +109,7 @@ static const struct confparams ampfrontend_serial_cfg_params[] =
{ RIG_CONF_END, NULL, } { RIG_CONF_END, NULL, }
}; };
//! @cond Doxygen_Suppress
/** /**
* \brief Set amplifier state info from alpha input * \brief Set amplifier state info from alpha input
* \param amp * \param amp
@ -295,8 +295,10 @@ int frontamp_set_conf(AMP *amp, token_t token, const char *val)
return RIG_OK; return RIG_OK;
} }
//! @endcond
//! @cond Doxygen_Suppress
/** /**
* \brief Get data from amplifier state in alpha form * \brief Get data from amplifier state in alpha form
* \param amp non-null * \param amp non-null
@ -430,6 +432,7 @@ int frontamp_get_conf(AMP *amp, token_t token, char *val)
return RIG_OK; return RIG_OK;
} }
//! @endcond
#ifdef XXREMOVEDXXC #ifdef XXREMOVEDXXC
@ -489,13 +492,20 @@ int HAMLIB_API amp_token_foreach(AMP *amp,
/** /**
* \brief lookup conf token by its name, return pointer to confparams struct. * \brief Query an amplifier configuration parameter token by its name.
* \param amp * \param amp The #AMP handle.
* \param name * \param name Configuration parameter token name (C string).
* \return confparams or NULL
* *
* lookup backend config table first, then fall back to frontend. * Use this function to get a pointer to the token in the #confparams
* TODO: should use Lex to speed it up, strcmp hurts! * structure. Searches the backend config params table first, then falls back
* to the frontend config params table.
*
* TODO: Should use Lex to speed it up, strcmp() hurts!
*
* \return A pointer to the token in the #confparams structure or NULL if #AMP
* is invalid or token not found (how can the caller know which occurred?).
*
* \sa amp_token_lookup()
*/ */
const struct confparams *HAMLIB_API amp_confparam_lookup(AMP *amp, const struct confparams *HAMLIB_API amp_confparam_lookup(AMP *amp,
const char *name) const char *name)
@ -545,10 +555,16 @@ const struct confparams *HAMLIB_API amp_confparam_lookup(AMP *amp,
/** /**
* \brief Simple lookup returning token id associated with name * \brief Search for the token ID associated with an amplifier configuration parameter token name.
* \param amp * \param amp The #AMP handle.
* \param name * \param name Configuration parameter token name (C string).
* \return token enum *
* Searches the backend and frontend configuration parameters tables for the
* token ID.
*
* \return The token ID value or RIG_CONF_END if the lookup failed.
*
* \sa amp_confparam_lookup()
*/ */
token_t HAMLIB_API amp_token_lookup(AMP *amp, const char *name) token_t HAMLIB_API amp_token_lookup(AMP *amp, const char *name)
{ {
@ -568,16 +584,19 @@ token_t HAMLIB_API amp_token_lookup(AMP *amp, const char *name)
/** /**
* \brief set a amplifier configuration parameter * \brief Set an amplifier configuration parameter.
* \param amp The amp handle * \param amp The #AMP handle.
* \param token The parameter * \param token The token of the parameter to set.
* \param val The value to set the parameter to * \param val The value to set the parameter to.
* *
* Sets a configuration parameter. * Sets an amplifier configuration parameter to \a val.
* *
* \return RIG_OK if the operation has been successful, otherwise * \return RIG_OK if the operation has been successful, otherwise a **negative
* a negative value if an error occurred (in which case, cause is * value** if an error occurred (in which case, cause is set appropriately).
* set appropriately). *
* \retval RIG_OK The parameter was set successfully.
* \retval RIG_EINVAL The #AMP handle or token was invalid.
* \retval RIG_ENAVAIL amp_caps#set_conf() capability is not available.
* *
* \sa amp_get_conf() * \sa amp_get_conf()
*/ */
@ -620,16 +639,19 @@ int HAMLIB_API amp_set_conf(AMP *amp, token_t token, const char *val)
/** /**
* \brief get the value of a configuration parameter * \brief Query the value of an amplifier configuration parameter.
* \param amp The amp handle * \param amp The #AMP handle.
* \param token The parameter * \param token The token of the parameter to query.
* \param val The location where to store the value of config \a token * \param val The location where to store the value of configuration \a token.
* *
* Retrieves the value of a configuration parameter associated with \a token. * Retrieves the value of a configuration parameter associated with \a token.
* *
* \return RIG_OK if the operation has been successful, otherwise * \return RIG_OK if the operation has been successful, otherwise a **negative
* a negative value if an error occurred (in which case, cause is * value** if an error occurred (in which case, cause is set appropriately).
* set appropriately). *
* \retval RIG_OK Querying the parameter was successful.
* \retval RIG_EINVAL The #AMP handle was invalid.
* \retval RIG_ENAVAIL amp_caps#get_conf() capability is not available.
* *
* \sa amp_set_conf() * \sa amp_set_conf()
*/ */