Hamlib  4.0~git
Data Structures | Macros | Functions
amplifier.c File Reference

Amplifier interface. More...

#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <hamlib/amplifier.h>
#include "serial.h"
#include "parallel.h"
#include "usb_port.h"
#include "network.h"
#include "amp_conf.h"
#include "token.h"

Data Structures

struct  opened_amp_l
 

Macros

#define CHECK_AMP_ARG(r)   (!(r) || !(r)->caps || !(r)->state.comm_state)
 

Functions

AMPamp_init (amp_model_t amp_model)
 allocate a new AMP handle More...
 
int amp_open (AMP *amp)
 open the communication to the amp More...
 
int amp_close (AMP *amp)
 close the communication to the amp More...
 
int amp_cleanup (AMP *amp)
 release a 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)
 
int amp_set_freq (AMP *amp, freq_t freq)
 
const char * amp_get_info (AMP *amp)
 get general information from the amplifier More...
 
int amp_get_level (AMP *amp, setting_t level, value_t *val)
 
int amp_get_ext_level (AMP *amp, token_t level, value_t *val)
 
int amp_set_powerstat (AMP *amp, powerstat_t status)
 turn on/off the amplifier or standby/operate toggle More...
 
int amp_get_powerstat (AMP *amp, powerstat_t *status)
 

Detailed Description

Amplifier interface.

Author
Stephane Fillod
Date
2000-2012

Hamlib interface is a frontend implementing amplifier wrapper functions.


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