Hamlib  4.0~git
Data Fields
amp_caps Struct Reference

Amplifier data structure. More...

#include <amplifier.h>

Data Fields

amp_model_t amp_model
 
const char * model_name
 
const char * macro_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 confparamscfgparams
 
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 confparamsextlevels
 
const struct confparamsextparms
 

Detailed Description

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.

n.b.: Don't move fields around, as the backends depend on it when initializing their caps.

Field Documentation

◆ amp_model

amp_model_t amp_caps::amp_model

Amplifier model.

◆ amp_model_macro_name

const char* amp_caps::amp_model_macro_name

Model macro name

◆ amp_type

int amp_caps::amp_type

Amplifier type.

◆ cfgparams

const struct confparams* amp_caps::cfgparams

Configuration parametres.

◆ copyright

const char* amp_caps::copyright

Copyright info.

◆ level_gran

gran_t amp_caps::level_gran[64]

level granularity

◆ macro_name

const char* amp_caps::macro_name

Macro name.

◆ mfg_name

const char* amp_caps::mfg_name

Manufacturer.

◆ model_name

const char* amp_caps::model_name

Model name.

◆ parm_gran

gran_t amp_caps::parm_gran[64]

level granularity

◆ port_type

enum rig_port_e amp_caps::port_type

Type of communication port.

◆ post_write_delay

int amp_caps::post_write_delay

Post-write delay.

◆ priv

const char* amp_caps::priv

Private data.

◆ retry

int amp_caps::retry

Number of retry if command fails.

◆ serial_data_bits

int amp_caps::serial_data_bits

Number of data bits.

◆ serial_handshake

enum serial_handshake_e amp_caps::serial_handshake

Handshake.

◆ serial_parity

enum serial_parity_e amp_caps::serial_parity

Parity.

◆ serial_rate_max

int amp_caps::serial_rate_max

Maximal serial speed.

◆ serial_rate_min

int amp_caps::serial_rate_min

Minimal serial speed.

◆ serial_stop_bits

int amp_caps::serial_stop_bits

Number of stop bits.

◆ status

enum rig_status_e amp_caps::status

Driver status.

◆ timeout

int amp_caps::timeout

Timeout.

◆ version

const char* amp_caps::version

Driver version.

◆ write_delay

int amp_caps::write_delay

Write delay.


The documentation for this struct was generated from the following file:

Generated by doxygen 1.8.17

Hamlib documentation for version 4.0~git -- Sun Apr 5 2020 00:00:00
Project page: http://www.hamlib.org