|
Hamlib
4.1
|
Files | |
| file | amp_conf.c |
| Amplifier Configuration Interface. | |
| file | amp_settings.c |
| amplifiter func/level/parm interface | |
| file | amplifier.c |
| Amplifier interface. | |
Functions | |
| int | frontamp_set_conf (AMP *amp, token_t token, const char *val) |
| Set amplifier state info from alpha input. More... | |
| int | frontamp_get_conf (AMP *amp, token_t token, char *val) |
| Get data from amplifier state in alpha form. More... | |
| const struct confparams * | amp_confparam_lookup (AMP *amp, const char *name) |
| lookup conf token by its name, return pointer to confparams struct. More... | |
| token_t | amp_token_lookup (AMP *amp, const char *name) |
| Simple lookup returning token id associated with name. More... | |
| int | amp_set_conf (AMP *amp, token_t token, const char *val) |
| set a amplifier configuration parameter More... | |
| int | amp_get_conf (AMP *amp, token_t token, char *val) |
| get the value of a configuration parameter More... | |
| setting_t | amp_has_get_level (AMP *amp, setting_t level) |
| check retrieval ability of level settings More... | |
| AMP * | amp_init (amp_model_t amp_model) |
| allocate a new AMP handle More... | |
| int | amp_open (AMP *amp) |
| open the communication to the amp More... | |
| int | amp_close (AMP *amp) |
| close the communication to the amp More... | |
| int | amp_cleanup (AMP *amp) |
| release a amp handle and free associated memory More... | |
| int | amp_reset (AMP *amp, amp_reset_t reset) |
| reset the amplifier More... | |
| const char * | amp_get_info (AMP *amp) |
| get general information from the amplifier More... | |
| int | amp_set_powerstat (AMP *amp, powerstat_t status) |
| turn on/off the amplifier or standby/operate toggle More... | |
| int amp_cleanup | ( | AMP * | amp | ) |
release a amp handle and free associated memory
| amp | The AMP handle of the radio to be closed |
Releases a amp struct which port has eventually been closed already with amp_close().
| int amp_close | ( | AMP * | amp | ) |
close the communication to the amp
| amp | The AMP handle of the amplifier to be closed |
Closes communication to a amplifier which AMP handle has been passed by argument that was previously open with amp_open().
| const struct confparams* amp_confparam_lookup | ( | AMP * | amp, |
| const char * | name | ||
| ) |
lookup conf token by its name, return pointer to confparams struct.
| amp | |
| name |
lookup backend config table first, then fall back to frontend. TODO: should use Lex to speed it up, strcmp hurts!
get the value of a configuration parameter
| amp | The amp handle |
| token | The parameter |
| val | The location where to store the value of config token |
Retrieves the value of a configuration parameter associated with token.
| const char* amp_get_info | ( | AMP * | amp | ) |
get general information from the amplifier
| amp | The amp handle |
Retrieves some general information from the amplifier. This can include firmware revision, exact model name, or just nothing.
check retrieval ability of level settings
| amp | The amp handle |
| level | The level settings |
Checks if an amp is capable of getting a level setting. Since the level is an OR'ed bitwise argument, more than one level can be checked at the same time.
EXAMPLE: if (amp_has_get_level(my_amp, AMP_LVL_SWR)) disp_SWR();
| AMP* amp_init | ( | amp_model_t | amp_model | ) |
allocate a new AMP handle
| amp_model | The amp model for this new handle |
Allocates a new AMP handle and initializes the associated data for amp_model.
| int amp_open | ( | AMP * | amp | ) |
open the communication to the amp
| amp | The AMP handle of the amplifier to be opened |
Opens communication to a amplifier which AMP handle has been passed by argument.
| RIG_EINVAL | amp is NULL or inconsistent. |
| int amp_reset | ( | AMP * | amp, |
| amp_reset_t | reset | ||
| ) |
reset the amplifier
| amp | The amp handle |
| reset | The reset operation to perform |
Resets the amplifier.
set a amplifier configuration parameter
| amp | The amp handle |
| token | The parameter |
| val | The value to set the parameter to |
Sets a configuration parameter.
| int amp_set_powerstat | ( | AMP * | amp, |
| powerstat_t | status | ||
| ) |
turn on/off the amplifier or standby/operate toggle
| amp | The amp handle |
| status | The status to set to |
turns on/off the amplifier. See RIG_POWER_ON, RIG_POWER_OFF and RIG_POWER_STANDBY RIG_POWER_OPERATE defines for the status.
Simple lookup returning token id associated with name.
| amp | |
| name |
Get data from amplifier state in alpha form.
| amp | non-null |
| token | TOK_... specifying which data to get |
| val | result non-null |
Hamlib documentation for version 4.1 -- Mon Feb 1 2021 08:00:28
Project page: http://www.hamlib.org