![]() |
Hamlib
4.3
|
Amplifier capabilities. More...
#include <amplifier.h>
Amplifier capabilities.
The main idea of this struct is that it will be defined by the backend amplifier driver and will remain read-only for the application. Fields that need to be modifiable by the application are copied into the amp_state structure, which is the private memory area of the AMP instance.
This way you can have several amplifiers running within the same application, sharing the amp_caps structure of the backend, while keeping their own customized data.
Note: Don't move fields around and only add new fields at the end of the amp_caps structure. Shared libraries and DLLs depend on a constant structure to maintain compatibility.
Pointer to backend implementation of amp_cleanup().
Pointer to backend implementation of amp_close().
Pointer to backend implementation of amp_init().
amp_model_t amp_caps::amp_model |
Amplifier model as defined in amplist.h.
const char* amp_caps::amp_model_macro_name |
Model macro name.
Pointer to backend implementation of amp_open().
int amp_caps::amp_type |
Amplifier type.
const struct confparams* amp_caps::cfgparams |
Configuration parameters.
const char* amp_caps::copyright |
Copyright info (should be LGPL).
const struct confparams* amp_caps::extlevels |
Extension levels list.
const struct confparams* amp_caps::extparms |
Extension parameters list.
Pointer to backend implementation of amp_get_conf().
Pointer to backend implementation of amp_get_ext_level().
Pointer to backend implementation of amp_get_freq().
Pointer to backend implementation of amp_get_info().
Pointer to backend implementation of amp_get_level().
int(* amp_caps::get_powerstat) (AMP *amp, powerstat_t *status) |
Pointer to backend implementation of amp_get_powerstat().
setting_t amp_caps::has_get_level |
List of get levels.
setting_t amp_caps::has_set_level |
List of set levels.
gran_t amp_caps::level_gran[64] |
Level granularity.
const char* amp_caps::macro_name |
Amplifier model macro name.
const char* amp_caps::mfg_name |
Manufacturer, e.g. Moonbeam.
const char* amp_caps::model_name |
Model name, e.g. MM-5k.
gran_t amp_caps::parm_gran[64] |
Parameter granularity.
enum rig_port_e amp_caps::port_type |
Type of communication port (serial, ethernet, etc.).
int amp_caps::post_write_delay |
Post-write delay.
const rig_ptr_t amp_caps::priv |
Private data.
Pointer to backend implementation of amp_reset().
int amp_caps::retry |
Number of retries if a 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.
Pointer to backend implementation of amp_set_conf().
Pointer to backend implementation of amp_set_freq().
int(* amp_caps::set_powerstat) (AMP *amp, powerstat_t status) |
Pointer to backend implementation of amp_set_powerstat().
enum rig_status_e amp_caps::status |
Driver status.
int amp_caps::timeout |
Timeout.
const char* amp_caps::version |
Driver version, typically in YYYYMMDD.x format.
int amp_caps::write_delay |
Write delay.