Hamlib  3.0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Functions
ext.c File Reference

Extension request parameter interface. More...

#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <hamlib/rig.h>
#include "token.h"
Include dependency graph for ext.c:

Functions

int rig_ext_level_foreach (RIG *rig, int(*cfunc)(RIG *, const struct confparams *, char *), char *data)
 Executes cfunc on all the elements stored in the extlevels table The callback cfunc is called until it returns a value which is not strictly positive. A zero value means a normal end of iteration, and a negative value an abnormal end, which will be the return value of rig_ext_level_foreach. More...
 
int rig_ext_parm_foreach (RIG *rig, int(*cfunc)(RIG *, const struct confparams *, char *), char *data)
 Executes cfunc on all the elements stored in the extparms table The callback cfunc is called until it returns a value which is not strictly positive. A zero value means a normal end of iteration, and a negative value an abnormal end, which will be the return value of rig_ext_parm_foreach. More...
 
const struct confparamsrig_ext_lookup (RIG *rig, const char *name)
 lookup ext token by its name, return pointer to confparams struct. More...
 
const struct confparamsrig_ext_lookup_tok (RIG *rig, token_t token)
 lookup ext token, return pointer to confparams struct. More...
 
token_t rig_ext_token_lookup (RIG *rig, const char *name)
 Simple lookup returning token id assicated with name. More...
 

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.


Generated by doxygen 1.8.8

Hamlib documentation for version 3.0.1 -- Wed Jan 13 2016 15:05:23
Project page: http://www.hamlib.org