Hamlib
4.0~git
|
Amplifier data structure. More...
#include <amplifier.h>
Data Fields | |
amp_model_t | amp_model |
const char * | model_name |
const char * | mfg_name |
const char * | version |
const char * | copyright |
enum rig_status_e | status |
int | amp_type |
enum rig_port_e | port_type |
int | serial_rate_min |
int | serial_rate_max |
int | serial_data_bits |
int | serial_stop_bits |
enum serial_parity_e | serial_parity |
enum serial_handshake_e | serial_handshake |
int | write_delay |
int | post_write_delay |
int | timeout |
int | retry |
const struct confparams * | cfgparams |
const char * | priv |
const char * | amp_model_macro_name |
setting_t | has_get_level |
setting_t | has_set_level |
gran_t | level_gran [64] |
gran_t | parm_gran [64] |
int(* | amp_init )(AMP *amp) |
int(* | amp_cleanup )(AMP *amp) |
int(* | amp_open )(AMP *amp) |
int(* | amp_close )(AMP *amp) |
int(* | set_freq )(AMP *amp, freq_t val) |
int(* | get_freq )(AMP *amp, freq_t *val) |
int(* | set_conf )(AMP *amp, token_t token, const char *val) |
int(* | get_conf )(AMP *amp, token_t token, char *val) |
int(* | reset )(AMP *amp, amp_reset_t reset) |
int(* | get_level )(AMP *amp, setting_t level, value_t *val) |
int(* | get_ext_level )(AMP *amp, token_t level, value_t *val) |
int(* | set_powerstat )(AMP *amp, powerstat_t status) |
int(* | get_powerstat )(AMP *amp, powerstat_t *status) |
const char *(* | get_info )(AMP *amp) |
setting_t | levels |
unsigned | ext_levels |
const struct confparams * | extlevels |
const struct confparams * | extparms |
const char * | macro_name |
Amplifier data structure.
Amplifier Caps
The main idea of this struct is that it will be defined by the backend amplifier driver, and will remain readonly for the application. Fields that need to be modifiable by the application are copied into the struct amp_state, which is a kind of private of the AMP instance.
This way, you can have several rigs running within the same application, sharing the struct amp_caps of the backend, while keeping their own customized data.
mdblack98: Don't move fields around and add new fields at end of caps Shared libraries depend on constant structure to maintain compatibility
amp_model_t amp_caps::amp_model |
Amplifier model.
const char* amp_caps::amp_model_macro_name |
Model macro name
int amp_caps::amp_type |
Amplifier type.
const struct confparams* amp_caps::cfgparams |
Configuration parametres.
const char* amp_caps::copyright |
Copyright info.
gran_t amp_caps::level_gran[64] |
level granularity
const char* amp_caps::macro_name |
Macro name.
const char* amp_caps::mfg_name |
Manufacturer.
const char* amp_caps::model_name |
Model name.
gran_t amp_caps::parm_gran[64] |
level granularity
enum rig_port_e amp_caps::port_type |
Type of communication port.
int amp_caps::post_write_delay |
Post-write delay.
const char* amp_caps::priv |
Private data.
int amp_caps::retry |
Number of retry if command fails.
int amp_caps::serial_data_bits |
Number of data bits.
enum serial_handshake_e amp_caps::serial_handshake |
Handshake.
enum serial_parity_e amp_caps::serial_parity |
Parity.
int amp_caps::serial_rate_max |
Maximal serial speed.
int amp_caps::serial_rate_min |
Minimal serial speed.
int amp_caps::serial_stop_bits |
Number of stop bits.
enum rig_status_e amp_caps::status |
Driver status.
int amp_caps::timeout |
Timeout.
const char* amp_caps::version |
Driver version.
int amp_caps::write_delay |
Write delay.
Hamlib documentation for version 4.0~git -- Sat Apr 4 2020 16:38:15
Project page: http://www.hamlib.org