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

Dynamic registration of rotator backends. More...

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

Data Structures

struct  rot_list
 

Macros

#define PATH_MAX   1024
 
#define ROT_BACKEND_MAX   32
 
#define DEFINE_INITROT_BACKEND(backend)
 
#define ROT_FUNCNAMA(backend)   MAKE_VERSIONED_FN(PREFIX_INITROTS, ABI_VERSION, backend)
 
#define ROT_FUNCNAMB(backend)   MAKE_VERSIONED_FN(PREFIX_PROBEROTS, ABI_VERSION, backend)
 
#define ROT_FUNCNAM(backend)   ROT_FUNCNAMA(backend),ROT_FUNCNAMB(backend)
 
#define ROTLSTHASHSZ   16
 
#define HASH_FUNC(a)   ((a)%ROTLSTHASHSZ)
 

Functions

int initrots4_dummy (void *be_handle)
 
rig_model_t probeallrots4_dummy (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrots4_easycomm (void *be_handle)
 
rig_model_t probeallrots4_easycomm (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrots4_fodtrack (void *be_handle)
 
rig_model_t probeallrots4_fodtrack (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrots4_rotorez (void *be_handle)
 
rig_model_t probeallrots4_rotorez (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrots4_sartek (void *be_handle)
 
rig_model_t probeallrots4_sartek (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrots4_gs232a (void *be_handle)
 
rig_model_t probeallrots4_gs232a (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrots4_kit (void *be_handle)
 
rig_model_t probeallrots4_kit (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrots4_heathkit (void *be_handle)
 
rig_model_t probeallrots4_heathkit (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrots4_spid (void *be_handle)
 
rig_model_t probeallrots4_spid (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrots4_m2 (void *be_handle)
 
rig_model_t probeallrots4_m2 (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrots4_ars (void *be_handle)
 
rig_model_t probeallrots4_ars (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrots4_amsat (void *be_handle)
 
rig_model_t probeallrots4_amsat (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrots4_ts7400 (void *be_handle)
 
rig_model_t probeallrots4_ts7400 (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrots4_celestron (void *be_handle)
 
rig_model_t probeallrots4_celestron (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrots4_ether6 (void *be_handle)
 
rig_model_t probeallrots4_ether6 (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrots4_cnctrk (void *be_handle)
 
rig_model_t probeallrots4_cnctrk (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrots4_prosistel (void *be_handle)
 
rig_model_t probeallrots4_prosistel (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrots4_meade (void *be_handle)
 
rig_model_t probeallrots4_meade (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int initrots4_ioptron (void *be_handle)
 
rig_model_t probeallrots4_ioptron (hamlib_port_t *port, rig_probe_func_t cfunc, char *data)
 
int rot_register (const struct rot_caps *caps)
 
const struct rot_capsrot_get_caps (rot_model_t rot_model)
 
int rot_check_backend (rot_model_t rot_model)
 
int rot_unregister (rot_model_t rot_model)
 
int rot_list_foreach (int(*cfunc)(const struct rot_caps *, char *), char *data)
 
rot_model_t rot_probe_all (hamlib_port_t *p)
 
int rot_load_all_backends ()
 
int rot_load_backend (const char *be_name)
 

Detailed Description

Dynamic registration of rotator backends.

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

Macro Definition Documentation

◆ DEFINE_INITROT_BACKEND

#define DEFINE_INITROT_BACKEND (   backend)
Value:
int MAKE_VERSIONED_FN(PREFIX_INITROTS, \
ABI_VERSION, \
backend(void *be_handle)); \
rig_model_t MAKE_VERSIONED_FN(PREFIX_PROBEROTS, \
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