|
Hamlib
4.1
|

Files | |
| file | ext.c |
| Extension request parameter interface. | |
| file | amplifier.h |
| Hamlib amplifier data structures. | |
Data Structures | |
| struct | amp_state |
| Live data and customized fields. More... | |
| struct | amp |
| This is the master data structure, acting as a handle for the controlled amplifier. More... | |
| struct | amp_caps |
| Amplifier data structure. More... | |
Macros | |
| #define | NETAMPCTL_RET "RPRT " |
| Token in the netampctl protocol for returning error code. | |
| #define | amp_debug rig_debug |
| Convenience definition for debug level. More... | |
Typedefs | |
| typedef struct amp | AMP |
| Amplifier structure definition (see amp for details). | |
| typedef float | swr_t |
| Type definition for SWR. More... | |
| typedef int | tune_value_t |
| Type definition for tuning values capacitance and resistance. More... | |
Enumerations | |
| enum | amp_type_t { AMP_FLAG_1 = (1 << 1) , AMP_FLAG_2 = (1 << 2) } |
| Amplifier type flags. More... | |
Functions | |
| int | amp_ext_level_foreach (AMP *amp, int(*cfunc)(AMP *, const struct confparams *, amp_ptr_t), amp_ptr_t data) |
| Executes cfunc on all the elements stored in the extlevels table. More... | |
| int | amp_ext_parm_foreach (AMP *amp, int(*cfunc)(AMP *, const struct confparams *, amp_ptr_t), amp_ptr_t data) |
| Executes cfunc on all the elements stored in the extparms table. More... | |
| const struct confparams * | amp_ext_lookup (AMP *amp, const char *name) |
| lookup ext token by its name, return pointer to confparams struct. More... | |
| const struct confparams * | amp_ext_lookup_tok (AMP *amp, token_t token) |
| lookup ext token, return pointer to confparams struct. More... | |
| token_t | amp_ext_token_lookup (AMP *amp, const char *name) |
| Simple lookup returning token id assicated with name. More... | |
| #define amp_debug rig_debug |
Convenience definition for debug level.
This is just as convenience definition of the amplifier debug level, and is the same as for the rig debug level.
| typedef float swr_t |
Type definition for SWR.
The swr_t type is used as a parameter for the amp_get_swr() function.
Unless specified otherwise, the unit of swr_t is 1.0 to max reported by tuner
| typedef float tune_value_t |
Type definition for tuning values capacitance and resistance.
The tune_value_t type is used as a parameter for the amp_get_level()
Unless specified otherwise, the units of tune_value_t is pF and nH
| enum amp_type_t |
| int amp_ext_level_foreach | ( | AMP * | amp, |
| int(*)(AMP *, const struct confparams *, amp_ptr_t) | cfunc, | ||
| amp_ptr_t | data | ||
| ) |
Executes cfunc on all the elements stored in the extlevels table.
| amp | The amp handle |
| cfunc | callback function of each extlevel |
| data | cookie to be passed to cfunc callback |
The callback cfunc is called until it returns a value which is not strictly positive. A zero value means a normal end of iteration, and a negative value an abnormal end, which will be the return value of amp_ext_level_foreach.
| const struct confparams* amp_ext_lookup | ( | AMP * | amp, |
| const char * | name | ||
| ) |
lookup ext token by its name, return pointer to confparams struct.
| amp | |
| name |
Lookup extlevels table first, then fall back to extparms.
Returns NULL if nothing found
TODO: should use Lex to speed it up, strcmp hurts!
| const struct confparams* amp_ext_lookup_tok | ( | AMP * | amp, |
| token_t | token | ||
| ) |
lookup ext token, return pointer to confparams struct.
| amp | |
| token |
lookup extlevels table first, then fall back to extparms.
Returns NULL if nothing found
| int amp_ext_parm_foreach | ( | AMP * | amp, |
| int(*)(AMP *, const struct confparams *, amp_ptr_t) | cfunc, | ||
| amp_ptr_t | data | ||
| ) |
Executes cfunc on all the elements stored in the extparms table.
| amp | The amp handle |
| cfunc | callback function of each extparm |
| data | cookie to be passed to cfunc callback |
The callback cfunc is called until it returns a value which is not strictly positive. A zero value means a normal end of iteration, and a negative value an abnormal end, which will be the return value of amp_ext_parm_foreach.
Hamlib documentation for version 4.1 -- Mon Feb 1 2021 08:00:28
Project page: http://www.hamlib.org