Loading...
Searching...
No Matches
amplifier.c File Reference
Amplifier API

Amplifier interface. More...

`#include "hamlib/config.h"`
`#include <stdlib.h>`
`#include <string.h>`
`#include <unistd.h>`
`#include <stdio.h>`
`#include <fcntl.h>`
`#include "hamlib/amplifier.h"`
`#include "hamlib/port.h"`
`#include "hamlib/amp_state.h"`
`#include "serial.h"`
`#include "parallel.h"`
`#include "usb_port.h"`
`#include "network.h"`
Include dependency graph for amplifier.c:

## Functions

AMP * | amp_init (amp_model_t amp_model)
| Allocate a new AMP handle.
int | amp_open (AMP *amp)
| Open the communication channel to the amplifier.
int | amp_close (AMP *amp)
| Close the communication channel to the amplifier.
int | amp_cleanup (AMP *amp)
| Release an AMP handle and free associated memory.
int | amp_reset (AMP *amp, amp_reset_t reset)
| Reset the amplifier.
int | amp_get_freq (AMP *amp, freq_t *freq)
| Query the operating frequency of the amplifier.
int | amp_set_freq (AMP *amp, freq_t freq)
| Set the operating frequency of the amplifier.
const char * | amp_get_info (AMP *amp)
| Query general information from the amplifier.
int | amp_set_level (AMP *amp, setting_t level, value_t val)
| Set the value of a requested level.
int | amp_get_level (AMP *amp, setting_t level, value_t *val)
| Query the value of a requested level.
int | amp_set_ext_level (AMP *amp, hamlib_token_t level, value_t val)
| Set the value of a requested extension levels token.
int | amp_get_ext_level (AMP *amp, hamlib_token_t level, value_t *val)
| Query the value of a requested extension levels token.
int | amp_set_powerstat (AMP *amp, powerstat_t status)
| Turn the amplifier On or Off or toggle the Standby or Operate status.
int | amp_get_powerstat (AMP *amp, powerstat_t *status)
| Query the power or standby status of the amplifier.
void * | amp_data_pointer (AMP *amp, rig_ptrx_t idx)
| Get the address of amplifier data structure(s).

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