![]() |
Hamlib
4.3
|
Amplifier interface. More...
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <fcntl.h>
#include <hamlib/amplifier.h>
#include "serial.h"
#include "parallel.h"
#include "usb_port.h"
#include "network.h"
#include "token.h"
Functions | |
AMP * | amp_init (amp_model_t amp_model) |
Allocate a new AMP handle. More... | |
int | amp_open (AMP *amp) |
Open the communication channel to the amplifier. More... | |
int | amp_close (AMP *amp) |
Close the communication channel to the amplifier. More... | |
int | amp_cleanup (AMP *amp) |
Release an AMP handle and free associated memory. More... | |
int | amp_reset (AMP *amp, amp_reset_t reset) |
Reset the amplifier. More... | |
int | amp_get_freq (AMP *amp, freq_t *freq) |
Query the operating frequency of the amplifier. More... | |
int | amp_set_freq (AMP *amp, freq_t freq) |
Set the operating frequency of the amplifier. More... | |
const char * | amp_get_info (AMP *amp) |
Query general information from the amplifier. More... | |
int | amp_get_level (AMP *amp, setting_t level, value_t *val) |
Query the value of a requested level. More... | |
int | amp_get_ext_level (AMP *amp, token_t level, value_t *val) |
Query the value of a requested extension levels token. More... | |
int | amp_set_powerstat (AMP *amp, powerstat_t status) |
Turn the amplifier On or Off or toggle the Standby or Operate status. More... | |
int | amp_get_powerstat (AMP *amp, powerstat_t *status) |
Query the power or standby status of the amplifier. More... | |
Amplifier interface.
This Hamlib interface is a frontend implementing the amplifier wrapper functions.