Hamlib  4.3
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
Functions
amplifier.c File Reference

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"
Include dependency graph for amplifier.c:

Functions

AMPamp_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...
 

Detailed Description

Amplifier interface.

Author
Stephane Fillod
Date
2000-2012
Author
Frank Singleton
Date
2000-2003
Author
Michael Black
Date
2019-2020

This Hamlib interface is a frontend implementing the amplifier wrapper functions.