Logo Search packages:      
Sourcecode: hamlib version File versions

ext.c File Reference


Detailed Description

Extension request parameter interface.

An open-ended set of extension parameters and levels are available for each rig, as provided in the rigcaps extparms and extlevels lists. These provide a way to work with rig-specific functions that don't fit into the basic "virtual rig" of Hamlib. See icom/ic746.c for an example.

Definition in file ext.c.

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <hamlib/rig.h>
#include "token.h"

Go to the source code of this file.

Functions

int HAMLIB_API rig_ext_level_foreach (RIG *rig, int(*cfunc)(RIG *, const struct confparams *, rig_ptr_t), rig_ptr_t data)
 Executes cfunc on all the elements stored in the extlevels table.
struct confparams *HAMLIB_API rig_ext_lookup (RIG *rig, const char *name)
 lookup ext token by its name, return pointer to confparams struct.
struct confparams *HAMLIB_API rig_ext_lookup_tok (RIG *rig, token_t token)
 lookup ext token, return pointer to confparams struct.
int HAMLIB_API rig_ext_parm_foreach (RIG *rig, int(*cfunc)(RIG *, const struct confparams *, rig_ptr_t), rig_ptr_t data)
 Executes cfunc on all the elements stored in the extparms table.
token_t HAMLIB_API rig_ext_token_lookup (RIG *rig, const char *name)
 Simple lookup returning token id assicated with name.


Generated by  Doxygen 1.6.0   Back to index