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

Dynamic registration of amplifier backends. More...

#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <hamlib/amplifier.h>
#include "register.h"

Data Structures

struct  amp_list
 

Macros

#define PATH_MAX   1024
 
#define AMP_BACKEND_MAX   32
 
#define DEFINE_INITAMP_BACKEND(backend)
 
#define AMP_FUNCNAMA(backend)   MAKE_VERSIONED_FN(PREFIX_INITAMPS, ABI_VERSION, backend)
 
#define AMP_FUNCNAMB(backend)   MAKE_VERSIONED_FN(PREFIX_PROBEAMPS, ABI_VERSION, backend)
 
#define AMP_FUNCNAM(backend)   AMP_FUNCNAMA(backend),AMP_FUNCNAMB(backend)
 
#define AMPLSTHASHSZ   16
 
#define HASH_FUNC(a)   ((a)%AMPLSTHASHSZ)
 

Functions

int initamps4_dummy (void *be_handle)
 
rig_model_t probeallamps4_dummy (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initamps4_kpa1500 (void *be_handle)
 
rig_model_t probeallamps4_kpa1500 (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int amp_register (const struct amp_caps *caps)
 
const struct amp_capsamp_get_caps (amp_model_t amp_model)
 
int amp_check_backend (amp_model_t amp_model)
 
int amp_unregister (amp_model_t amp_model)
 
int amp_list_foreach (int(*cfunc)(const struct amp_caps *, char *), char *data)
 
amp_model_t amp_probe_all (hamlib_port_t *p)
 
int amp_load_all_backends ()
 
int amp_load_backend (const char *be_name)
 

Detailed Description

Dynamic registration of amplifier backends.

Similar to register.c doc todo: Let's explain what's going on here!

Macro Definition Documentation

◆ DEFINE_INITAMP_BACKEND

#define DEFINE_INITAMP_BACKEND (   backend)
Value:
int MAKE_VERSIONED_FN(PREFIX_INITAMPS, \
ABI_VERSION, \
backend(void *be_handle)); \
rig_model_t MAKE_VERSIONED_FN(PREFIX_PROBEAMPS, \
ABI_VERSION, \
backend(hamlib_port_t *port, \
rig_probe_func_t cfunc, \
rig_ptr_t data))
Port definition.
Definition: rig.h:1655

Generated by doxygen 1.8.15

Hamlib documentation for version 4.0~git -- Sat Apr 4 2020 16:38:15
Project page: http://www.hamlib.org