#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <hamlib/rig.h>
#include "token.h"
Functions | |
| int | rig_token_foreach (RIG *rig, int(*cfunc)(const struct confparams *, char *), char *data) |
| call a function against each configuration token of a rig | |
| confparams * | rig_confparam_lookup (RIG *rig, const char *name) |
| lookup a confparam struct | |
| token_t | rig_token_lookup (RIG *rig, const char *name) |
| lookup a token id | |
| int | rig_set_conf (RIG *rig, token_t token, const char *val) |
| set a radio configuration parameter | |
| int | rig_get_conf (RIG *rig, token_t token, char *val) |
| get the value of a configuration parameter | |
| struct confparams* rig_confparam_lookup | ( | RIG * | rig, | |
| const char * | name | |||
| ) |
lookup a confparam struct
| rig | The rig handle | |
| name | The name of the configuration parameter |
get the value of a configuration parameter
| rig | The rig handle | |
| token | The parameter | |
| val | The location where to store the value of config token |
set a radio configuration parameter
| rig | The rig handle | |
| token | The parameter | |
| val | The value to set the parameter to |
| int rig_token_foreach | ( | RIG * | rig, | |
| int(*)(const struct confparams *, char *) | cfunc, | |||
| char * | data | |||
| ) |
call a function against each configuration token of a rig
| rig | The rig handle | |
| cfunc | The function to perform on each token | |
| data | Any data to be passed to cfunc |
lookup a token id
| rig | The rig handle | |
| name | The name of the configuration parameter |
1.5.1