Merge pull request #534 from N0NB/doxygen_work

Enable and update Doxygen comments in amplist.h
pull/538/head
Nate Bargmann 2021-02-07 20:12:25 -06:00 zatwierdzone przez GitHub
commit bc17a749d0
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 31 dodań i 22 usunięć

Wyświetl plik

@ -27,6 +27,7 @@
//! @cond Doxygen_Suppress //! @cond Doxygen_Suppress
#define AMP_MAKE_MODEL(a,b) ((a)*100+(b)) #define AMP_MAKE_MODEL(a,b) ((a)*100+(b))
#define AMP_BACKEND_NUM(a) ((a)/100) #define AMP_BACKEND_NUM(a) ((a)/100)
//! @endcond
/** /**
@ -38,41 +39,48 @@
* \file amplist.h * \file amplist.h
* \brief Hamlib amplifier model definitions. * \brief Hamlib amplifier model definitions.
* *
* This file contains amplifier model definitions for the Hamlib amplifier API. * This file contains amplifier model definitions for the Hamlib amplifier
* Each distinct amplifier type has a unique model number (ID) and is used by * Application Programming Interface (API). Each distinct amplifier type has
* hamlib to identify and distinguish between the different hardware drivers. * a unique model number (ID) and is used by Hamlib to identify and
* The exact model numbers can be acquired using the macros in this file. To * distinguish between the different hardware drivers. The exact model
* obtain a list of supported amplifier branches, one can use the statically * numbers can be acquired using the macros in this file. To obtain a list of
* defined AMP_BACKEND_LIST macro. To obtain a full list of supported * supported amplifier branches, one can use the statically defined
* amplifiers (including each model in every branch), the foreach_opened_amp() * AMP_BACKEND_LIST macro. To obtain a full list of supported amplifiers
* API function can be used. * (including each model in every branch), the foreach_opened_amp() API
* function can be used.
* *
* The model number, or ID, is used to tell Hamlib which amplifier the client * The model number, or ID, is used to tell Hamlib which amplifier the client
* whishes to use. It is done with the amp_init() API call. * wishes to use. It is done with the amp_init() API call.
*/ */
//! @cond Doxygen_Suppress
#define AMP_MODEL_NONE 0 #define AMP_MODEL_NONE 0
//! @endcond
/*
* Hamlib
*/
/** /**
* \def AMP_MODEL_DUMMY * \def AMP_MODEL_DUMMY
* \brief A macro that returns the model number for the dummy backend. * \brief A macro that returns the model number for the dummy backend.
* *
* The dummy backend, as the name suggests, is a backend which performs * The dummy backend, as the name suggests, is a backend which performs no
* no hardware operations and always behaves as one would expect. It can * hardware operations and always behaves as one would expect. It can be
* be thought of as a hardware simulator and is very useful for testing * thought of as a hardware simulator and is very useful for testing client
* client applications. * applications.
*/ *
/**
* \def AMP_MODEL_NETAMPCTL * \def AMP_MODEL_NETAMPCTL
* \brief A macro that returns the model number for the Network backend. * \brief A macro that returns the model number for the netampctl backend.
* *
* This backend allows use of the ampctld daemon through the normal * This backend allows use of the ampctld daemon through the normal
* Hamlib API. * Hamlib API.
*/ */
//! @cond Doxygen_Suppress
#define AMP_DUMMY 0 #define AMP_DUMMY 0
#define AMP_BACKEND_DUMMY "dummy" #define AMP_BACKEND_DUMMY "dummy"
//! @endcond
#define AMP_MODEL_DUMMY AMP_MAKE_MODEL(AMP_DUMMY, 1) #define AMP_MODEL_DUMMY AMP_MAKE_MODEL(AMP_DUMMY, 1)
#define AMP_MODEL_NETAMPCTL AMP_MAKE_MODEL(AMP_DUMMY, 2) #define AMP_MODEL_NETAMPCTL AMP_MAKE_MODEL(AMP_DUMMY, 2)
@ -82,24 +90,25 @@
*/ */
/** /**
* \def AMP_MODEL_ELECRAFT * \def AMP_MODEL_ELECRAFT_KPA1500
* \brief A macro that returns the model number of the EasyComm 1 backend. * \brief A macro that returns the model number of the kpa1500 backend.
* *
* The Elecraft #1 backend can be used with amplifiers that support the * The kpa1500 backend can be used with amplifiers that support the Elecraft
* KPA1500 protocol. * KPA-1500 protocol.
*/ */
//! @cond Doxygen_Suppress
#define AMP_ELECRAFT 2 #define AMP_ELECRAFT 2
#define AMP_BACKEND_ELECRAFT "elecraft" #define AMP_BACKEND_ELECRAFT "elecraft"
//! @endcond
#define AMP_MODEL_ELECRAFT_KPA1500 AMP_MAKE_MODEL(AMP_ELECRAFT, 1) #define AMP_MODEL_ELECRAFT_KPA1500 AMP_MAKE_MODEL(AMP_ELECRAFT, 1)
//#define AMP_MODEL_ELECRAFT_KPA500 AMP_MAKE_MODEL(AMP_ELECRAFT, 2) //#define AMP_MODEL_ELECRAFT_KPA500 AMP_MAKE_MODEL(AMP_ELECRAFT, 2)
/** /**
* \typedef typedef int amp_model_t * \typedef typedef int amp_model_t
* \brief Convenience type definition for amplifier model. * \brief Convenience type definition for amplifier model.
*/ */
typedef int amp_model_t; typedef int amp_model_t;
//! @endcond
#endif /* _AMPLIST_H */ #endif /* _AMPLIST_H */