mirror of
https://github.com/Hamlib/Hamlib.git
synced 2024-09-21 02:17:21 +00:00
Change token_t to hamlib_token_t to avoid collsions with libbsm and others
https://github.com/Hamlib/Hamlib/issues/1469
This commit is contained in:
parent
67aee82133
commit
05033171c3
@ -65,7 +65,7 @@ void Amplifier::close(void) {
|
|||||||
CHECK_AMP( amp_close(theAmp) );
|
CHECK_AMP( amp_close(theAmp) );
|
||||||
}
|
}
|
||||||
|
|
||||||
void Amplifier::setConf(token_t token, const char *val)
|
void Amplifier::setConf(hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
CHECK_AMP( amp_set_conf(theAmp, token, val) );
|
CHECK_AMP( amp_set_conf(theAmp, token, val) );
|
||||||
}
|
}
|
||||||
@ -74,7 +74,7 @@ void Amplifier::setConf(const char *name, const char *val)
|
|||||||
CHECK_AMP( amp_set_conf(theAmp, tokenLookup(name), val) );
|
CHECK_AMP( amp_set_conf(theAmp, tokenLookup(name), val) );
|
||||||
}
|
}
|
||||||
|
|
||||||
void Amplifier::getConf(token_t token, char *val)
|
void Amplifier::getConf(hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
CHECK_AMP( amp_get_conf(theAmp, token, val) );
|
CHECK_AMP( amp_get_conf(theAmp, token, val) );
|
||||||
}
|
}
|
||||||
@ -83,7 +83,7 @@ void Amplifier::getConf(const char *name, char *val)
|
|||||||
CHECK_AMP( amp_get_conf(theAmp, tokenLookup(name), val) );
|
CHECK_AMP( amp_get_conf(theAmp, tokenLookup(name), val) );
|
||||||
}
|
}
|
||||||
|
|
||||||
token_t Amplifier::tokenLookup(const char *name)
|
hamlib_token_t Amplifier::tokenLookup(const char *name)
|
||||||
{
|
{
|
||||||
return amp_token_lookup(theAmp, name);
|
return amp_token_lookup(theAmp, name);
|
||||||
}
|
}
|
||||||
|
@ -76,7 +76,7 @@ void Rig::close(void) {
|
|||||||
CHECK_RIG( rig_close(theRig) );
|
CHECK_RIG( rig_close(theRig) );
|
||||||
}
|
}
|
||||||
|
|
||||||
void Rig::setConf(token_t token, const char *val)
|
void Rig::setConf(hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
CHECK_RIG( rig_set_conf(theRig, token, val) );
|
CHECK_RIG( rig_set_conf(theRig, token, val) );
|
||||||
}
|
}
|
||||||
@ -85,7 +85,7 @@ void Rig::setConf(const char *name, const char *val)
|
|||||||
CHECK_RIG( rig_set_conf(theRig, tokenLookup(name), val) );
|
CHECK_RIG( rig_set_conf(theRig, tokenLookup(name), val) );
|
||||||
}
|
}
|
||||||
|
|
||||||
void Rig::getConf(token_t token, char *val)
|
void Rig::getConf(hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
CHECK_RIG( rig_get_conf(theRig, token, val) );
|
CHECK_RIG( rig_get_conf(theRig, token, val) );
|
||||||
}
|
}
|
||||||
@ -94,7 +94,7 @@ void Rig::getConf(const char *name, char *val)
|
|||||||
CHECK_RIG( rig_get_conf(theRig, tokenLookup(name), val) );
|
CHECK_RIG( rig_get_conf(theRig, tokenLookup(name), val) );
|
||||||
}
|
}
|
||||||
|
|
||||||
token_t Rig::tokenLookup(const char *name)
|
hamlib_token_t Rig::tokenLookup(const char *name)
|
||||||
{
|
{
|
||||||
return rig_token_lookup(theRig, name);
|
return rig_token_lookup(theRig, name);
|
||||||
}
|
}
|
||||||
|
@ -64,7 +64,7 @@ void Rotator::close(void) {
|
|||||||
CHECK_ROT( rot_close(theRot) );
|
CHECK_ROT( rot_close(theRot) );
|
||||||
}
|
}
|
||||||
|
|
||||||
void Rotator::setConf(token_t token, const char *val)
|
void Rotator::setConf(hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
CHECK_ROT( rot_set_conf(theRot, token, val) );
|
CHECK_ROT( rot_set_conf(theRot, token, val) );
|
||||||
}
|
}
|
||||||
@ -73,7 +73,7 @@ void Rotator::setConf(const char *name, const char *val)
|
|||||||
CHECK_ROT( rot_set_conf(theRot, tokenLookup(name), val) );
|
CHECK_ROT( rot_set_conf(theRot, tokenLookup(name), val) );
|
||||||
}
|
}
|
||||||
|
|
||||||
void Rotator::getConf(token_t token, char *val)
|
void Rotator::getConf(hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
CHECK_ROT( rot_get_conf(theRot, token, val) );
|
CHECK_ROT( rot_get_conf(theRot, token, val) );
|
||||||
}
|
}
|
||||||
@ -82,7 +82,7 @@ void Rotator::getConf(const char *name, char *val)
|
|||||||
CHECK_ROT( rot_get_conf(theRot, tokenLookup(name), val) );
|
CHECK_ROT( rot_get_conf(theRot, tokenLookup(name), val) );
|
||||||
}
|
}
|
||||||
|
|
||||||
token_t Rotator::tokenLookup(const char *name)
|
hamlib_token_t Rotator::tokenLookup(const char *name)
|
||||||
{
|
{
|
||||||
return rot_token_lookup(theRot, name);
|
return rot_token_lookup(theRot, name);
|
||||||
}
|
}
|
||||||
|
@ -53,11 +53,11 @@ public:
|
|||||||
// This method closes the communication port to the amp
|
// This method closes the communication port to the amp
|
||||||
void close(void);
|
void close(void);
|
||||||
|
|
||||||
void setConf(token_t token, const char *val);
|
void setConf(hamlib_token_t token, const char *val);
|
||||||
void setConf(const char *name, const char *val);
|
void setConf(const char *name, const char *val);
|
||||||
void getConf(token_t token, char *val);
|
void getConf(hamlib_token_t token, char *val);
|
||||||
void getConf(const char *name, char *val);
|
void getConf(const char *name, char *val);
|
||||||
token_t tokenLookup(const char *name);
|
hamlib_token_t tokenLookup(const char *name);
|
||||||
|
|
||||||
void setFreq(freq_t freq);
|
void setFreq(freq_t freq);
|
||||||
freq_t getFreq();
|
freq_t getFreq();
|
||||||
|
@ -233,9 +233,9 @@ struct amp_caps
|
|||||||
int (*set_freq)(AMP *amp, freq_t val); /*!< Pointer to backend implementation of ::amp_set_freq(). */
|
int (*set_freq)(AMP *amp, freq_t val); /*!< Pointer to backend implementation of ::amp_set_freq(). */
|
||||||
int (*get_freq)(AMP *amp, freq_t *val); /*!< Pointer to backend implementation of ::amp_get_freq(). */
|
int (*get_freq)(AMP *amp, freq_t *val); /*!< Pointer to backend implementation of ::amp_get_freq(). */
|
||||||
|
|
||||||
int (*set_conf)(AMP *amp, token_t token, const char *val); /*!< Pointer to backend implementation of ::amp_set_conf(). */
|
int (*set_conf)(AMP *amp, hamlib_token_t token, const char *val); /*!< Pointer to backend implementation of ::amp_set_conf(). */
|
||||||
int (*get_conf2)(AMP *amp, token_t token, char *val, int val_len); /*!< Pointer to backend implementation of ::amp_get_conf(). */
|
int (*get_conf2)(AMP *amp, hamlib_token_t token, char *val, int val_len); /*!< Pointer to backend implementation of ::amp_get_conf(). */
|
||||||
int (*get_conf)(AMP *amp, token_t token, char *val); /*!< Pointer to backend implementation of ::amp_get_conf(). */
|
int (*get_conf)(AMP *amp, hamlib_token_t token, char *val); /*!< Pointer to backend implementation of ::amp_get_conf(). */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* General API commands, from most primitive to least.. :()
|
* General API commands, from most primitive to least.. :()
|
||||||
@ -245,8 +245,8 @@ struct amp_caps
|
|||||||
int (*reset)(AMP *amp, amp_reset_t reset); /*!< Pointer to backend implementation of ::amp_reset(). */
|
int (*reset)(AMP *amp, amp_reset_t reset); /*!< Pointer to backend implementation of ::amp_reset(). */
|
||||||
int (*get_level)(AMP *amp, setting_t level, value_t *val); /*!< Pointer to backend implementation of ::amp_get_level(). */
|
int (*get_level)(AMP *amp, setting_t level, value_t *val); /*!< Pointer to backend implementation of ::amp_get_level(). */
|
||||||
int (*set_level)(AMP *amp, setting_t level, value_t val); /*!< Pointer to backend implementation of ::amp_get_level(). */
|
int (*set_level)(AMP *amp, setting_t level, value_t val); /*!< Pointer to backend implementation of ::amp_get_level(). */
|
||||||
int (*get_ext_level)(AMP *amp, token_t level, value_t *val); /*!< Pointer to backend implementation of ::amp_get_ext_level(). */
|
int (*get_ext_level)(AMP *amp, hamlib_token_t level, value_t *val); /*!< Pointer to backend implementation of ::amp_get_ext_level(). */
|
||||||
int (*set_ext_level)(AMP *amp, token_t level, value_t val); /*!< Pointer to backend implementation of ::amp_set_ext_level(). */
|
int (*set_ext_level)(AMP *amp, hamlib_token_t level, value_t val); /*!< Pointer to backend implementation of ::amp_set_ext_level(). */
|
||||||
int (*set_powerstat)(AMP *amp, powerstat_t status); /*!< Pointer to backend implementation of ::amp_set_powerstat(). */
|
int (*set_powerstat)(AMP *amp, powerstat_t status); /*!< Pointer to backend implementation of ::amp_set_powerstat(). */
|
||||||
int (*get_powerstat)(AMP *amp, powerstat_t *status); /*!< Pointer to backend implementation of ::amp_get_powerstat(). */
|
int (*get_powerstat)(AMP *amp, powerstat_t *status); /*!< Pointer to backend implementation of ::amp_get_powerstat(). */
|
||||||
|
|
||||||
@ -336,11 +336,11 @@ amp_cleanup HAMLIB_PARAMS((AMP *amp));
|
|||||||
|
|
||||||
extern HAMLIB_EXPORT(int)
|
extern HAMLIB_EXPORT(int)
|
||||||
amp_set_conf HAMLIB_PARAMS((AMP *amp,
|
amp_set_conf HAMLIB_PARAMS((AMP *amp,
|
||||||
token_t token,
|
hamlib_token_t token,
|
||||||
const char *val));
|
const char *val));
|
||||||
extern HAMLIB_EXPORT(int)
|
extern HAMLIB_EXPORT(int)
|
||||||
amp_get_conf HAMLIB_PARAMS((AMP *amp,
|
amp_get_conf HAMLIB_PARAMS((AMP *amp,
|
||||||
token_t token,
|
hamlib_token_t token,
|
||||||
char *val));
|
char *val));
|
||||||
extern HAMLIB_EXPORT(int)
|
extern HAMLIB_EXPORT(int)
|
||||||
amp_set_powerstat HAMLIB_PARAMS((AMP *amp,
|
amp_set_powerstat HAMLIB_PARAMS((AMP *amp,
|
||||||
@ -408,7 +408,7 @@ extern HAMLIB_EXPORT(const struct confparams *)
|
|||||||
amp_confparam_lookup HAMLIB_PARAMS((AMP *amp,
|
amp_confparam_lookup HAMLIB_PARAMS((AMP *amp,
|
||||||
const char *name));
|
const char *name));
|
||||||
|
|
||||||
extern HAMLIB_EXPORT(token_t)
|
extern HAMLIB_EXPORT(hamlib_token_t)
|
||||||
amp_token_lookup HAMLIB_PARAMS((AMP *amp,
|
amp_token_lookup HAMLIB_PARAMS((AMP *amp,
|
||||||
const char *name));
|
const char *name));
|
||||||
|
|
||||||
@ -429,12 +429,12 @@ amp_ext_lookup HAMLIB_PARAMS((AMP *amp,
|
|||||||
|
|
||||||
extern HAMLIB_EXPORT(int)
|
extern HAMLIB_EXPORT(int)
|
||||||
amp_get_ext_level HAMLIB_PARAMS((AMP *amp,
|
amp_get_ext_level HAMLIB_PARAMS((AMP *amp,
|
||||||
token_t token,
|
hamlib_token_t token,
|
||||||
value_t *val));
|
value_t *val));
|
||||||
|
|
||||||
extern HAMLIB_EXPORT(int)
|
extern HAMLIB_EXPORT(int)
|
||||||
amp_set_ext_level HAMLIB_PARAMS((AMP *amp,
|
amp_set_ext_level HAMLIB_PARAMS((AMP *amp,
|
||||||
token_t token,
|
hamlib_token_t token,
|
||||||
value_t val));
|
value_t val));
|
||||||
|
|
||||||
extern HAMLIB_EXPORT(const char *) amp_strlevel(setting_t);
|
extern HAMLIB_EXPORT(const char *) amp_strlevel(setting_t);
|
||||||
|
@ -842,7 +842,7 @@ typedef enum {
|
|||||||
/**
|
/**
|
||||||
* \brief configuration token
|
* \brief configuration token
|
||||||
*/
|
*/
|
||||||
typedef long token_t;
|
typedef long hamlib_token_t;
|
||||||
|
|
||||||
|
|
||||||
//! @cond Doxygen_Suppress
|
//! @cond Doxygen_Suppress
|
||||||
@ -883,7 +883,7 @@ enum rig_conf_e {
|
|||||||
* \brief Configuration parameter structure.
|
* \brief Configuration parameter structure.
|
||||||
*/
|
*/
|
||||||
struct confparams {
|
struct confparams {
|
||||||
token_t token; /*!< Conf param token ID */
|
hamlib_token_t token; /*!< Conf param token ID */
|
||||||
const char *name; /*!< Param name, no spaces allowed */
|
const char *name; /*!< Param name, no spaces allowed */
|
||||||
const char *label; /*!< Human readable label */
|
const char *label; /*!< Human readable label */
|
||||||
const char *tooltip; /*!< Hint on the parameter */
|
const char *tooltip; /*!< Hint on the parameter */
|
||||||
@ -1536,7 +1536,7 @@ struct filter_list {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
struct ext_list {
|
struct ext_list {
|
||||||
token_t token; /*!< Token ID */
|
hamlib_token_t token; /*!< Token ID */
|
||||||
value_t val; /*!< Value */
|
value_t val; /*!< Value */
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -2081,17 +2081,17 @@ struct rig_caps {
|
|||||||
int (*set_parm)(RIG *rig, setting_t parm, value_t val);
|
int (*set_parm)(RIG *rig, setting_t parm, value_t val);
|
||||||
int (*get_parm)(RIG *rig, setting_t parm, value_t *val);
|
int (*get_parm)(RIG *rig, setting_t parm, value_t *val);
|
||||||
|
|
||||||
int (*set_ext_level)(RIG *rig, vfo_t vfo, token_t token, value_t val);
|
int (*set_ext_level)(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t val);
|
||||||
int (*get_ext_level)(RIG *rig, vfo_t vfo, token_t token, value_t *val);
|
int (*get_ext_level)(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t *val);
|
||||||
|
|
||||||
int (*set_ext_func)(RIG *rig, vfo_t vfo, token_t token, int status);
|
int (*set_ext_func)(RIG *rig, vfo_t vfo, hamlib_token_t token, int status);
|
||||||
int (*get_ext_func)(RIG *rig, vfo_t vfo, token_t token, int *status);
|
int (*get_ext_func)(RIG *rig, vfo_t vfo, hamlib_token_t token, int *status);
|
||||||
|
|
||||||
int (*set_ext_parm)(RIG *rig, token_t token, value_t val);
|
int (*set_ext_parm)(RIG *rig, hamlib_token_t token, value_t val);
|
||||||
int (*get_ext_parm)(RIG *rig, token_t token, value_t *val);
|
int (*get_ext_parm)(RIG *rig, hamlib_token_t token, value_t *val);
|
||||||
|
|
||||||
int (*set_conf)(RIG *rig, token_t token, const char *val);
|
int (*set_conf)(RIG *rig, hamlib_token_t token, const char *val);
|
||||||
int (*get_conf)(RIG *rig, token_t token, char *val);
|
int (*get_conf)(RIG *rig, hamlib_token_t token, char *val);
|
||||||
|
|
||||||
int (*send_dtmf)(RIG *rig, vfo_t vfo, const char *digits);
|
int (*send_dtmf)(RIG *rig, vfo_t vfo, const char *digits);
|
||||||
int (*recv_dtmf)(RIG *rig, vfo_t vfo, char *digits, int *length);
|
int (*recv_dtmf)(RIG *rig, vfo_t vfo, char *digits, int *length);
|
||||||
@ -2162,7 +2162,7 @@ struct rig_caps {
|
|||||||
const unsigned char *frame);
|
const unsigned char *frame);
|
||||||
// this will be used to check rigcaps structure is compatible with client
|
// this will be used to check rigcaps structure is compatible with client
|
||||||
char *hamlib_check_rig_caps; // a constant value we can check for hamlib integrity
|
char *hamlib_check_rig_caps; // a constant value we can check for hamlib integrity
|
||||||
int (*get_conf2)(RIG *rig, token_t token, char *val, int val_len);
|
int (*get_conf2)(RIG *rig, hamlib_token_t token, char *val, int val_len);
|
||||||
int (*password)(RIG *rig, const char *key1); /*< Send encrypted password if rigctld is secured with -A/--password */
|
int (*password)(RIG *rig, const char *key1); /*< Send encrypted password if rigctld is secured with -A/--password */
|
||||||
int (*set_lock_mode)(RIG *rig, int mode);
|
int (*set_lock_mode)(RIG *rig, int mode);
|
||||||
int (*get_lock_mode)(RIG *rig, int *mode);
|
int (*get_lock_mode)(RIG *rig, int *mode);
|
||||||
@ -3321,16 +3321,16 @@ rig_get_parm HAMLIB_PARAMS((RIG *rig,
|
|||||||
|
|
||||||
extern HAMLIB_EXPORT(int)
|
extern HAMLIB_EXPORT(int)
|
||||||
rig_set_conf HAMLIB_PARAMS((RIG *rig,
|
rig_set_conf HAMLIB_PARAMS((RIG *rig,
|
||||||
token_t token,
|
hamlib_token_t token,
|
||||||
const char *val));
|
const char *val));
|
||||||
// deprecating rig_get_conf
|
// deprecating rig_get_conf
|
||||||
extern HAMLIB_EXPORT(int)
|
extern HAMLIB_EXPORT(int)
|
||||||
rig_get_conf HAMLIB_PARAMS((RIG *rig,
|
rig_get_conf HAMLIB_PARAMS((RIG *rig,
|
||||||
token_t token,
|
hamlib_token_t token,
|
||||||
char *val));
|
char *val));
|
||||||
extern HAMLIB_EXPORT(int)
|
extern HAMLIB_EXPORT(int)
|
||||||
rig_get_conf2 HAMLIB_PARAMS((RIG *rig,
|
rig_get_conf2 HAMLIB_PARAMS((RIG *rig,
|
||||||
token_t token,
|
hamlib_token_t token,
|
||||||
char *val,
|
char *val,
|
||||||
int val_len));
|
int val_len));
|
||||||
|
|
||||||
@ -3348,32 +3348,32 @@ rig_reset HAMLIB_PARAMS((RIG *rig,
|
|||||||
extern HAMLIB_EXPORT(int)
|
extern HAMLIB_EXPORT(int)
|
||||||
rig_set_ext_level HAMLIB_PARAMS((RIG *rig,
|
rig_set_ext_level HAMLIB_PARAMS((RIG *rig,
|
||||||
vfo_t vfo,
|
vfo_t vfo,
|
||||||
token_t token,
|
hamlib_token_t token,
|
||||||
value_t val));
|
value_t val));
|
||||||
extern HAMLIB_EXPORT(int)
|
extern HAMLIB_EXPORT(int)
|
||||||
rig_get_ext_level HAMLIB_PARAMS((RIG *rig,
|
rig_get_ext_level HAMLIB_PARAMS((RIG *rig,
|
||||||
vfo_t vfo,
|
vfo_t vfo,
|
||||||
token_t token,
|
hamlib_token_t token,
|
||||||
value_t *val));
|
value_t *val));
|
||||||
|
|
||||||
extern HAMLIB_EXPORT(int)
|
extern HAMLIB_EXPORT(int)
|
||||||
rig_set_ext_func HAMLIB_PARAMS((RIG *rig,
|
rig_set_ext_func HAMLIB_PARAMS((RIG *rig,
|
||||||
vfo_t vfo,
|
vfo_t vfo,
|
||||||
token_t token,
|
hamlib_token_t token,
|
||||||
int status));
|
int status));
|
||||||
extern HAMLIB_EXPORT(int)
|
extern HAMLIB_EXPORT(int)
|
||||||
rig_get_ext_func HAMLIB_PARAMS((RIG *rig,
|
rig_get_ext_func HAMLIB_PARAMS((RIG *rig,
|
||||||
vfo_t vfo,
|
vfo_t vfo,
|
||||||
token_t token,
|
hamlib_token_t token,
|
||||||
int *status));
|
int *status));
|
||||||
|
|
||||||
extern HAMLIB_EXPORT(int)
|
extern HAMLIB_EXPORT(int)
|
||||||
rig_set_ext_parm HAMLIB_PARAMS((RIG *rig,
|
rig_set_ext_parm HAMLIB_PARAMS((RIG *rig,
|
||||||
token_t token,
|
hamlib_token_t token,
|
||||||
value_t val));
|
value_t val));
|
||||||
extern HAMLIB_EXPORT(int)
|
extern HAMLIB_EXPORT(int)
|
||||||
rig_get_ext_parm HAMLIB_PARAMS((RIG *rig,
|
rig_get_ext_parm HAMLIB_PARAMS((RIG *rig,
|
||||||
token_t token,
|
hamlib_token_t token,
|
||||||
value_t *val));
|
value_t *val));
|
||||||
|
|
||||||
extern HAMLIB_EXPORT(int)
|
extern HAMLIB_EXPORT(int)
|
||||||
@ -3401,8 +3401,8 @@ rig_ext_lookup HAMLIB_PARAMS((RIG *rig,
|
|||||||
|
|
||||||
extern HAMLIB_EXPORT(const struct confparams *)
|
extern HAMLIB_EXPORT(const struct confparams *)
|
||||||
rig_ext_lookup_tok HAMLIB_PARAMS((RIG *rig,
|
rig_ext_lookup_tok HAMLIB_PARAMS((RIG *rig,
|
||||||
token_t token));
|
hamlib_token_t token));
|
||||||
extern HAMLIB_EXPORT(token_t)
|
extern HAMLIB_EXPORT(hamlib_token_t)
|
||||||
rig_ext_token_lookup HAMLIB_PARAMS((RIG *rig,
|
rig_ext_token_lookup HAMLIB_PARAMS((RIG *rig,
|
||||||
const char *name));
|
const char *name));
|
||||||
|
|
||||||
@ -3416,7 +3416,7 @@ rig_token_foreach HAMLIB_PARAMS((RIG *rig,
|
|||||||
extern HAMLIB_EXPORT(const struct confparams *)
|
extern HAMLIB_EXPORT(const struct confparams *)
|
||||||
rig_confparam_lookup HAMLIB_PARAMS((RIG *rig,
|
rig_confparam_lookup HAMLIB_PARAMS((RIG *rig,
|
||||||
const char *name));
|
const char *name));
|
||||||
extern HAMLIB_EXPORT(token_t)
|
extern HAMLIB_EXPORT(hamlib_token_t)
|
||||||
rig_token_lookup HAMLIB_PARAMS((RIG *rig,
|
rig_token_lookup HAMLIB_PARAMS((RIG *rig,
|
||||||
const char *name));
|
const char *name));
|
||||||
|
|
||||||
|
@ -54,11 +54,11 @@ public:
|
|||||||
// This method closes the communication port to the rig
|
// This method closes the communication port to the rig
|
||||||
void close(void);
|
void close(void);
|
||||||
|
|
||||||
void setConf(token_t token, const char *val);
|
void setConf(hamlib_token_t token, const char *val);
|
||||||
void setConf(const char *name, const char *val);
|
void setConf(const char *name, const char *val);
|
||||||
void getConf(token_t token, char *val);
|
void getConf(hamlib_token_t token, char *val);
|
||||||
void getConf(const char *name, char *val);
|
void getConf(const char *name, char *val);
|
||||||
token_t tokenLookup(const char *name);
|
hamlib_token_t tokenLookup(const char *name);
|
||||||
|
|
||||||
void setFreq(freq_t freq, vfo_t vfo = RIG_VFO_CURR);
|
void setFreq(freq_t freq, vfo_t vfo = RIG_VFO_CURR);
|
||||||
freq_t getFreq(vfo_t vfo = RIG_VFO_CURR);
|
freq_t getFreq(vfo_t vfo = RIG_VFO_CURR);
|
||||||
|
@ -414,8 +414,8 @@ struct rot_caps {
|
|||||||
int (*rot_open)(ROT *rot); /*!< Pointer to backend implementation of ::rot_open(). */
|
int (*rot_open)(ROT *rot); /*!< Pointer to backend implementation of ::rot_open(). */
|
||||||
int (*rot_close)(ROT *rot); /*!< Pointer to backend implementation of ::rot_close(). */
|
int (*rot_close)(ROT *rot); /*!< Pointer to backend implementation of ::rot_close(). */
|
||||||
|
|
||||||
int (*set_conf)(ROT *rot, token_t token, const char *val); /*!< Pointer to backend implementation of ::rot_set_conf(). */
|
int (*set_conf)(ROT *rot, hamlib_token_t token, const char *val); /*!< Pointer to backend implementation of ::rot_set_conf(). */
|
||||||
int (*get_conf)(ROT *rot, token_t token, char *val); /*!< Pointer to backend implementation of ::rot_get_conf(). */
|
int (*get_conf)(ROT *rot, hamlib_token_t token, char *val); /*!< Pointer to backend implementation of ::rot_get_conf(). */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* General API commands, from most primitive to least.. :()
|
* General API commands, from most primitive to least.. :()
|
||||||
@ -442,19 +442,19 @@ struct rot_caps {
|
|||||||
int (*set_parm)(ROT *rot, setting_t parm, value_t val); /*!< Pointer to backend implementation of ::rot_set_parm(). */
|
int (*set_parm)(ROT *rot, setting_t parm, value_t val); /*!< Pointer to backend implementation of ::rot_set_parm(). */
|
||||||
int (*get_parm)(ROT *rot, setting_t parm, value_t *val); /*!< Pointer to backend implementation of ::rot_get_parm(). */
|
int (*get_parm)(ROT *rot, setting_t parm, value_t *val); /*!< Pointer to backend implementation of ::rot_get_parm(). */
|
||||||
|
|
||||||
int (*set_ext_level)(ROT *rot, token_t token, value_t val); /*!< Pointer to backend implementation of ::rot_set_ext_level(). */
|
int (*set_ext_level)(ROT *rot, hamlib_token_t token, value_t val); /*!< Pointer to backend implementation of ::rot_set_ext_level(). */
|
||||||
int (*get_ext_level)(ROT *rot, token_t token, value_t *val); /*!< Pointer to backend implementation of ::rot_get_ext_level(). */
|
int (*get_ext_level)(ROT *rot, hamlib_token_t token, value_t *val); /*!< Pointer to backend implementation of ::rot_get_ext_level(). */
|
||||||
|
|
||||||
int (*set_ext_func)(ROT *rot, token_t token, int status); /*!< Pointer to backend implementation of ::rot_set_ext_func(). */
|
int (*set_ext_func)(ROT *rot, hamlib_token_t token, int status); /*!< Pointer to backend implementation of ::rot_set_ext_func(). */
|
||||||
int (*get_ext_func)(ROT *rot, token_t token, int *status); /*!< Pointer to backend implementation of ::rot_get_ext_func(). */
|
int (*get_ext_func)(ROT *rot, hamlib_token_t token, int *status); /*!< Pointer to backend implementation of ::rot_get_ext_func(). */
|
||||||
|
|
||||||
int (*set_ext_parm)(ROT *rot, token_t token, value_t val); /*!< Pointer to backend implementation of ::rot_set_ext_parm(). */
|
int (*set_ext_parm)(ROT *rot, hamlib_token_t token, value_t val); /*!< Pointer to backend implementation of ::rot_set_ext_parm(). */
|
||||||
int (*get_ext_parm)(ROT *rot, token_t token, value_t *val); /*!< Pointer to backend implementation of ::rot_get_ext_parm(). */
|
int (*get_ext_parm)(ROT *rot, hamlib_token_t token, value_t *val); /*!< Pointer to backend implementation of ::rot_get_ext_parm(). */
|
||||||
|
|
||||||
int (*get_status)(ROT *rot, rot_status_t *status); /*!< Pointer to backend implementation of ::rot_get_status(). */
|
int (*get_status)(ROT *rot, rot_status_t *status); /*!< Pointer to backend implementation of ::rot_get_status(). */
|
||||||
|
|
||||||
const char *macro_name; /*!< Rotator model macro name. */
|
const char *macro_name; /*!< Rotator model macro name. */
|
||||||
int (*get_conf2)(ROT *rot, token_t token, char *val, int val_len); /*!< Pointer to backend implementation of ::rot_get_conf2(). */
|
int (*get_conf2)(ROT *rot, hamlib_token_t token, char *val, int val_len); /*!< Pointer to backend implementation of ::rot_get_conf2(). */
|
||||||
};
|
};
|
||||||
//! @cond Doxygen_Suppress
|
//! @cond Doxygen_Suppress
|
||||||
#define ROT_MODEL(arg) .rot_model=arg,.macro_name=#arg
|
#define ROT_MODEL(arg) .rot_model=arg,.macro_name=#arg
|
||||||
@ -545,16 +545,16 @@ rot_cleanup HAMLIB_PARAMS((ROT *rot));
|
|||||||
|
|
||||||
extern HAMLIB_EXPORT(int)
|
extern HAMLIB_EXPORT(int)
|
||||||
rot_set_conf HAMLIB_PARAMS((ROT *rot,
|
rot_set_conf HAMLIB_PARAMS((ROT *rot,
|
||||||
token_t token,
|
hamlib_token_t token,
|
||||||
const char *val));
|
const char *val));
|
||||||
extern HAMLIB_EXPORT(int)
|
extern HAMLIB_EXPORT(int)
|
||||||
rot_get_conf HAMLIB_PARAMS((ROT *rot,
|
rot_get_conf HAMLIB_PARAMS((ROT *rot,
|
||||||
token_t token,
|
hamlib_token_t token,
|
||||||
char *val));
|
char *val));
|
||||||
|
|
||||||
extern HAMLIB_EXPORT(int)
|
extern HAMLIB_EXPORT(int)
|
||||||
rot_get_conf2 HAMLIB_PARAMS((ROT *rot,
|
rot_get_conf2 HAMLIB_PARAMS((ROT *rot,
|
||||||
token_t token,
|
hamlib_token_t token,
|
||||||
char *val,
|
char *val,
|
||||||
int val_len));
|
int val_len));
|
||||||
|
|
||||||
@ -636,29 +636,29 @@ rot_get_parm HAMLIB_PARAMS((ROT *rig,
|
|||||||
|
|
||||||
extern HAMLIB_EXPORT(int)
|
extern HAMLIB_EXPORT(int)
|
||||||
rot_set_ext_level HAMLIB_PARAMS((ROT *rig,
|
rot_set_ext_level HAMLIB_PARAMS((ROT *rig,
|
||||||
token_t token,
|
hamlib_token_t token,
|
||||||
value_t val));
|
value_t val));
|
||||||
extern HAMLIB_EXPORT(int)
|
extern HAMLIB_EXPORT(int)
|
||||||
rot_get_ext_level HAMLIB_PARAMS((ROT *rig,
|
rot_get_ext_level HAMLIB_PARAMS((ROT *rig,
|
||||||
token_t token,
|
hamlib_token_t token,
|
||||||
value_t *val));
|
value_t *val));
|
||||||
|
|
||||||
extern HAMLIB_EXPORT(int)
|
extern HAMLIB_EXPORT(int)
|
||||||
rot_set_ext_func HAMLIB_PARAMS((ROT *rig,
|
rot_set_ext_func HAMLIB_PARAMS((ROT *rig,
|
||||||
token_t token,
|
hamlib_token_t token,
|
||||||
int status));
|
int status));
|
||||||
extern HAMLIB_EXPORT(int)
|
extern HAMLIB_EXPORT(int)
|
||||||
rot_get_ext_func HAMLIB_PARAMS((ROT *rig,
|
rot_get_ext_func HAMLIB_PARAMS((ROT *rig,
|
||||||
token_t token,
|
hamlib_token_t token,
|
||||||
int *status));
|
int *status));
|
||||||
|
|
||||||
extern HAMLIB_EXPORT(int)
|
extern HAMLIB_EXPORT(int)
|
||||||
rot_set_ext_parm HAMLIB_PARAMS((ROT *rig,
|
rot_set_ext_parm HAMLIB_PARAMS((ROT *rig,
|
||||||
token_t token,
|
hamlib_token_t token,
|
||||||
value_t val));
|
value_t val));
|
||||||
extern HAMLIB_EXPORT(int)
|
extern HAMLIB_EXPORT(int)
|
||||||
rot_get_ext_parm HAMLIB_PARAMS((ROT *rig,
|
rot_get_ext_parm HAMLIB_PARAMS((ROT *rig,
|
||||||
token_t token,
|
hamlib_token_t token,
|
||||||
value_t *val));
|
value_t *val));
|
||||||
|
|
||||||
extern HAMLIB_EXPORT(const char *)
|
extern HAMLIB_EXPORT(const char *)
|
||||||
@ -701,7 +701,7 @@ extern HAMLIB_EXPORT(const struct confparams *)
|
|||||||
rot_confparam_lookup HAMLIB_PARAMS((ROT *rot,
|
rot_confparam_lookup HAMLIB_PARAMS((ROT *rot,
|
||||||
const char *name));
|
const char *name));
|
||||||
|
|
||||||
extern HAMLIB_EXPORT(token_t)
|
extern HAMLIB_EXPORT(hamlib_token_t)
|
||||||
rot_token_lookup HAMLIB_PARAMS((ROT *rot,
|
rot_token_lookup HAMLIB_PARAMS((ROT *rot,
|
||||||
const char *name));
|
const char *name));
|
||||||
|
|
||||||
@ -730,8 +730,8 @@ rot_ext_lookup HAMLIB_PARAMS((ROT *rot,
|
|||||||
|
|
||||||
extern HAMLIB_EXPORT(const struct confparams *)
|
extern HAMLIB_EXPORT(const struct confparams *)
|
||||||
rot_ext_lookup_tok HAMLIB_PARAMS((ROT *rot,
|
rot_ext_lookup_tok HAMLIB_PARAMS((ROT *rot,
|
||||||
token_t token));
|
hamlib_token_t token));
|
||||||
extern HAMLIB_EXPORT(token_t)
|
extern HAMLIB_EXPORT(hamlib_token_t)
|
||||||
rot_ext_token_lookup HAMLIB_PARAMS((ROT *rot,
|
rot_ext_token_lookup HAMLIB_PARAMS((ROT *rot,
|
||||||
const char *name));
|
const char *name));
|
||||||
|
|
||||||
|
@ -51,11 +51,11 @@ public:
|
|||||||
// This method closes the communication port to the rot
|
// This method closes the communication port to the rot
|
||||||
void close(void);
|
void close(void);
|
||||||
|
|
||||||
void setConf(token_t token, const char *val);
|
void setConf(hamlib_token_t token, const char *val);
|
||||||
void setConf(const char *name, const char *val);
|
void setConf(const char *name, const char *val);
|
||||||
void getConf(token_t token, char *val);
|
void getConf(hamlib_token_t token, char *val);
|
||||||
void getConf(const char *name, char *val);
|
void getConf(const char *name, char *val);
|
||||||
token_t tokenLookup(const char *name);
|
hamlib_token_t tokenLookup(const char *name);
|
||||||
|
|
||||||
void setPosition(azimuth_t az, elevation_t el);
|
void setPosition(azimuth_t az, elevation_t el);
|
||||||
void getPosition(azimuth_t& az, elevation_t& el);
|
void getPosition(azimuth_t& az, elevation_t& el);
|
||||||
|
@ -3254,7 +3254,7 @@ int adat_get_powerstat(RIG *pRig, powerstat_t *status)
|
|||||||
// Function adat_set_conf
|
// Function adat_set_conf
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// Status: IN WORK
|
// Status: IN WORK
|
||||||
int adat_set_conf(RIG *pRig, token_t token, const char *val)
|
int adat_set_conf(RIG *pRig, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
int nRC = RIG_OK;
|
int nRC = RIG_OK;
|
||||||
|
|
||||||
@ -3300,7 +3300,7 @@ int adat_set_conf(RIG *pRig, token_t token, const char *val)
|
|||||||
// Function adat_get_conf
|
// Function adat_get_conf
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// Status: IN WORK
|
// Status: IN WORK
|
||||||
int adat_get_conf(RIG *pRig, token_t token, char *val)
|
int adat_get_conf(RIG *pRig, hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
int nRC = RIG_OK;
|
int nRC = RIG_OK;
|
||||||
|
|
||||||
|
@ -580,8 +580,8 @@ int adat_reset(RIG *, reset_t);
|
|||||||
int adat_open(RIG *);
|
int adat_open(RIG *);
|
||||||
int adat_close(RIG *);
|
int adat_close(RIG *);
|
||||||
|
|
||||||
int adat_set_conf(RIG *, token_t, const char *val);
|
int adat_set_conf(RIG *, hamlib_token_t, const char *val);
|
||||||
int adat_get_conf(RIG *, token_t, char *val);
|
int adat_get_conf(RIG *, hamlib_token_t, char *val);
|
||||||
|
|
||||||
int adat_set_freq(RIG *, vfo_t, freq_t);
|
int adat_set_freq(RIG *, vfo_t, freq_t);
|
||||||
int adat_get_freq(RIG *, vfo_t, freq_t *);
|
int adat_get_freq(RIG *, vfo_t, freq_t *);
|
||||||
|
@ -375,7 +375,7 @@ static int dummy_close(RIG *rig)
|
|||||||
RETURNFUNC(RIG_OK);
|
RETURNFUNC(RIG_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dummy_set_conf(RIG *rig, token_t token, const char *val)
|
static int dummy_set_conf(RIG *rig, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
struct dummy_priv_data *priv;
|
struct dummy_priv_data *priv;
|
||||||
|
|
||||||
@ -404,7 +404,7 @@ static int dummy_set_conf(RIG *rig, token_t token, const char *val)
|
|||||||
RETURNFUNC(RIG_OK);
|
RETURNFUNC(RIG_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dummy_get_conf(RIG *rig, token_t token, char *val)
|
static int dummy_get_conf(RIG *rig, hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
struct dummy_priv_data *priv;
|
struct dummy_priv_data *priv;
|
||||||
|
|
||||||
@ -1374,7 +1374,7 @@ static int dummy_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
|
|||||||
RETURNFUNC(RIG_OK);
|
RETURNFUNC(RIG_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dummy_set_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t val)
|
static int dummy_set_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t val)
|
||||||
{
|
{
|
||||||
struct dummy_priv_data *priv = (struct dummy_priv_data *)rig->state.priv;
|
struct dummy_priv_data *priv = (struct dummy_priv_data *)rig->state.priv;
|
||||||
channel_t *curr = priv->curr;
|
channel_t *curr = priv->curr;
|
||||||
@ -1444,7 +1444,7 @@ static int dummy_set_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t val)
|
|||||||
RETURNFUNC(RIG_OK);
|
RETURNFUNC(RIG_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dummy_get_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t *val)
|
static int dummy_get_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t *val)
|
||||||
{
|
{
|
||||||
struct dummy_priv_data *priv = (struct dummy_priv_data *)rig->state.priv;
|
struct dummy_priv_data *priv = (struct dummy_priv_data *)rig->state.priv;
|
||||||
channel_t *curr = priv->curr;
|
channel_t *curr = priv->curr;
|
||||||
@ -1488,7 +1488,7 @@ static int dummy_get_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t *val)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int dummy_set_ext_func(RIG *rig, vfo_t vfo, token_t token, int status)
|
static int dummy_set_ext_func(RIG *rig, vfo_t vfo, hamlib_token_t token, int status)
|
||||||
{
|
{
|
||||||
struct dummy_priv_data *priv = (struct dummy_priv_data *)rig->state.priv;
|
struct dummy_priv_data *priv = (struct dummy_priv_data *)rig->state.priv;
|
||||||
const struct confparams *cfp;
|
const struct confparams *cfp;
|
||||||
@ -1540,7 +1540,7 @@ static int dummy_set_ext_func(RIG *rig, vfo_t vfo, token_t token, int status)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int dummy_get_ext_func(RIG *rig, vfo_t vfo, token_t token, int *status)
|
static int dummy_get_ext_func(RIG *rig, vfo_t vfo, hamlib_token_t token, int *status)
|
||||||
{
|
{
|
||||||
struct dummy_priv_data *priv = (struct dummy_priv_data *)rig->state.priv;
|
struct dummy_priv_data *priv = (struct dummy_priv_data *)rig->state.priv;
|
||||||
const struct confparams *cfp;
|
const struct confparams *cfp;
|
||||||
@ -1658,7 +1658,7 @@ static int dummy_get_parm(RIG *rig, setting_t parm, value_t *val)
|
|||||||
RETURNFUNC(RIG_OK);
|
RETURNFUNC(RIG_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dummy_set_ext_parm(RIG *rig, token_t token, value_t val)
|
static int dummy_set_ext_parm(RIG *rig, hamlib_token_t token, value_t val)
|
||||||
{
|
{
|
||||||
struct dummy_priv_data *priv = (struct dummy_priv_data *)rig->state.priv;
|
struct dummy_priv_data *priv = (struct dummy_priv_data *)rig->state.priv;
|
||||||
char lstr[64];
|
char lstr[64];
|
||||||
@ -1725,7 +1725,7 @@ static int dummy_set_ext_parm(RIG *rig, token_t token, value_t val)
|
|||||||
RETURNFUNC(RIG_OK);
|
RETURNFUNC(RIG_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dummy_get_ext_parm(RIG *rig, token_t token, value_t *val)
|
static int dummy_get_ext_parm(RIG *rig, hamlib_token_t token, value_t *val)
|
||||||
{
|
{
|
||||||
struct dummy_priv_data *priv = (struct dummy_priv_data *)rig->state.priv;
|
struct dummy_priv_data *priv = (struct dummy_priv_data *)rig->state.priv;
|
||||||
const struct confparams *cfp;
|
const struct confparams *cfp;
|
||||||
|
@ -56,7 +56,7 @@ struct ext_list *alloc_init_ext(const struct confparams *cfp)
|
|||||||
return elp;
|
return elp;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct ext_list *find_ext(struct ext_list *elp, token_t token)
|
struct ext_list *find_ext(struct ext_list *elp, hamlib_token_t token)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -25,6 +25,6 @@
|
|||||||
#include "hamlib/rig.h"
|
#include "hamlib/rig.h"
|
||||||
|
|
||||||
struct ext_list *alloc_init_ext(const struct confparams *cfp);
|
struct ext_list *alloc_init_ext(const struct confparams *cfp);
|
||||||
struct ext_list *find_ext(struct ext_list *elp, token_t token);
|
struct ext_list *find_ext(struct ext_list *elp, hamlib_token_t token);
|
||||||
|
|
||||||
#endif /* _DUMMY_H */
|
#endif /* _DUMMY_H */
|
||||||
|
@ -87,8 +87,8 @@ static int flrig_get_split_freq_mode(RIG *rig, vfo_t vfo, freq_t *freq,
|
|||||||
static int flrig_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val);
|
static int flrig_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val);
|
||||||
static int flrig_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val);
|
static int flrig_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val);
|
||||||
|
|
||||||
static int flrig_set_ext_parm(RIG *rig, token_t token, value_t val);
|
static int flrig_set_ext_parm(RIG *rig, hamlib_token_t token, value_t val);
|
||||||
static int flrig_get_ext_parm(RIG *rig, token_t token, value_t *val);
|
static int flrig_get_ext_parm(RIG *rig, hamlib_token_t token, value_t *val);
|
||||||
|
|
||||||
static const char *flrig_get_info(RIG *rig);
|
static const char *flrig_get_info(RIG *rig);
|
||||||
static int flrig_power2mW(RIG *rig, unsigned int *mwpower, float power,
|
static int flrig_power2mW(RIG *rig, unsigned int *mwpower, float power,
|
||||||
@ -2397,7 +2397,7 @@ static int flrig_mW2power(RIG *rig, float *power, unsigned int mwpower,
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int flrig_set_ext_parm(RIG *rig, token_t token, value_t val)
|
static int flrig_set_ext_parm(RIG *rig, hamlib_token_t token, value_t val)
|
||||||
{
|
{
|
||||||
struct flrig_priv_data *priv = (struct flrig_priv_data *)rig->state.priv;
|
struct flrig_priv_data *priv = (struct flrig_priv_data *)rig->state.priv;
|
||||||
char lstr[64];
|
char lstr[64];
|
||||||
@ -2474,7 +2474,7 @@ static int flrig_set_ext_parm(RIG *rig, token_t token, value_t val)
|
|||||||
RETURNFUNC(RIG_OK);
|
RETURNFUNC(RIG_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int flrig_get_ext_parm(RIG *rig, token_t token, value_t *val)
|
static int flrig_get_ext_parm(RIG *rig, hamlib_token_t token, value_t *val)
|
||||||
{
|
{
|
||||||
struct flrig_priv_data *priv = (struct flrig_priv_data *)rig->state.priv;
|
struct flrig_priv_data *priv = (struct flrig_priv_data *)rig->state.priv;
|
||||||
const struct confparams *cfp;
|
const struct confparams *cfp;
|
||||||
|
@ -201,7 +201,7 @@ static int dummy_rot_close(ROT *rot)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dummy_set_conf(ROT *rot, token_t token, const char *val)
|
static int dummy_set_conf(ROT *rot, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
struct dummy_rot_priv_data *priv;
|
struct dummy_rot_priv_data *priv;
|
||||||
|
|
||||||
@ -226,7 +226,7 @@ static int dummy_set_conf(ROT *rot, token_t token, const char *val)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int dummy_get_conf2(ROT *rot, token_t token, char *val, int val_len)
|
static int dummy_get_conf2(ROT *rot, hamlib_token_t token, char *val, int val_len)
|
||||||
{
|
{
|
||||||
struct dummy_rot_priv_data *priv;
|
struct dummy_rot_priv_data *priv;
|
||||||
|
|
||||||
@ -245,7 +245,7 @@ static int dummy_get_conf2(ROT *rot, token_t token, char *val, int val_len)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dummy_get_conf(ROT *rot, token_t token, char *val)
|
static int dummy_get_conf(ROT *rot, hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
return dummy_get_conf2(rot, token, val, 128);
|
return dummy_get_conf2(rot, token, val, 128);
|
||||||
}
|
}
|
||||||
@ -538,7 +538,7 @@ static int dummy_get_level(ROT *rot, setting_t level, value_t *val)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dummy_set_ext_level(ROT *rot, token_t token, value_t val)
|
static int dummy_set_ext_level(ROT *rot, hamlib_token_t token, value_t val)
|
||||||
{
|
{
|
||||||
struct dummy_rot_priv_data *priv = (struct dummy_rot_priv_data *)
|
struct dummy_rot_priv_data *priv = (struct dummy_rot_priv_data *)
|
||||||
rot->state.priv;
|
rot->state.priv;
|
||||||
@ -607,7 +607,7 @@ static int dummy_set_ext_level(ROT *rot, token_t token, value_t val)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dummy_get_ext_level(ROT *rot, token_t token, value_t *val)
|
static int dummy_get_ext_level(ROT *rot, hamlib_token_t token, value_t *val)
|
||||||
{
|
{
|
||||||
struct dummy_rot_priv_data *priv = (struct dummy_rot_priv_data *)
|
struct dummy_rot_priv_data *priv = (struct dummy_rot_priv_data *)
|
||||||
rot->state.priv;
|
rot->state.priv;
|
||||||
@ -650,7 +650,7 @@ static int dummy_get_ext_level(ROT *rot, token_t token, value_t *val)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int dummy_set_ext_func(ROT *rot, token_t token, int status)
|
static int dummy_set_ext_func(ROT *rot, hamlib_token_t token, int status)
|
||||||
{
|
{
|
||||||
struct dummy_rot_priv_data *priv = (struct dummy_rot_priv_data *)
|
struct dummy_rot_priv_data *priv = (struct dummy_rot_priv_data *)
|
||||||
rot->state.priv;
|
rot->state.priv;
|
||||||
@ -702,7 +702,7 @@ static int dummy_set_ext_func(ROT *rot, token_t token, int status)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int dummy_get_ext_func(ROT *rot, token_t token, int *status)
|
static int dummy_get_ext_func(ROT *rot, hamlib_token_t token, int *status)
|
||||||
{
|
{
|
||||||
struct dummy_rot_priv_data *priv = (struct dummy_rot_priv_data *)
|
struct dummy_rot_priv_data *priv = (struct dummy_rot_priv_data *)
|
||||||
rot->state.priv;
|
rot->state.priv;
|
||||||
@ -795,7 +795,7 @@ static int dummy_get_parm(ROT *rot, setting_t parm, value_t *val)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dummy_set_ext_parm(ROT *rot, token_t token, value_t val)
|
static int dummy_set_ext_parm(ROT *rot, hamlib_token_t token, value_t val)
|
||||||
{
|
{
|
||||||
struct dummy_rot_priv_data *priv = (struct dummy_rot_priv_data *)
|
struct dummy_rot_priv_data *priv = (struct dummy_rot_priv_data *)
|
||||||
rot->state.priv;
|
rot->state.priv;
|
||||||
@ -861,7 +861,7 @@ static int dummy_set_ext_parm(ROT *rot, token_t token, value_t val)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dummy_get_ext_parm(ROT *rot, token_t token, value_t *val)
|
static int dummy_get_ext_parm(ROT *rot, hamlib_token_t token, value_t *val)
|
||||||
{
|
{
|
||||||
struct dummy_rot_priv_data *priv = (struct dummy_rot_priv_data *)
|
struct dummy_rot_priv_data *priv = (struct dummy_rot_priv_data *)
|
||||||
rot->state.priv;
|
rot->state.priv;
|
||||||
|
@ -3583,7 +3583,7 @@ int elad_set_channel(RIG *rig, const channel_t *chan)
|
|||||||
return elad_transaction(rig, buf, NULL, 0);
|
return elad_transaction(rig, buf, NULL, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
int elad_set_ext_parm(RIG *rig, token_t token, value_t val)
|
int elad_set_ext_parm(RIG *rig, hamlib_token_t token, value_t val)
|
||||||
{
|
{
|
||||||
char buf[4];
|
char buf[4];
|
||||||
|
|
||||||
@ -3610,7 +3610,7 @@ int elad_set_ext_parm(RIG *rig, token_t token, value_t val)
|
|||||||
return -RIG_EINVAL;
|
return -RIG_EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
int elad_get_ext_parm(RIG *rig, token_t token, value_t *val)
|
int elad_get_ext_parm(RIG *rig, hamlib_token_t token, value_t *val)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
struct elad_priv_data *priv = rig->state.priv;
|
struct elad_priv_data *priv = rig->state.priv;
|
||||||
|
@ -129,8 +129,8 @@ int elad_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val);
|
|||||||
int elad_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val);
|
int elad_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val);
|
||||||
int elad_set_func(RIG *rig, vfo_t vfo, setting_t func, int status);
|
int elad_set_func(RIG *rig, vfo_t vfo, setting_t func, int status);
|
||||||
int elad_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status);
|
int elad_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status);
|
||||||
int elad_set_ext_parm(RIG *rig, token_t token, value_t val);
|
int elad_set_ext_parm(RIG *rig, hamlib_token_t token, value_t val);
|
||||||
int elad_get_ext_parm(RIG *rig, token_t token, value_t *val);
|
int elad_get_ext_parm(RIG *rig, hamlib_token_t token, value_t *val);
|
||||||
int elad_set_ctcss_tone(RIG *rig, vfo_t vfo, tone_t tone);
|
int elad_set_ctcss_tone(RIG *rig, vfo_t vfo, tone_t tone);
|
||||||
int elad_set_ctcss_tone_tn(RIG *rig, vfo_t vfo, tone_t tone);
|
int elad_set_ctcss_tone_tn(RIG *rig, vfo_t vfo, tone_t tone);
|
||||||
int elad_get_ctcss_tone(RIG *rig, vfo_t vfo, tone_t *tone);
|
int elad_get_ctcss_tone(RIG *rig, vfo_t vfo, tone_t *tone);
|
||||||
|
@ -81,8 +81,8 @@ static int dttsp_set_freq(RIG *rig, vfo_t vfo, freq_t freq);
|
|||||||
static int dttsp_get_freq(RIG *rig, vfo_t vfo, freq_t *freq);
|
static int dttsp_get_freq(RIG *rig, vfo_t vfo, freq_t *freq);
|
||||||
static int dttsp_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width);
|
static int dttsp_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width);
|
||||||
|
|
||||||
static int dttsp_set_conf(RIG *rig, token_t token, const char *val);
|
static int dttsp_set_conf(RIG *rig, hamlib_token_t token, const char *val);
|
||||||
static int dttsp_get_conf(RIG *rig, token_t token, char *val);
|
static int dttsp_get_conf(RIG *rig, hamlib_token_t token, char *val);
|
||||||
static int dttsp_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val);
|
static int dttsp_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val);
|
||||||
static int dttsp_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val);
|
static int dttsp_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val);
|
||||||
static int dttsp_set_func(RIG *rig, vfo_t vfo, setting_t func, int status);
|
static int dttsp_set_func(RIG *rig, vfo_t vfo, setting_t func, int status);
|
||||||
@ -400,7 +400,7 @@ static int fetch_meter(RIG *rig, int *label, float *data, int npts)
|
|||||||
/*
|
/*
|
||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
*/
|
*/
|
||||||
int dttsp_set_conf(RIG *rig, token_t token, const char *val)
|
int dttsp_set_conf(RIG *rig, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
struct dttsp_priv_data *priv;
|
struct dttsp_priv_data *priv;
|
||||||
struct rig_state *rs;
|
struct rig_state *rs;
|
||||||
@ -439,7 +439,7 @@ int dttsp_set_conf(RIG *rig, token_t token, const char *val)
|
|||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
* and val points to a buffer big enough to hold the conf value.
|
* and val points to a buffer big enough to hold the conf value.
|
||||||
*/
|
*/
|
||||||
int dttsp_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
int dttsp_get_conf2(RIG *rig, hamlib_token_t token, char *val, int val_len)
|
||||||
{
|
{
|
||||||
struct dttsp_priv_data *priv;
|
struct dttsp_priv_data *priv;
|
||||||
struct rig_state *rs;
|
struct rig_state *rs;
|
||||||
@ -473,7 +473,7 @@ int dttsp_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int dttsp_get_conf(RIG *rig, token_t token, char *val)
|
int dttsp_get_conf(RIG *rig, hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
return dttsp_get_conf2(rig, token, val, 128);
|
return dttsp_get_conf2(rig, token, val, 128);
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,7 @@ struct gs100_priv_data
|
|||||||
/* Imported Functions --------------------------------------------------------*/
|
/* Imported Functions --------------------------------------------------------*/
|
||||||
|
|
||||||
struct ext_list *alloc_init_ext(const struct confparams *cfp);
|
struct ext_list *alloc_init_ext(const struct confparams *cfp);
|
||||||
struct ext_list *find_ext(struct ext_list *elp, token_t token);
|
struct ext_list *find_ext(struct ext_list *elp, hamlib_token_t token);
|
||||||
|
|
||||||
/* Private function prototypes -----------------------------------------------*/
|
/* Private function prototypes -----------------------------------------------*/
|
||||||
|
|
||||||
@ -166,7 +166,7 @@ static int gs100_close(RIG *rig)
|
|||||||
|
|
||||||
|
|
||||||
/* GS100 transceiver set configuration */
|
/* GS100 transceiver set configuration */
|
||||||
static int gs100_set_conf(RIG *rig, token_t token, const char *val)
|
static int gs100_set_conf(RIG *rig, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
__attribute__((unused)) struct gs100_priv_data *priv = (struct gs100_priv_data
|
__attribute__((unused)) struct gs100_priv_data *priv = (struct gs100_priv_data
|
||||||
*)rig->state.priv;
|
*)rig->state.priv;
|
||||||
@ -192,7 +192,7 @@ static int gs100_set_conf(RIG *rig, token_t token, const char *val)
|
|||||||
|
|
||||||
|
|
||||||
/* GS100 transceiver get configuration */
|
/* GS100 transceiver get configuration */
|
||||||
static int gs100_get_conf(RIG *rig, token_t token, char *val)
|
static int gs100_get_conf(RIG *rig, hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
__attribute__((unused)) struct gs100_priv_data *priv = (struct gs100_priv_data
|
__attribute__((unused)) struct gs100_priv_data *priv = (struct gs100_priv_data
|
||||||
*)rig->state.priv;
|
*)rig->state.priv;
|
||||||
|
@ -327,7 +327,7 @@ int icm710_cleanup(RIG *rig)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int icm710_set_conf(RIG *rig, token_t token, const char *val)
|
int icm710_set_conf(RIG *rig, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
struct icm710_priv_data *priv;
|
struct icm710_priv_data *priv;
|
||||||
|
|
||||||
@ -346,7 +346,7 @@ int icm710_set_conf(RIG *rig, token_t token, const char *val)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int icm710_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
int icm710_get_conf2(RIG *rig, hamlib_token_t token, char *val, int val_len)
|
||||||
{
|
{
|
||||||
struct icm710_priv_data *priv;
|
struct icm710_priv_data *priv;
|
||||||
|
|
||||||
@ -365,7 +365,7 @@ int icm710_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int icm710_get_conf(RIG *rig, token_t token, char *val)
|
int icm710_get_conf(RIG *rig, hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
return icm710_get_conf2(rig, token, val, 128);
|
return icm710_get_conf2(rig, token, val, 128);
|
||||||
}
|
}
|
||||||
|
@ -71,9 +71,9 @@ int icm710_set_func(RIG *rig, vfo_t vfo, setting_t func, int status);
|
|||||||
int icm710_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status);
|
int icm710_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status);
|
||||||
int icm710_set_parm(RIG *rig, setting_t parm, value_t val);
|
int icm710_set_parm(RIG *rig, setting_t parm, value_t val);
|
||||||
int icm710_get_parm(RIG *rig, setting_t parm, value_t *val);
|
int icm710_get_parm(RIG *rig, setting_t parm, value_t *val);
|
||||||
int icm710_set_conf(RIG *rig, token_t token, const char *val);
|
int icm710_set_conf(RIG *rig, hamlib_token_t token, const char *val);
|
||||||
int icm710_get_conf(RIG *rig, token_t token, char *val);
|
int icm710_get_conf(RIG *rig, hamlib_token_t token, char *val);
|
||||||
int icm710_get_conf2(RIG *rig, token_t token, char *val, int val_len);
|
int icm710_get_conf2(RIG *rig, hamlib_token_t token, char *val, int val_len);
|
||||||
|
|
||||||
extern struct rig_caps icm700pro_caps;
|
extern struct rig_caps icm700pro_caps;
|
||||||
extern struct rig_caps icm710_caps;
|
extern struct rig_caps icm710_caps;
|
||||||
|
@ -183,7 +183,7 @@ int icmarine_open(RIG *rig)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
int icmarine_set_conf(RIG *rig, token_t token, const char *val)
|
int icmarine_set_conf(RIG *rig, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
struct icmarine_priv_data *priv;
|
struct icmarine_priv_data *priv;
|
||||||
|
|
||||||
@ -202,7 +202,7 @@ int icmarine_set_conf(RIG *rig, token_t token, const char *val)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int icmarine_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
int icmarine_get_conf2(RIG *rig, hamlib_token_t token, char *val, int val_len)
|
||||||
{
|
{
|
||||||
struct icmarine_priv_data *priv;
|
struct icmarine_priv_data *priv;
|
||||||
|
|
||||||
@ -221,7 +221,7 @@ int icmarine_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int icmarine_get_conf(RIG *rig, token_t token, char *val)
|
int icmarine_get_conf(RIG *rig, hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
return icmarine_get_conf2(rig, token, val, 128);
|
return icmarine_get_conf2(rig, token, val, 128);
|
||||||
}
|
}
|
||||||
|
@ -61,9 +61,9 @@ int icmarine_set_func(RIG *rig, vfo_t vfo, setting_t func, int status);
|
|||||||
int icmarine_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status);
|
int icmarine_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status);
|
||||||
int icmarine_set_parm(RIG *rig, setting_t parm, value_t val);
|
int icmarine_set_parm(RIG *rig, setting_t parm, value_t val);
|
||||||
int icmarine_get_parm(RIG *rig, setting_t parm, value_t *val);
|
int icmarine_get_parm(RIG *rig, setting_t parm, value_t *val);
|
||||||
int icmarine_set_conf(RIG *rig, token_t token, const char *val);
|
int icmarine_set_conf(RIG *rig, hamlib_token_t token, const char *val);
|
||||||
int icmarine_get_conf(RIG *rig, token_t token, char *val);
|
int icmarine_get_conf(RIG *rig, hamlib_token_t token, char *val);
|
||||||
int icmarine_get_conf2(RIG *rig, token_t token, char *val, int val_len);
|
int icmarine_get_conf2(RIG *rig, hamlib_token_t token, char *val, int val_len);
|
||||||
|
|
||||||
extern struct rig_caps icm700pro_caps;
|
extern struct rig_caps icm700pro_caps;
|
||||||
extern struct rig_caps icm710_caps;
|
extern struct rig_caps icm710_caps;
|
||||||
|
@ -151,8 +151,8 @@ static int ic746_get_parm(RIG *rig, setting_t parm, value_t *val);
|
|||||||
static int ic746pro_get_channel(RIG *rig, vfo_t vfo, channel_t *chan,
|
static int ic746pro_get_channel(RIG *rig, vfo_t vfo, channel_t *chan,
|
||||||
int read_only);
|
int read_only);
|
||||||
static int ic746pro_set_channel(RIG *rig, vfo_t vfo, const channel_t *chan);
|
static int ic746pro_set_channel(RIG *rig, vfo_t vfo, const channel_t *chan);
|
||||||
static int ic746pro_set_ext_parm(RIG *rig, token_t token, value_t val);
|
static int ic746pro_set_ext_parm(RIG *rig, hamlib_token_t token, value_t val);
|
||||||
static int ic746pro_get_ext_parm(RIG *rig, token_t token, value_t *val);
|
static int ic746pro_get_ext_parm(RIG *rig, hamlib_token_t token, value_t *val);
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -603,7 +603,7 @@ struct rig_caps ic746pro_caps =
|
|||||||
/*
|
/*
|
||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
*/
|
*/
|
||||||
static int ic746pro_set_ext_parm(RIG *rig, token_t token, value_t val)
|
static int ic746pro_set_ext_parm(RIG *rig, hamlib_token_t token, value_t val)
|
||||||
{
|
{
|
||||||
unsigned char epbuf[MAXFRAMELEN], ackbuf[MAXFRAMELEN];
|
unsigned char epbuf[MAXFRAMELEN], ackbuf[MAXFRAMELEN];
|
||||||
int ack_len, ep_len, val_len;
|
int ack_len, ep_len, val_len;
|
||||||
@ -667,7 +667,7 @@ static int ic746pro_set_ext_parm(RIG *rig, token_t token, value_t val)
|
|||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
* and val points to a buffer big enough to hold the conf value.
|
* and val points to a buffer big enough to hold the conf value.
|
||||||
*/
|
*/
|
||||||
static int ic746pro_get_ext_parm(RIG *rig, token_t token, value_t *val)
|
static int ic746pro_get_ext_parm(RIG *rig, hamlib_token_t token, value_t *val)
|
||||||
{
|
{
|
||||||
const struct confparams *cfp;
|
const struct confparams *cfp;
|
||||||
|
|
||||||
|
@ -528,8 +528,8 @@ static const struct confparams ic756pro2_ext_parms[] =
|
|||||||
#define S_MEM_RTTY_TWNPK 0x562 /* rtty twin peak filter off/on */
|
#define S_MEM_RTTY_TWNPK 0x562 /* rtty twin peak filter off/on */
|
||||||
|
|
||||||
|
|
||||||
static int ic756pro2_set_ext_parm(RIG *rig, token_t token, value_t val);
|
static int ic756pro2_set_ext_parm(RIG *rig, hamlib_token_t token, value_t val);
|
||||||
static int ic756pro2_get_ext_parm(RIG *rig, token_t token, value_t *val);
|
static int ic756pro2_get_ext_parm(RIG *rig, hamlib_token_t token, value_t *val);
|
||||||
|
|
||||||
#define IC756PROII_ALL_RX_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_CWR|RIG_MODE_SSB|RIG_MODE_RTTY|RIG_MODE_RTTYR|RIG_MODE_FM)
|
#define IC756PROII_ALL_RX_MODES (RIG_MODE_AM|RIG_MODE_CW|RIG_MODE_CWR|RIG_MODE_SSB|RIG_MODE_RTTY|RIG_MODE_RTTYR|RIG_MODE_FM)
|
||||||
#define IC756PROII_1HZ_TS_MODES IC756PROII_ALL_RX_MODES
|
#define IC756PROII_1HZ_TS_MODES IC756PROII_ALL_RX_MODES
|
||||||
@ -699,7 +699,7 @@ struct rig_caps ic756pro2_caps =
|
|||||||
/*
|
/*
|
||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
*/
|
*/
|
||||||
static int ic756pro2_set_ext_parm(RIG *rig, token_t token, value_t val)
|
static int ic756pro2_set_ext_parm(RIG *rig, hamlib_token_t token, value_t val)
|
||||||
{
|
{
|
||||||
unsigned char epbuf[MAXFRAMELEN], ackbuf[MAXFRAMELEN];
|
unsigned char epbuf[MAXFRAMELEN], ackbuf[MAXFRAMELEN];
|
||||||
int ack_len, ep_len, val_len;
|
int ack_len, ep_len, val_len;
|
||||||
@ -780,7 +780,7 @@ static int ic756pro2_set_ext_parm(RIG *rig, token_t token, value_t val)
|
|||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
* and val points to a buffer big enough to hold the conf value.
|
* and val points to a buffer big enough to hold the conf value.
|
||||||
*/
|
*/
|
||||||
static int ic756pro2_get_ext_parm(RIG *rig, token_t token, value_t *val)
|
static int ic756pro2_get_ext_parm(RIG *rig, hamlib_token_t token, value_t *val)
|
||||||
{
|
{
|
||||||
const struct confparams *cfp;
|
const struct confparams *cfp;
|
||||||
|
|
||||||
|
@ -4460,7 +4460,7 @@ int icom_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
|
|||||||
RETURNFUNC(RIG_OK);
|
RETURNFUNC(RIG_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
int icom_set_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t val)
|
int icom_set_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t val)
|
||||||
{
|
{
|
||||||
const struct confparams *cfp = rig->caps->extlevels;
|
const struct confparams *cfp = rig->caps->extlevels;
|
||||||
unsigned char cmdbuf[MAXFRAMELEN], ackbuf[MAXFRAMELEN];
|
unsigned char cmdbuf[MAXFRAMELEN], ackbuf[MAXFRAMELEN];
|
||||||
@ -4600,7 +4600,7 @@ int icom_set_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t val)
|
|||||||
RETURNFUNC2(RIG_OK);
|
RETURNFUNC2(RIG_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
int icom_get_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t *val)
|
int icom_get_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t *val)
|
||||||
{
|
{
|
||||||
const struct confparams *cfp = rig->caps->extlevels;
|
const struct confparams *cfp = rig->caps->extlevels;
|
||||||
unsigned char cmdbuf[MAXFRAMELEN], respbuf[MAXFRAMELEN];
|
unsigned char cmdbuf[MAXFRAMELEN], respbuf[MAXFRAMELEN];
|
||||||
@ -4720,7 +4720,7 @@ int icom_get_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t *val)
|
|||||||
RETURNFUNC(RIG_OK);
|
RETURNFUNC(RIG_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
int icom_set_ext_func(RIG *rig, vfo_t vfo, token_t token, int status)
|
int icom_set_ext_func(RIG *rig, vfo_t vfo, hamlib_token_t token, int status)
|
||||||
{
|
{
|
||||||
ENTERFUNC;
|
ENTERFUNC;
|
||||||
|
|
||||||
@ -4746,7 +4746,7 @@ int icom_set_ext_func(RIG *rig, vfo_t vfo, token_t token, int status)
|
|||||||
RETURNFUNC(-RIG_EINVAL);
|
RETURNFUNC(-RIG_EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
int icom_get_ext_func(RIG *rig, vfo_t vfo, token_t token, int *status)
|
int icom_get_ext_func(RIG *rig, vfo_t vfo, hamlib_token_t token, int *status)
|
||||||
{
|
{
|
||||||
ENTERFUNC;
|
ENTERFUNC;
|
||||||
|
|
||||||
@ -4779,7 +4779,7 @@ int icom_get_ext_func(RIG *rig, vfo_t vfo, token_t token, int *status)
|
|||||||
RETURNFUNC(-RIG_EINVAL);
|
RETURNFUNC(-RIG_EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
int icom_set_ext_parm(RIG *rig, token_t token, value_t val)
|
int icom_set_ext_parm(RIG *rig, hamlib_token_t token, value_t val)
|
||||||
{
|
{
|
||||||
ENTERFUNC;
|
ENTERFUNC;
|
||||||
|
|
||||||
@ -4804,7 +4804,7 @@ int icom_set_ext_parm(RIG *rig, token_t token, value_t val)
|
|||||||
RETURNFUNC(-RIG_EINVAL);
|
RETURNFUNC(-RIG_EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
int icom_get_ext_parm(RIG *rig, token_t token, value_t *val)
|
int icom_get_ext_parm(RIG *rig, hamlib_token_t token, value_t *val)
|
||||||
{
|
{
|
||||||
ENTERFUNC;
|
ENTERFUNC;
|
||||||
|
|
||||||
@ -4829,7 +4829,7 @@ int icom_get_ext_parm(RIG *rig, token_t token, value_t *val)
|
|||||||
RETURNFUNC(-RIG_EINVAL);
|
RETURNFUNC(-RIG_EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
int icom_get_ext_cmd(RIG *rig, vfo_t vfo, token_t token, value_t *val)
|
int icom_get_ext_cmd(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t *val)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
@ -4864,7 +4864,7 @@ int icom_get_ext_cmd(RIG *rig, vfo_t vfo, token_t token, value_t *val)
|
|||||||
RETURNFUNC(-RIG_EINVAL);
|
RETURNFUNC(-RIG_EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
int icom_set_ext_cmd(RIG *rig, vfo_t vfo, token_t token, value_t val)
|
int icom_set_ext_cmd(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t val)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
@ -4902,7 +4902,7 @@ int icom_set_ext_cmd(RIG *rig, vfo_t vfo, token_t token, value_t val)
|
|||||||
/*
|
/*
|
||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
*/
|
*/
|
||||||
int icom_set_conf(RIG *rig, token_t token, const char *val)
|
int icom_set_conf(RIG *rig, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
struct icom_priv_data *priv;
|
struct icom_priv_data *priv;
|
||||||
struct rig_state *rs;
|
struct rig_state *rs;
|
||||||
@ -4945,7 +4945,7 @@ int icom_set_conf(RIG *rig, token_t token, const char *val)
|
|||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
* and val points to a buffer big enough to hold the conf value.
|
* and val points to a buffer big enough to hold the conf value.
|
||||||
*/
|
*/
|
||||||
int icom_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
int icom_get_conf2(RIG *rig, hamlib_token_t token, char *val, int val_len)
|
||||||
{
|
{
|
||||||
struct icom_priv_data *priv;
|
struct icom_priv_data *priv;
|
||||||
struct rig_state *rs;
|
struct rig_state *rs;
|
||||||
@ -4972,7 +4972,7 @@ int icom_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
|||||||
RETURNFUNC(RIG_OK);
|
RETURNFUNC(RIG_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
int icom_get_conf(RIG *rig, token_t token, char *val)
|
int icom_get_conf(RIG *rig, hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
return icom_get_conf2(rig, token, val, 128);
|
return icom_get_conf2(rig, token, val, 128);
|
||||||
}
|
}
|
||||||
|
@ -139,7 +139,7 @@ struct cmdparams
|
|||||||
union
|
union
|
||||||
{
|
{
|
||||||
setting_t s; /*!< Level or parm */
|
setting_t s; /*!< Level or parm */
|
||||||
token_t t; /*!< TOKEN_BACKEND */
|
hamlib_token_t t; /*!< TOKEN_BACKEND */
|
||||||
} id;
|
} id;
|
||||||
cmd_param_t cmdparamtype; /*!< CMD_PARAM_TYPE_LEVEL or CMD_PARAM_TYPE_PARM */
|
cmd_param_t cmdparamtype; /*!< CMD_PARAM_TYPE_LEVEL or CMD_PARAM_TYPE_PARM */
|
||||||
int command; /*!< CI-V command */
|
int command; /*!< CI-V command */
|
||||||
@ -368,20 +368,20 @@ int icom_vfo_op(RIG *rig, vfo_t vfo, vfo_op_t op);
|
|||||||
int icom_scan(RIG *rig, vfo_t vfo, scan_t scan, int ch);
|
int icom_scan(RIG *rig, vfo_t vfo, scan_t scan, int ch);
|
||||||
int icom_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val);
|
int icom_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val);
|
||||||
int icom_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val);
|
int icom_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val);
|
||||||
int icom_set_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t val);
|
int icom_set_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t val);
|
||||||
int icom_get_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t *val);
|
int icom_get_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t *val);
|
||||||
int icom_set_func(RIG *rig, vfo_t vfo, setting_t func, int status);
|
int icom_set_func(RIG *rig, vfo_t vfo, setting_t func, int status);
|
||||||
int icom_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status);
|
int icom_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status);
|
||||||
int icom_set_ext_func(RIG *rig, vfo_t vfo, token_t token, int status);
|
int icom_set_ext_func(RIG *rig, vfo_t vfo, hamlib_token_t token, int status);
|
||||||
int icom_get_ext_func(RIG *rig, vfo_t vfo, token_t token, int *status);
|
int icom_get_ext_func(RIG *rig, vfo_t vfo, hamlib_token_t token, int *status);
|
||||||
int icom_set_parm(RIG *rig, setting_t parm, value_t val);
|
int icom_set_parm(RIG *rig, setting_t parm, value_t val);
|
||||||
int icom_get_parm(RIG *rig, setting_t parm, value_t *val);
|
int icom_get_parm(RIG *rig, setting_t parm, value_t *val);
|
||||||
int icom_set_ext_parm(RIG *rig, token_t token, value_t val);
|
int icom_set_ext_parm(RIG *rig, hamlib_token_t token, value_t val);
|
||||||
int icom_get_ext_parm(RIG *rig, token_t token, value_t *val);
|
int icom_get_ext_parm(RIG *rig, hamlib_token_t token, value_t *val);
|
||||||
int icom_set_ext_cmd(RIG *rig, vfo_t vfo, token_t token, value_t val);
|
int icom_set_ext_cmd(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t val);
|
||||||
int icom_get_ext_cmd(RIG *rig, vfo_t vfo, token_t token, value_t *val);
|
int icom_get_ext_cmd(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t *val);
|
||||||
int icom_set_conf(RIG *rig, token_t token, const char *val);
|
int icom_set_conf(RIG *rig, hamlib_token_t token, const char *val);
|
||||||
int icom_get_conf(RIG *rig, token_t token, char *val);
|
int icom_get_conf(RIG *rig, hamlib_token_t token, char *val);
|
||||||
int icom_set_powerstat(RIG *rig, powerstat_t status);
|
int icom_set_powerstat(RIG *rig, powerstat_t status);
|
||||||
int icom_get_powerstat(RIG *rig, powerstat_t *status);
|
int icom_get_powerstat(RIG *rig, powerstat_t *status);
|
||||||
int icom_set_ant(RIG *rig, vfo_t vfo, ant_t ant, value_t option);
|
int icom_set_ant(RIG *rig, vfo_t vfo, ant_t ant, value_t option);
|
||||||
|
@ -294,7 +294,7 @@ int optoscan_recv_dtmf(RIG *rig, vfo_t vfo, char *digits, int *length)
|
|||||||
/*
|
/*
|
||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
*/
|
*/
|
||||||
int optoscan_set_ext_parm(RIG *rig, token_t token, value_t val)
|
int optoscan_set_ext_parm(RIG *rig, hamlib_token_t token, value_t val)
|
||||||
{
|
{
|
||||||
unsigned char epbuf[MAXFRAMELEN], ackbuf[MAXFRAMELEN];
|
unsigned char epbuf[MAXFRAMELEN], ackbuf[MAXFRAMELEN];
|
||||||
int ack_len;
|
int ack_len;
|
||||||
@ -367,7 +367,7 @@ int optoscan_set_ext_parm(RIG *rig, token_t token, value_t val)
|
|||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
* and val points to a buffer big enough to hold the conf value.
|
* and val points to a buffer big enough to hold the conf value.
|
||||||
*/
|
*/
|
||||||
int optoscan_get_ext_parm(RIG *rig, token_t token, value_t *val)
|
int optoscan_get_ext_parm(RIG *rig, hamlib_token_t token, value_t *val)
|
||||||
{
|
{
|
||||||
struct optostat status_block;
|
struct optostat status_block;
|
||||||
int retval;
|
int retval;
|
||||||
|
@ -43,8 +43,8 @@ const char* optoscan_get_info(RIG *rig);
|
|||||||
int optoscan_get_ctcss_tone(RIG *rig, vfo_t vfo, tone_t *tone);
|
int optoscan_get_ctcss_tone(RIG *rig, vfo_t vfo, tone_t *tone);
|
||||||
int optoscan_get_dcs_code(RIG * rig, vfo_t vfo, tone_t *code);
|
int optoscan_get_dcs_code(RIG * rig, vfo_t vfo, tone_t *code);
|
||||||
int optoscan_recv_dtmf(RIG *rig, vfo_t vfo, char *digits, int *length);
|
int optoscan_recv_dtmf(RIG *rig, vfo_t vfo, char *digits, int *length);
|
||||||
int optoscan_set_ext_parm(RIG *rig, token_t token, value_t val);
|
int optoscan_set_ext_parm(RIG *rig, hamlib_token_t token, value_t val);
|
||||||
int optoscan_get_ext_parm(RIG *rig, token_t token, value_t *val);
|
int optoscan_get_ext_parm(RIG *rig, hamlib_token_t token, value_t *val);
|
||||||
int optoscan_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val);
|
int optoscan_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val);
|
||||||
int optoscan_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val);
|
int optoscan_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val);
|
||||||
int optoscan_scan(RIG *rig, vfo_t vfo, scan_t scan, int ch);
|
int optoscan_scan(RIG *rig, vfo_t vfo, scan_t scan, int ch);
|
||||||
|
@ -98,7 +98,7 @@ struct k2_filt_lst_s k2_fwmd_rtty;
|
|||||||
int k2_open(RIG *rig);
|
int k2_open(RIG *rig);
|
||||||
int k2_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width);
|
int k2_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width);
|
||||||
int k2_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width);
|
int k2_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width);
|
||||||
int k2_get_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t *val);
|
int k2_get_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t *val);
|
||||||
|
|
||||||
/* Private function declarations */
|
/* Private function declarations */
|
||||||
int k2_probe_mdfw(RIG *rig, struct kenwood_priv_data *priv);
|
int k2_probe_mdfw(RIG *rig, struct kenwood_priv_data *priv);
|
||||||
@ -489,7 +489,7 @@ int k2_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
|
|||||||
* STRING: val.cs for set, val.s for get
|
* STRING: val.cs for set, val.s for get
|
||||||
* CHECKBUTTON: val.i 0/1
|
* CHECKBUTTON: val.i 0/1
|
||||||
*/
|
*/
|
||||||
int k2_get_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t *val)
|
int k2_get_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t *val)
|
||||||
{
|
{
|
||||||
char buf[KENWOOD_MAX_BUF_LEN];
|
char buf[KENWOOD_MAX_BUF_LEN];
|
||||||
int err;
|
int err;
|
||||||
|
@ -147,8 +147,8 @@ int k3_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width);
|
|||||||
int k3_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width);
|
int k3_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width);
|
||||||
int k3_get_vfo(RIG *rig, vfo_t *vfo);
|
int k3_get_vfo(RIG *rig, vfo_t *vfo);
|
||||||
int k3_set_vfo(RIG *rig, vfo_t vfo);
|
int k3_set_vfo(RIG *rig, vfo_t vfo);
|
||||||
int k3_set_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t val);
|
int k3_set_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t val);
|
||||||
int k3_get_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t *val);
|
int k3_get_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t *val);
|
||||||
int k3_set_rit(RIG *rig, vfo_t vfo, shortfreq_t rit);
|
int k3_set_rit(RIG *rig, vfo_t vfo, shortfreq_t rit);
|
||||||
int k3_set_xit(RIG *rig, vfo_t vfo, shortfreq_t rit);
|
int k3_set_xit(RIG *rig, vfo_t vfo, shortfreq_t rit);
|
||||||
int k3_set_split_mode(RIG *rig, vfo_t vfo, rmode_t tx_mode, pbwidth_t tx_width);
|
int k3_set_split_mode(RIG *rig, vfo_t vfo, rmode_t tx_mode, pbwidth_t tx_width);
|
||||||
@ -1386,7 +1386,7 @@ int k3_get_vfo(RIG *rig, vfo_t *vfo)
|
|||||||
* See Private Elecraft extra levels definitions in elecraft.c and
|
* See Private Elecraft extra levels definitions in elecraft.c and
|
||||||
* private token #define in elecraft.h
|
* private token #define in elecraft.h
|
||||||
*/
|
*/
|
||||||
int k3_set_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t val)
|
int k3_set_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t val)
|
||||||
{
|
{
|
||||||
char buf[10];
|
char buf[10];
|
||||||
|
|
||||||
@ -1435,7 +1435,7 @@ int k3_set_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t val)
|
|||||||
* STRING: val.cs for set, val.s for get
|
* STRING: val.cs for set, val.s for get
|
||||||
* CHECKBUTTON: val.i 0/1
|
* CHECKBUTTON: val.i 0/1
|
||||||
*/
|
*/
|
||||||
int k3_get_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t *val)
|
int k3_get_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t *val)
|
||||||
{
|
{
|
||||||
char buf[KENWOOD_MAX_BUF_LEN];
|
char buf[KENWOOD_MAX_BUF_LEN];
|
||||||
int err;
|
int err;
|
||||||
|
@ -5851,7 +5851,7 @@ int kenwood_set_channel(RIG *rig, vfo_t vfo, const channel_t *chan)
|
|||||||
RETURNFUNC(kenwood_transaction(rig, buf, NULL, 0));
|
RETURNFUNC(kenwood_transaction(rig, buf, NULL, 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
int kenwood_set_ext_parm(RIG *rig, token_t token, value_t val)
|
int kenwood_set_ext_parm(RIG *rig, hamlib_token_t token, value_t val)
|
||||||
{
|
{
|
||||||
struct kenwood_priv_data *priv = rig->state.priv;
|
struct kenwood_priv_data *priv = rig->state.priv;
|
||||||
char buf[4];
|
char buf[4];
|
||||||
@ -5883,7 +5883,7 @@ int kenwood_set_ext_parm(RIG *rig, token_t token, value_t val)
|
|||||||
RETURNFUNC(-RIG_EINVAL);
|
RETURNFUNC(-RIG_EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
int kenwood_get_ext_parm(RIG *rig, token_t token, value_t *val)
|
int kenwood_get_ext_parm(RIG *rig, hamlib_token_t token, value_t *val)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
struct kenwood_priv_data *priv = rig->state.priv;
|
struct kenwood_priv_data *priv = rig->state.priv;
|
||||||
|
@ -227,8 +227,8 @@ int kenwood_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val);
|
|||||||
int kenwood_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val);
|
int kenwood_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val);
|
||||||
int kenwood_set_func(RIG *rig, vfo_t vfo, setting_t func, int status);
|
int kenwood_set_func(RIG *rig, vfo_t vfo, setting_t func, int status);
|
||||||
int kenwood_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status);
|
int kenwood_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status);
|
||||||
int kenwood_set_ext_parm(RIG *rig, token_t token, value_t val);
|
int kenwood_set_ext_parm(RIG *rig, hamlib_token_t token, value_t val);
|
||||||
int kenwood_get_ext_parm(RIG *rig, token_t token, value_t *val);
|
int kenwood_get_ext_parm(RIG *rig, hamlib_token_t token, value_t *val);
|
||||||
int kenwood_set_ctcss_tone(RIG *rig, vfo_t vfo, tone_t tone);
|
int kenwood_set_ctcss_tone(RIG *rig, vfo_t vfo, tone_t tone);
|
||||||
int kenwood_set_ctcss_tone_tn(RIG *rig, vfo_t vfo, tone_t tone);
|
int kenwood_set_ctcss_tone_tn(RIG *rig, vfo_t vfo, tone_t tone);
|
||||||
int kenwood_get_ctcss_tone(RIG *rig, vfo_t vfo, tone_t *tone);
|
int kenwood_get_ctcss_tone(RIG *rig, vfo_t vfo, tone_t *tone);
|
||||||
|
@ -87,9 +87,9 @@ static int tmd710_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status);
|
|||||||
static int tmd710_set_func(RIG *rig, vfo_t vfo, setting_t func, int status);
|
static int tmd710_set_func(RIG *rig, vfo_t vfo, setting_t func, int status);
|
||||||
static int tmd710_get_parm(RIG *rig, setting_t parm, value_t *val);
|
static int tmd710_get_parm(RIG *rig, setting_t parm, value_t *val);
|
||||||
static int tmd710_set_parm(RIG *rig, setting_t parm, value_t val);
|
static int tmd710_set_parm(RIG *rig, setting_t parm, value_t val);
|
||||||
static int tmd710_get_ext_level(RIG *rig, vfo_t vfo, token_t token,
|
static int tmd710_get_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token,
|
||||||
value_t *val);
|
value_t *val);
|
||||||
static int tmd710_set_ext_level(RIG *rig, vfo_t vfo, token_t token,
|
static int tmd710_set_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token,
|
||||||
value_t val);
|
value_t val);
|
||||||
|
|
||||||
#define TMD710_MODES (RIG_MODE_FM|RIG_MODE_FMN|RIG_MODE_AM)
|
#define TMD710_MODES (RIG_MODE_FM|RIG_MODE_FMN|RIG_MODE_AM)
|
||||||
@ -2907,7 +2907,7 @@ int tmd710_set_parm(RIG *rig, setting_t parm, value_t val)
|
|||||||
* Assumes rig!=NULL, rig->state.priv!=NULL, val!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL, val!=NULL
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
int tmd710_get_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t *val)
|
int tmd710_get_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t *val)
|
||||||
{
|
{
|
||||||
int retval;
|
int retval;
|
||||||
tmd710_mu mu_struct;
|
tmd710_mu mu_struct;
|
||||||
@ -2941,7 +2941,7 @@ int tmd710_get_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t *val)
|
|||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
int tmd710_set_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t val)
|
int tmd710_set_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t val)
|
||||||
{
|
{
|
||||||
int retval;
|
int retval;
|
||||||
tmd710_mu mu_struct;
|
tmd710_mu mu_struct;
|
||||||
|
@ -1026,7 +1026,7 @@ static int ts2000_get_rit(RIG *rig, vfo_t vfo, shortfreq_t *rit)
|
|||||||
RETURNFUNC(RIG_OK);
|
RETURNFUNC(RIG_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ts2000_set_ext_func(RIG *rig, vfo_t vfo, token_t token, int status)
|
static int ts2000_set_ext_func(RIG *rig, vfo_t vfo, hamlib_token_t token, int status)
|
||||||
{
|
{
|
||||||
char cmdbuf[20];
|
char cmdbuf[20];
|
||||||
int retval;
|
int retval;
|
||||||
@ -1052,7 +1052,7 @@ static int ts2000_set_ext_func(RIG *rig, vfo_t vfo, token_t token, int status)
|
|||||||
RETURNFUNC(retval);
|
RETURNFUNC(retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ts2000_get_ext_func(RIG *rig, vfo_t vfo, token_t token, int *status)
|
static int ts2000_get_ext_func(RIG *rig, vfo_t vfo, hamlib_token_t token, int *status)
|
||||||
{
|
{
|
||||||
int retval;
|
int retval;
|
||||||
|
|
||||||
@ -1085,7 +1085,7 @@ static int ts2000_get_ext_func(RIG *rig, vfo_t vfo, token_t token, int *status)
|
|||||||
RETURNFUNC(retval);
|
RETURNFUNC(retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ts2000_set_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t val)
|
static int ts2000_set_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t val)
|
||||||
{
|
{
|
||||||
int retval;
|
int retval;
|
||||||
|
|
||||||
@ -1145,7 +1145,7 @@ static int ts2000_set_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t val)
|
|||||||
RETURNFUNC(retval);
|
RETURNFUNC(retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ts2000_get_ext_level(RIG *rig, vfo_t vfo, token_t token,
|
static int ts2000_get_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token,
|
||||||
value_t *val)
|
value_t *val)
|
||||||
{
|
{
|
||||||
int retval;
|
int retval;
|
||||||
|
@ -847,7 +847,7 @@ static int ts480_get_rit(RIG *rig, vfo_t vfo, shortfreq_t *rit)
|
|||||||
RETURNFUNC(RIG_OK);
|
RETURNFUNC(RIG_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ts480_set_ext_func(RIG *rig, vfo_t vfo, token_t token, int status)
|
static int ts480_set_ext_func(RIG *rig, vfo_t vfo, hamlib_token_t token, int status)
|
||||||
{
|
{
|
||||||
char cmdbuf[20];
|
char cmdbuf[20];
|
||||||
int retval;
|
int retval;
|
||||||
@ -900,7 +900,7 @@ static int ts480_set_ext_func(RIG *rig, vfo_t vfo, token_t token, int status)
|
|||||||
RETURNFUNC(retval);
|
RETURNFUNC(retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ts480_get_ext_func(RIG *rig, vfo_t vfo, token_t token, int *status)
|
static int ts480_get_ext_func(RIG *rig, vfo_t vfo, hamlib_token_t token, int *status)
|
||||||
{
|
{
|
||||||
int retval;
|
int retval;
|
||||||
|
|
||||||
@ -945,7 +945,7 @@ static int ts480_get_ext_func(RIG *rig, vfo_t vfo, token_t token, int *status)
|
|||||||
RETURNFUNC(retval);
|
RETURNFUNC(retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ts480_set_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t val)
|
static int ts480_set_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t val)
|
||||||
{
|
{
|
||||||
int retval;
|
int retval;
|
||||||
char cmdbuf[20];
|
char cmdbuf[20];
|
||||||
@ -1035,7 +1035,7 @@ static int ts480_set_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t val)
|
|||||||
RETURNFUNC(retval);
|
RETURNFUNC(retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ts480_get_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t *val)
|
static int ts480_get_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t *val)
|
||||||
{
|
{
|
||||||
int retval;
|
int retval;
|
||||||
int value;
|
int value;
|
||||||
|
@ -1157,7 +1157,7 @@ static int ts590_get_rit(RIG *rig, vfo_t vfo, shortfreq_t *rit)
|
|||||||
RETURNFUNC(RIG_OK);
|
RETURNFUNC(RIG_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ts590_set_ext_func(RIG *rig, vfo_t vfo, token_t token, int status)
|
static int ts590_set_ext_func(RIG *rig, vfo_t vfo, hamlib_token_t token, int status)
|
||||||
{
|
{
|
||||||
char cmdbuf[20];
|
char cmdbuf[20];
|
||||||
int retval;
|
int retval;
|
||||||
@ -1183,7 +1183,7 @@ static int ts590_set_ext_func(RIG *rig, vfo_t vfo, token_t token, int status)
|
|||||||
RETURNFUNC(retval);
|
RETURNFUNC(retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ts590_get_ext_func(RIG *rig, vfo_t vfo, token_t token, int *status)
|
static int ts590_get_ext_func(RIG *rig, vfo_t vfo, hamlib_token_t token, int *status)
|
||||||
{
|
{
|
||||||
int retval;
|
int retval;
|
||||||
|
|
||||||
@ -1216,7 +1216,7 @@ static int ts590_get_ext_func(RIG *rig, vfo_t vfo, token_t token, int *status)
|
|||||||
RETURNFUNC(retval);
|
RETURNFUNC(retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ts590_set_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t val)
|
static int ts590_set_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t val)
|
||||||
{
|
{
|
||||||
int retval;
|
int retval;
|
||||||
|
|
||||||
@ -1435,7 +1435,7 @@ static int ts590_set_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t val)
|
|||||||
RETURNFUNC(retval);
|
RETURNFUNC(retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ts590_get_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t *val)
|
static int ts590_get_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t *val)
|
||||||
{
|
{
|
||||||
int retval;
|
int retval;
|
||||||
int value;
|
int value;
|
||||||
|
@ -80,8 +80,8 @@ static int dds60_init(RIG *rig);
|
|||||||
static int dds60_cleanup(RIG *rig);
|
static int dds60_cleanup(RIG *rig);
|
||||||
static int dds60_open(RIG *rig);
|
static int dds60_open(RIG *rig);
|
||||||
static int dds60_set_freq(RIG *rig, vfo_t vfo, freq_t freq);
|
static int dds60_set_freq(RIG *rig, vfo_t vfo, freq_t freq);
|
||||||
static int dds60_set_conf(RIG *rig, token_t token, const char *val);
|
static int dds60_set_conf(RIG *rig, hamlib_token_t token, const char *val);
|
||||||
static int dds60_get_conf(RIG *rig, token_t token, char *val);
|
static int dds60_get_conf(RIG *rig, hamlib_token_t token, char *val);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The DDS-60 kit exists with a AD9851 chip (60 MHz),
|
* The DDS-60 kit exists with a AD9851 chip (60 MHz),
|
||||||
@ -208,7 +208,7 @@ int dds60_cleanup(RIG *rig)
|
|||||||
/*
|
/*
|
||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
*/
|
*/
|
||||||
int dds60_set_conf(RIG *rig, token_t token, const char *val)
|
int dds60_set_conf(RIG *rig, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
struct dds60_priv_data *priv;
|
struct dds60_priv_data *priv;
|
||||||
float phase;
|
float phase;
|
||||||
@ -246,7 +246,7 @@ int dds60_set_conf(RIG *rig, token_t token, const char *val)
|
|||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
* and val points to a buffer big enough to hold the conf value.
|
* and val points to a buffer big enough to hold the conf value.
|
||||||
*/
|
*/
|
||||||
int dds60_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
int dds60_get_conf2(RIG *rig, hamlib_token_t token, char *val, int val_len)
|
||||||
{
|
{
|
||||||
struct dds60_priv_data *priv;
|
struct dds60_priv_data *priv;
|
||||||
|
|
||||||
@ -277,7 +277,7 @@ int dds60_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int dds60_get_conf(RIG *rig, token_t token, char *val)
|
int dds60_get_conf(RIG *rig, hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
return dds60_get_conf2(rig, token, val, 128);
|
return dds60_get_conf2(rig, token, val, 128);
|
||||||
}
|
}
|
||||||
|
@ -79,8 +79,8 @@ static const struct confparams drt1_cfg_params[] =
|
|||||||
static int drt1_init(RIG *rig);
|
static int drt1_init(RIG *rig);
|
||||||
static int drt1_cleanup(RIG *rig);
|
static int drt1_cleanup(RIG *rig);
|
||||||
static int drt1_set_freq(RIG *rig, vfo_t vfo, freq_t freq);
|
static int drt1_set_freq(RIG *rig, vfo_t vfo, freq_t freq);
|
||||||
static int drt1_set_conf(RIG *rig, token_t token, const char *val);
|
static int drt1_set_conf(RIG *rig, hamlib_token_t token, const char *val);
|
||||||
static int drt1_get_conf(RIG *rig, token_t token, char *val);
|
static int drt1_get_conf(RIG *rig, hamlib_token_t token, char *val);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SAT-Service Schneider DRM tuner.
|
* SAT-Service Schneider DRM tuner.
|
||||||
@ -208,7 +208,7 @@ int drt1_cleanup(RIG *rig)
|
|||||||
/*
|
/*
|
||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
*/
|
*/
|
||||||
int drt1_set_conf(RIG *rig, token_t token, const char *val)
|
int drt1_set_conf(RIG *rig, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
struct drt1_priv_data *priv;
|
struct drt1_priv_data *priv;
|
||||||
|
|
||||||
@ -244,7 +244,7 @@ int drt1_set_conf(RIG *rig, token_t token, const char *val)
|
|||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
* and val points to a buffer big enough to hold the conf value.
|
* and val points to a buffer big enough to hold the conf value.
|
||||||
*/
|
*/
|
||||||
int drt1_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
int drt1_get_conf2(RIG *rig, hamlib_token_t token, char *val, int val_len)
|
||||||
{
|
{
|
||||||
struct drt1_priv_data *priv;
|
struct drt1_priv_data *priv;
|
||||||
|
|
||||||
@ -275,7 +275,7 @@ int drt1_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int drt1_get_conf(RIG *rig, token_t token, char *val)
|
int drt1_get_conf(RIG *rig, hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
return drt1_get_conf2(rig, token, val, 128);
|
return drt1_get_conf2(rig, token, val, 128);
|
||||||
}
|
}
|
||||||
|
@ -65,8 +65,8 @@ static const struct confparams elektor304_cfg_params[] =
|
|||||||
static int elektor304_init(RIG *rig);
|
static int elektor304_init(RIG *rig);
|
||||||
static int elektor304_cleanup(RIG *rig);
|
static int elektor304_cleanup(RIG *rig);
|
||||||
static int elektor304_set_freq(RIG *rig, vfo_t vfo, freq_t freq);
|
static int elektor304_set_freq(RIG *rig, vfo_t vfo, freq_t freq);
|
||||||
static int elektor304_set_conf(RIG *rig, token_t token, const char *val);
|
static int elektor304_set_conf(RIG *rig, hamlib_token_t token, const char *val);
|
||||||
static int elektor304_get_conf(RIG *rig, token_t token, char *val);
|
static int elektor304_get_conf(RIG *rig, hamlib_token_t token, char *val);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The Elektor DRM Receiver 3/04 COM interface is based on the Visual Basic
|
* The Elektor DRM Receiver 3/04 COM interface is based on the Visual Basic
|
||||||
@ -198,7 +198,7 @@ int elektor304_cleanup(RIG *rig)
|
|||||||
/*
|
/*
|
||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
*/
|
*/
|
||||||
int elektor304_set_conf(RIG *rig, token_t token, const char *val)
|
int elektor304_set_conf(RIG *rig, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
struct elektor304_priv_data *priv;
|
struct elektor304_priv_data *priv;
|
||||||
|
|
||||||
@ -226,7 +226,7 @@ int elektor304_set_conf(RIG *rig, token_t token, const char *val)
|
|||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
* and val points to a buffer big enough to hold the conf value.
|
* and val points to a buffer big enough to hold the conf value.
|
||||||
*/
|
*/
|
||||||
int elektor304_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
int elektor304_get_conf2(RIG *rig, hamlib_token_t token, char *val, int val_len)
|
||||||
{
|
{
|
||||||
struct elektor304_priv_data *priv;
|
struct elektor304_priv_data *priv;
|
||||||
|
|
||||||
@ -249,7 +249,7 @@ int elektor304_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int elektor304_get_conf(RIG *rig, token_t token, char *val)
|
int elektor304_get_conf(RIG *rig, hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
return elektor304_get_conf2(rig, token, val, 128);
|
return elektor304_get_conf2(rig, token, val, 128);
|
||||||
}
|
}
|
||||||
|
@ -52,8 +52,8 @@ static int elektor507_get_level(RIG *rig, vfo_t vfo, setting_t level,
|
|||||||
static int elektor507_set_ant(RIG *rig, vfo_t vfo, ant_t ant, value_t option);
|
static int elektor507_set_ant(RIG *rig, vfo_t vfo, ant_t ant, value_t option);
|
||||||
static int elektor507_get_ant(RIG *rig, vfo_t vfo, ant_t dummy, value_t *option,
|
static int elektor507_get_ant(RIG *rig, vfo_t vfo, ant_t dummy, value_t *option,
|
||||||
ant_t *ant_curr, ant_t *ant_tx, ant_t *ant_rx);
|
ant_t *ant_curr, ant_t *ant_tx, ant_t *ant_rx);
|
||||||
static int elektor507_set_conf(RIG *rig, token_t token, const char *val);
|
static int elektor507_set_conf(RIG *rig, hamlib_token_t token, const char *val);
|
||||||
static int elektor507_get_conf(RIG *rig, token_t token, char *val);
|
static int elektor507_get_conf(RIG *rig, hamlib_token_t token, char *val);
|
||||||
|
|
||||||
|
|
||||||
static const char *elektor507_get_info(RIG *rig);
|
static const char *elektor507_get_info(RIG *rig);
|
||||||
@ -641,7 +641,7 @@ struct rig_caps elektor507_caps =
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
int elektor507_set_conf(RIG *rig, token_t token, const char *val)
|
int elektor507_set_conf(RIG *rig, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
struct elektor507_priv_data *priv;
|
struct elektor507_priv_data *priv;
|
||||||
freq_t freq;
|
freq_t freq;
|
||||||
@ -666,7 +666,7 @@ int elektor507_set_conf(RIG *rig, token_t token, const char *val)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int elektor507_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
int elektor507_get_conf2(RIG *rig, hamlib_token_t token, char *val, int val_len)
|
||||||
{
|
{
|
||||||
struct elektor507_priv_data *priv;
|
struct elektor507_priv_data *priv;
|
||||||
|
|
||||||
@ -689,7 +689,7 @@ int elektor507_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int elektor507_get_conf(RIG *rig, token_t token, char *val)
|
int elektor507_get_conf(RIG *rig, hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
return elektor507_get_conf2(rig, token, val, 128);
|
return elektor507_get_conf2(rig, token, val, 128);
|
||||||
}
|
}
|
||||||
|
@ -92,7 +92,7 @@ static int fifisdr_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode,
|
|||||||
static int fifisdr_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val);
|
static int fifisdr_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val);
|
||||||
static int fifisdr_get_level(RIG *rig, vfo_t vfo, setting_t level,
|
static int fifisdr_get_level(RIG *rig, vfo_t vfo, setting_t level,
|
||||||
value_t *val);
|
value_t *val);
|
||||||
static int fifisdr_get_ext_level(RIG *rig, vfo_t vfo, token_t token,
|
static int fifisdr_get_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token,
|
||||||
value_t *val);
|
value_t *val);
|
||||||
|
|
||||||
|
|
||||||
@ -807,7 +807,7 @@ static int fifisdr_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
static int fifisdr_get_ext_level(RIG *rig, vfo_t vfo, token_t token,
|
static int fifisdr_get_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token,
|
||||||
value_t *val)
|
value_t *val)
|
||||||
{
|
{
|
||||||
int ret = RIG_OK;
|
int ret = RIG_OK;
|
||||||
|
@ -60,8 +60,8 @@ static int hiqsdr_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width);
|
|||||||
static int hiqsdr_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt);
|
static int hiqsdr_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt);
|
||||||
static int hiqsdr_set_ant(RIG *rig, vfo_t vfo, ant_t ant, value_t option);
|
static int hiqsdr_set_ant(RIG *rig, vfo_t vfo, ant_t ant, value_t option);
|
||||||
|
|
||||||
static int hiqsdr_set_conf(RIG *rig, token_t token, const char *val);
|
static int hiqsdr_set_conf(RIG *rig, hamlib_token_t token, const char *val);
|
||||||
static int hiqsdr_get_conf(RIG *rig, token_t token, char *val);
|
static int hiqsdr_get_conf(RIG *rig, hamlib_token_t token, char *val);
|
||||||
static int hiqsdr_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val);
|
static int hiqsdr_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val);
|
||||||
static int hiqsdr_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val);
|
static int hiqsdr_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val);
|
||||||
|
|
||||||
@ -225,7 +225,7 @@ static unsigned compute_sample_rate(const struct hiqsdr_priv_data *priv)
|
|||||||
/*
|
/*
|
||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
*/
|
*/
|
||||||
int hiqsdr_set_conf(RIG *rig, token_t token, const char *val)
|
int hiqsdr_set_conf(RIG *rig, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
struct hiqsdr_priv_data *priv;
|
struct hiqsdr_priv_data *priv;
|
||||||
struct rig_state *rs;
|
struct rig_state *rs;
|
||||||
@ -257,7 +257,7 @@ int hiqsdr_set_conf(RIG *rig, token_t token, const char *val)
|
|||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
* and val points to a buffer big enough to hold the conf value.
|
* and val points to a buffer big enough to hold the conf value.
|
||||||
*/
|
*/
|
||||||
int hiqsdr_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
int hiqsdr_get_conf2(RIG *rig, hamlib_token_t token, char *val, int val_len)
|
||||||
{
|
{
|
||||||
struct hiqsdr_priv_data *priv;
|
struct hiqsdr_priv_data *priv;
|
||||||
struct rig_state *rs;
|
struct rig_state *rs;
|
||||||
@ -282,7 +282,7 @@ int hiqsdr_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int hiqsdr_get_conf(RIG *rig, token_t token, char *val)
|
int hiqsdr_get_conf(RIG *rig, hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
return hiqsdr_get_conf2(rig, token, val, 128);
|
return hiqsdr_get_conf2(rig, token, val, 128);
|
||||||
}
|
}
|
||||||
|
@ -64,8 +64,8 @@ static int si570xxxusb_get_freq(RIG *rig, vfo_t vfo, freq_t *freq);
|
|||||||
static int si570xxxusb_set_freq_by_value(RIG *rig, vfo_t vfo, freq_t freq);
|
static int si570xxxusb_set_freq_by_value(RIG *rig, vfo_t vfo, freq_t freq);
|
||||||
static int si570xxxusb_get_freq_by_value(RIG *rig, vfo_t vfo, freq_t *freq);
|
static int si570xxxusb_get_freq_by_value(RIG *rig, vfo_t vfo, freq_t *freq);
|
||||||
static int si570xxxusb_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt);
|
static int si570xxxusb_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt);
|
||||||
static int si570xxxusb_set_conf(RIG *rig, token_t token, const char *val);
|
static int si570xxxusb_set_conf(RIG *rig, hamlib_token_t token, const char *val);
|
||||||
static int si570xxxusb_get_conf(RIG *rig, token_t token, char *val);
|
static int si570xxxusb_get_conf(RIG *rig, hamlib_token_t token, char *val);
|
||||||
static const char *si570xxxusb_get_info(RIG *rig);
|
static const char *si570xxxusb_get_info(RIG *rig);
|
||||||
|
|
||||||
|
|
||||||
@ -862,7 +862,7 @@ int si570xxxusb_cleanup(RIG *rig)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int si570xxxusb_set_conf(RIG *rig, token_t token, const char *val)
|
int si570xxxusb_set_conf(RIG *rig, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
struct si570xxxusb_priv_data *priv;
|
struct si570xxxusb_priv_data *priv;
|
||||||
freq_t freq;
|
freq_t freq;
|
||||||
@ -925,7 +925,7 @@ int si570xxxusb_set_conf(RIG *rig, token_t token, const char *val)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int si570xxxusb_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
int si570xxxusb_get_conf2(RIG *rig, hamlib_token_t token, char *val, int val_len)
|
||||||
{
|
{
|
||||||
struct si570xxxusb_priv_data *priv;
|
struct si570xxxusb_priv_data *priv;
|
||||||
priv = (struct si570xxxusb_priv_data *)rig->state.priv;
|
priv = (struct si570xxxusb_priv_data *)rig->state.priv;
|
||||||
@ -955,7 +955,7 @@ int si570xxxusb_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int si570xxxusb_get_conf(RIG *rig, token_t token, char *val)
|
int si570xxxusb_get_conf(RIG *rig, hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
return si570xxxusb_get_conf2(rig, token, val, 128);
|
return si570xxxusb_get_conf2(rig, token, val, 128);
|
||||||
}
|
}
|
||||||
|
@ -1354,7 +1354,7 @@ pcr_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status)
|
|||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
pcr_set_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t val)
|
pcr_set_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t val)
|
||||||
{
|
{
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s: tok = %s\n", __func__, rig_strlevel(token));
|
rig_debug(RIG_DEBUG_VERBOSE, "%s: tok = %s\n", __func__, rig_strlevel(token));
|
||||||
|
|
||||||
|
@ -104,7 +104,7 @@ int pcr_get_level(RIG *rig, vfo_t vfo, setting_t level, value_t *val);
|
|||||||
|
|
||||||
int pcr_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status);
|
int pcr_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status);
|
||||||
int pcr_set_func(RIG *rig, vfo_t vfo, setting_t func, int status);
|
int pcr_set_func(RIG *rig, vfo_t vfo, setting_t func, int status);
|
||||||
int pcr_set_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t val);
|
int pcr_set_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t val);
|
||||||
|
|
||||||
int pcr_get_ctcss_sql(RIG *rig, vfo_t vfo, tone_t *tone);
|
int pcr_get_ctcss_sql(RIG *rig, vfo_t vfo, tone_t *tone);
|
||||||
int pcr_set_ctcss_sql(RIG *rig, vfo_t vfo, tone_t tone);
|
int pcr_set_ctcss_sql(RIG *rig, vfo_t vfo, tone_t tone);
|
||||||
|
@ -253,7 +253,7 @@ int ra37xx_cleanup(RIG *rig)
|
|||||||
/*
|
/*
|
||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
*/
|
*/
|
||||||
int ra37xx_set_conf2(RIG *rig, token_t token, const char *val, int val_len)
|
int ra37xx_set_conf2(RIG *rig, hamlib_token_t token, const char *val, int val_len)
|
||||||
{
|
{
|
||||||
struct ra37xx_priv_data *priv = (struct ra37xx_priv_data *)rig->state.priv;
|
struct ra37xx_priv_data *priv = (struct ra37xx_priv_data *)rig->state.priv;
|
||||||
int receiver_id;
|
int receiver_id;
|
||||||
@ -278,7 +278,7 @@ int ra37xx_set_conf2(RIG *rig, token_t token, const char *val, int val_len)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ra37xx_set_conf(RIG *rig, token_t token, const char *val)
|
int ra37xx_set_conf(RIG *rig, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
return ra37xx_set_conf2(rig, token, val, 128);
|
return ra37xx_set_conf2(rig, token, val, 128);
|
||||||
}
|
}
|
||||||
@ -288,7 +288,7 @@ int ra37xx_set_conf(RIG *rig, token_t token, const char *val)
|
|||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
* and val points to a buffer big enough to hold the conf value.
|
* and val points to a buffer big enough to hold the conf value.
|
||||||
*/
|
*/
|
||||||
int ra37xx_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
int ra37xx_get_conf2(RIG *rig, hamlib_token_t token, char *val, int val_len)
|
||||||
{
|
{
|
||||||
const struct ra37xx_priv_data *priv = (struct ra37xx_priv_data *)
|
const struct ra37xx_priv_data *priv = (struct ra37xx_priv_data *)
|
||||||
rig->state.priv;
|
rig->state.priv;
|
||||||
@ -306,7 +306,7 @@ int ra37xx_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ra37xx_get_conf(RIG *rig, token_t token, char *val)
|
int ra37xx_get_conf(RIG *rig, hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
return ra37xx_get_conf2(rig, token, val, 128);
|
return ra37xx_get_conf2(rig, token, val, 128);
|
||||||
}
|
}
|
||||||
|
@ -64,8 +64,8 @@ struct ra37xx_priv_data {
|
|||||||
int receiver_id;
|
int receiver_id;
|
||||||
};
|
};
|
||||||
|
|
||||||
int ra37xx_set_conf(RIG *rig, token_t token, const char *val);
|
int ra37xx_set_conf(RIG *rig, hamlib_token_t token, const char *val);
|
||||||
int ra37xx_get_conf(RIG *rig, token_t token, char *val);
|
int ra37xx_get_conf(RIG *rig, hamlib_token_t token, char *val);
|
||||||
int ra37xx_init(RIG *rig);
|
int ra37xx_init(RIG *rig);
|
||||||
int ra37xx_cleanup(RIG *rig);
|
int ra37xx_cleanup(RIG *rig);
|
||||||
int ra37xx_open(RIG *rig);
|
int ra37xx_open(RIG *rig);
|
||||||
|
@ -162,7 +162,7 @@ int racal_cleanup(RIG *rig)
|
|||||||
/*
|
/*
|
||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
*/
|
*/
|
||||||
int racal_set_conf(RIG *rig, token_t token, const char *val)
|
int racal_set_conf(RIG *rig, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
struct racal_priv_data *priv = (struct racal_priv_data *)rig->state.priv;
|
struct racal_priv_data *priv = (struct racal_priv_data *)rig->state.priv;
|
||||||
|
|
||||||
@ -184,7 +184,7 @@ int racal_set_conf(RIG *rig, token_t token, const char *val)
|
|||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
* and val points to a buffer big enough to hold the conf value.
|
* and val points to a buffer big enough to hold the conf value.
|
||||||
*/
|
*/
|
||||||
int racal_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
int racal_get_conf2(RIG *rig, hamlib_token_t token, char *val, int val_len)
|
||||||
{
|
{
|
||||||
const struct racal_priv_data *priv = (struct racal_priv_data *)rig->state.priv;
|
const struct racal_priv_data *priv = (struct racal_priv_data *)rig->state.priv;
|
||||||
|
|
||||||
@ -201,7 +201,7 @@ int racal_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int racal_get_conf(RIG *rig, token_t token, char *val)
|
int racal_get_conf(RIG *rig, hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
return racal_get_conf2(rig, token, val, 128);
|
return racal_get_conf2(rig, token, val, 128);
|
||||||
}
|
}
|
||||||
|
@ -37,8 +37,8 @@ struct racal_priv_data {
|
|||||||
float threshold; /* attenuation */
|
float threshold; /* attenuation */
|
||||||
};
|
};
|
||||||
|
|
||||||
int racal_set_conf(RIG *rig, token_t token, const char *val);
|
int racal_set_conf(RIG *rig, hamlib_token_t token, const char *val);
|
||||||
int racal_get_conf(RIG *rig, token_t token, char *val);
|
int racal_get_conf(RIG *rig, hamlib_token_t token, char *val);
|
||||||
int racal_init(RIG *rig);
|
int racal_init(RIG *rig);
|
||||||
int racal_cleanup(RIG *rig);
|
int racal_cleanup(RIG *rig);
|
||||||
int racal_open(RIG *rig);
|
int racal_open(RIG *rig);
|
||||||
|
@ -67,8 +67,8 @@ static const struct confparams rx331_cfg_params[] =
|
|||||||
|
|
||||||
static int rx331_init(RIG *rig);
|
static int rx331_init(RIG *rig);
|
||||||
static int rx331_cleanup(RIG *rig);
|
static int rx331_cleanup(RIG *rig);
|
||||||
static int rx331_set_conf(RIG *rig, token_t token, const char *val);
|
static int rx331_set_conf(RIG *rig, hamlib_token_t token, const char *val);
|
||||||
static int rx331_get_conf(RIG *rig, token_t token, char *val);
|
static int rx331_get_conf(RIG *rig, hamlib_token_t token, char *val);
|
||||||
static int rx331_open(RIG *rig);
|
static int rx331_open(RIG *rig);
|
||||||
static int rx331_close(RIG *rig);
|
static int rx331_close(RIG *rig);
|
||||||
static int rx331_set_freq(RIG *rig, vfo_t vfo, freq_t freq);
|
static int rx331_set_freq(RIG *rig, vfo_t vfo, freq_t freq);
|
||||||
@ -323,7 +323,7 @@ int rx331_cleanup(RIG *rig)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int rx331_set_conf(RIG *rig, token_t token, const char *val)
|
int rx331_set_conf(RIG *rig, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
struct rx331_priv_data *priv = (struct rx331_priv_data *)rig->state.priv;
|
struct rx331_priv_data *priv = (struct rx331_priv_data *)rig->state.priv;
|
||||||
|
|
||||||
@ -340,7 +340,7 @@ int rx331_set_conf(RIG *rig, token_t token, const char *val)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int rx331_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
int rx331_get_conf2(RIG *rig, hamlib_token_t token, char *val, int val_len)
|
||||||
{
|
{
|
||||||
const struct rx331_priv_data *priv = (struct rx331_priv_data *)rig->state.priv;
|
const struct rx331_priv_data *priv = (struct rx331_priv_data *)rig->state.priv;
|
||||||
|
|
||||||
@ -357,7 +357,7 @@ int rx331_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int rx331_get_conf(RIG *rig, token_t token, char *val)
|
int rx331_get_conf(RIG *rig, hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
return rx331_get_conf2(rig, token, val, 128);
|
return rx331_get_conf2(rig, token, val, 128);
|
||||||
}
|
}
|
||||||
|
@ -542,7 +542,7 @@ static const char *g313_get_info(RIG *rig)
|
|||||||
return info.SerNum;
|
return info.SerNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
int g313_set_conf(RIG *rig, token_t token, const char *val)
|
int g313_set_conf(RIG *rig, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
struct g313_priv_data *priv = (struct g313_priv_data *)rig->state.priv;
|
struct g313_priv_data *priv = (struct g313_priv_data *)rig->state.priv;
|
||||||
|
|
||||||
@ -593,7 +593,7 @@ int g313_set_conf(RIG *rig, token_t token, const char *val)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int g313_get_conf(RIG *rig, token_t token, char *val)
|
int g313_get_conf(RIG *rig, hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
struct g313_priv_data *priv = (struct g313_priv_data *)rig->state.priv;
|
struct g313_priv_data *priv = (struct g313_priv_data *)rig->state.priv;
|
||||||
|
|
||||||
|
@ -253,7 +253,7 @@ int wj_cleanup(RIG *rig)
|
|||||||
/*
|
/*
|
||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
*/
|
*/
|
||||||
int wj_set_conf(RIG *rig, token_t token, const char *val)
|
int wj_set_conf(RIG *rig, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
struct wj_priv_data *priv = (struct wj_priv_data *)rig->state.priv;
|
struct wj_priv_data *priv = (struct wj_priv_data *)rig->state.priv;
|
||||||
|
|
||||||
@ -275,7 +275,7 @@ int wj_set_conf(RIG *rig, token_t token, const char *val)
|
|||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
* and val points to a buffer big enough to hold the conf value.
|
* and val points to a buffer big enough to hold the conf value.
|
||||||
*/
|
*/
|
||||||
int wj_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
int wj_get_conf2(RIG *rig, hamlib_token_t token, char *val, int val_len)
|
||||||
{
|
{
|
||||||
const struct wj_priv_data *priv = (struct wj_priv_data *)rig->state.priv;
|
const struct wj_priv_data *priv = (struct wj_priv_data *)rig->state.priv;
|
||||||
|
|
||||||
@ -292,7 +292,7 @@ int wj_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
int wj_get_conf(RIG *rig, token_t token, char *val)
|
int wj_get_conf(RIG *rig, hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
return wj_get_conf2(rig, token, val, 128);
|
return wj_get_conf2(rig, token, val, 128);
|
||||||
}
|
}
|
||||||
|
@ -42,8 +42,8 @@ struct wj_priv_data {
|
|||||||
value_t rawstr;
|
value_t rawstr;
|
||||||
};
|
};
|
||||||
|
|
||||||
int wj_set_conf(RIG *rig, token_t token, const char *val);
|
int wj_set_conf(RIG *rig, hamlib_token_t token, const char *val);
|
||||||
int wj_get_conf(RIG *rig, token_t token, char *val);
|
int wj_get_conf(RIG *rig, hamlib_token_t token, char *val);
|
||||||
int wj_init(RIG *rig);
|
int wj_init(RIG *rig);
|
||||||
int wj_cleanup(RIG *rig);
|
int wj_cleanup(RIG *rig);
|
||||||
int wj_set_freq(RIG *rig, vfo_t vfo, freq_t freq);
|
int wj_set_freq(RIG *rig, vfo_t vfo, freq_t freq);
|
||||||
|
@ -51,8 +51,8 @@ static int ft757_init(RIG *rig);
|
|||||||
static int ft757_cleanup(RIG *rig);
|
static int ft757_cleanup(RIG *rig);
|
||||||
static int ft757_open(RIG *rig);
|
static int ft757_open(RIG *rig);
|
||||||
|
|
||||||
static int ft757gx_get_conf(RIG *rig, token_t token, char *val);
|
static int ft757gx_get_conf(RIG *rig, hamlib_token_t token, char *val);
|
||||||
static int ft757gx_set_conf(RIG *rig, token_t token, const char *val);
|
static int ft757gx_set_conf(RIG *rig, hamlib_token_t token, const char *val);
|
||||||
|
|
||||||
static int ft757_set_freq(RIG *rig, vfo_t vfo, freq_t freq);
|
static int ft757_set_freq(RIG *rig, vfo_t vfo, freq_t freq);
|
||||||
static int ft757_get_freq(RIG *rig, vfo_t vfo, freq_t *freq);
|
static int ft757_get_freq(RIG *rig, vfo_t vfo, freq_t *freq);
|
||||||
@ -898,7 +898,7 @@ static int rig2mode(RIG *rig, int md, rmode_t *mode, pbwidth_t *width)
|
|||||||
/*
|
/*
|
||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
*/
|
*/
|
||||||
static int ft757gx_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
static int ft757gx_get_conf2(RIG *rig, hamlib_token_t token, char *val, int val_len)
|
||||||
{
|
{
|
||||||
struct ft757_priv_data *priv;
|
struct ft757_priv_data *priv;
|
||||||
struct rig_state *rs;
|
struct rig_state *rs;
|
||||||
@ -924,7 +924,7 @@ static int ft757gx_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ft757gx_get_conf(RIG *rig, token_t token, char *val)
|
static int ft757gx_get_conf(RIG *rig, hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
return ft757gx_get_conf2(rig, token, val, 128);
|
return ft757gx_get_conf2(rig, token, val, 128);
|
||||||
}
|
}
|
||||||
@ -932,7 +932,7 @@ static int ft757gx_get_conf(RIG *rig, token_t token, char *val)
|
|||||||
/*
|
/*
|
||||||
* Assumes rig!=NULL, rig->state.priv!=NULL
|
* Assumes rig!=NULL, rig->state.priv!=NULL
|
||||||
*/
|
*/
|
||||||
static int ft757gx_set_conf(RIG *rig, token_t token, const char *val)
|
static int ft757gx_set_conf(RIG *rig, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
struct ft757_priv_data *priv;
|
struct ft757_priv_data *priv;
|
||||||
struct rig_state *rs;
|
struct rig_state *rs;
|
||||||
|
@ -743,7 +743,7 @@ int newcat_close(RIG *rig)
|
|||||||
* Set Configuration Token for Yaesu Radios
|
* Set Configuration Token for Yaesu Radios
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int newcat_set_conf(RIG *rig, token_t token, const char *val)
|
int newcat_set_conf(RIG *rig, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
int ret = RIG_OK;
|
int ret = RIG_OK;
|
||||||
struct newcat_priv_data *priv;
|
struct newcat_priv_data *priv;
|
||||||
@ -796,7 +796,7 @@ int newcat_set_conf(RIG *rig, token_t token, const char *val)
|
|||||||
* Get Configuration Token for Yaesu Radios
|
* Get Configuration Token for Yaesu Radios
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int newcat_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
int newcat_get_conf2(RIG *rig, hamlib_token_t token, char *val, int val_len)
|
||||||
{
|
{
|
||||||
int ret = RIG_OK;
|
int ret = RIG_OK;
|
||||||
struct newcat_priv_data *priv;
|
struct newcat_priv_data *priv;
|
||||||
@ -6940,12 +6940,12 @@ int newcat_get_parm(RIG *rig, setting_t parm, value_t *val)
|
|||||||
RETURNFUNC(-RIG_ENAVAIL);
|
RETURNFUNC(-RIG_ENAVAIL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int newcat_set_maxpower(RIG *rig, vfo_t vfo, token_t token, float val)
|
static int newcat_set_maxpower(RIG *rig, vfo_t vfo, hamlib_token_t token, float val)
|
||||||
{
|
{
|
||||||
return -RIG_ENIMPL;
|
return -RIG_ENIMPL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int newcat_get_maxpower(RIG *rig, vfo_t vfo, token_t token, value_t *val)
|
static int newcat_get_maxpower(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t *val)
|
||||||
{
|
{
|
||||||
struct newcat_priv_data *priv = (struct newcat_priv_data *)rig->state.priv;
|
struct newcat_priv_data *priv = (struct newcat_priv_data *)rig->state.priv;
|
||||||
int retval;
|
int retval;
|
||||||
@ -7007,7 +7007,7 @@ static int newcat_get_maxpower(RIG *rig, vfo_t vfo, token_t token, value_t *val)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int newcat_set_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t val)
|
int newcat_set_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t val)
|
||||||
{
|
{
|
||||||
struct newcat_priv_data *priv = (struct newcat_priv_data *)rig->state.priv;
|
struct newcat_priv_data *priv = (struct newcat_priv_data *)rig->state.priv;
|
||||||
|
|
||||||
@ -7060,7 +7060,7 @@ int newcat_set_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t val)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int newcat_get_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t *val)
|
int newcat_get_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t *val)
|
||||||
{
|
{
|
||||||
struct newcat_priv_data *priv = (struct newcat_priv_data *)rig->state.priv;
|
struct newcat_priv_data *priv = (struct newcat_priv_data *)rig->state.priv;
|
||||||
char *result;
|
char *result;
|
||||||
@ -7189,7 +7189,7 @@ int newcat_get_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t *val)
|
|||||||
RETURNFUNC(RIG_OK);
|
RETURNFUNC(RIG_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
int newcat_set_ext_parm(RIG *rig, token_t token, value_t val)
|
int newcat_set_ext_parm(RIG *rig, hamlib_token_t token, value_t val)
|
||||||
{
|
{
|
||||||
ENTERFUNC;
|
ENTERFUNC;
|
||||||
|
|
||||||
@ -7197,7 +7197,7 @@ int newcat_set_ext_parm(RIG *rig, token_t token, value_t val)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int newcat_get_ext_parm(RIG *rig, token_t token, value_t *val)
|
int newcat_get_ext_parm(RIG *rig, hamlib_token_t token, value_t *val)
|
||||||
{
|
{
|
||||||
ENTERFUNC;
|
ENTERFUNC;
|
||||||
|
|
||||||
|
@ -172,9 +172,9 @@ int newcat_cleanup(RIG *rig);
|
|||||||
int newcat_open(RIG *rig);
|
int newcat_open(RIG *rig);
|
||||||
int newcat_close(RIG *rig);
|
int newcat_close(RIG *rig);
|
||||||
|
|
||||||
int newcat_set_conf(RIG *rig, token_t token, const char *val);
|
int newcat_set_conf(RIG *rig, hamlib_token_t token, const char *val);
|
||||||
int newcat_get_conf(RIG *rig, token_t token, char *val);
|
int newcat_get_conf(RIG *rig, hamlib_token_t token, char *val);
|
||||||
int newcat_get_conf2(RIG *rig, token_t token, char *val, int val_len);
|
int newcat_get_conf2(RIG *rig, hamlib_token_t token, char *val, int val_len);
|
||||||
|
|
||||||
int newcat_set_freq(RIG *rig, vfo_t vfo, freq_t freq);
|
int newcat_set_freq(RIG *rig, vfo_t vfo, freq_t freq);
|
||||||
int newcat_get_freq(RIG *rig, vfo_t vfo, freq_t *freq);
|
int newcat_get_freq(RIG *rig, vfo_t vfo, freq_t *freq);
|
||||||
@ -233,8 +233,8 @@ rmode_t newcat_rmode(char mode);
|
|||||||
char newcat_modechar(rmode_t rmode);
|
char newcat_modechar(rmode_t rmode);
|
||||||
rmode_t newcat_rmode_width(RIG *rig, vfo_t vfo, char mode, pbwidth_t *width);
|
rmode_t newcat_rmode_width(RIG *rig, vfo_t vfo, char mode, pbwidth_t *width);
|
||||||
|
|
||||||
int newcat_set_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t val);
|
int newcat_set_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t val);
|
||||||
int newcat_get_ext_level(RIG *rig, vfo_t vfo, token_t token, value_t *val);
|
int newcat_get_ext_level(RIG *rig, vfo_t vfo, hamlib_token_t token, value_t *val);
|
||||||
|
|
||||||
int newcat_send_morse(RIG *rig, vfo_t vfo, const char *msg);
|
int newcat_send_morse(RIG *rig, vfo_t vfo, const char *msg);
|
||||||
int newcat_send_voice_mem(RIG *rig, vfo_t vfo, int ch);
|
int newcat_send_voice_mem(RIG *rig, vfo_t vfo, int ch);
|
||||||
|
@ -412,7 +412,7 @@ static const char *easycomm_rot_get_info(ROT *rot)
|
|||||||
* For configuration registers, *val must contain string of register e.g. '0'-'f'
|
* For configuration registers, *val must contain string of register e.g. '0'-'f'
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static int easycomm_rot_get_conf(ROT *rot, token_t token, char *val)
|
static int easycomm_rot_get_conf(ROT *rot, hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
char cmdstr[16], ackbuf[32];
|
char cmdstr[16], ackbuf[32];
|
||||||
int retval;
|
int retval;
|
||||||
@ -484,7 +484,7 @@ static int easycomm_rot_get_conf(ROT *rot, token_t token, char *val)
|
|||||||
* e.g. x,yyyyy
|
* e.g. x,yyyyy
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static int easycomm_rot_set_conf(ROT *rot, token_t token, const char *val)
|
static int easycomm_rot_set_conf(ROT *rot, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
char cmdstr[16];
|
char cmdstr[16];
|
||||||
int retval;
|
int retval;
|
||||||
|
@ -238,12 +238,12 @@ static int flir_close(ROT *rot)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int flir_set_conf(ROT *rot, token_t token, const char *val)
|
static int flir_set_conf(ROT *rot, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
return -RIG_ENIMPL;
|
return -RIG_ENIMPL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int flir_get_conf(ROT *rot, token_t token, char *val)
|
static int flir_get_conf(ROT *rot, hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
return -RIG_ENIMPL;
|
return -RIG_ENIMPL;
|
||||||
}
|
}
|
||||||
@ -459,22 +459,22 @@ static int flir_get_level(ROT *rot, setting_t level, value_t *val)
|
|||||||
return -RIG_ENIMPL;
|
return -RIG_ENIMPL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int flir_set_ext_level(ROT *rot, token_t token, value_t val)
|
static int flir_set_ext_level(ROT *rot, hamlib_token_t token, value_t val)
|
||||||
{
|
{
|
||||||
return -RIG_ENIMPL;
|
return -RIG_ENIMPL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int flir_get_ext_level(ROT *rot, token_t token, value_t *val)
|
static int flir_get_ext_level(ROT *rot, hamlib_token_t token, value_t *val)
|
||||||
{
|
{
|
||||||
return -RIG_ENIMPL;
|
return -RIG_ENIMPL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int flir_set_ext_func(ROT *rot, token_t token, int status)
|
static int flir_set_ext_func(ROT *rot, hamlib_token_t token, int status)
|
||||||
{
|
{
|
||||||
return -RIG_ENIMPL;
|
return -RIG_ENIMPL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int flir_get_ext_func(ROT *rot, token_t token, int *status)
|
static int flir_get_ext_func(ROT *rot, hamlib_token_t token, int *status)
|
||||||
{
|
{
|
||||||
return -RIG_ENIMPL;
|
return -RIG_ENIMPL;
|
||||||
}
|
}
|
||||||
@ -489,12 +489,12 @@ static int flir_get_parm(ROT *rot, setting_t parm, value_t *val)
|
|||||||
return -RIG_ENIMPL;
|
return -RIG_ENIMPL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int flir_set_ext_parm(ROT *rot, token_t token, value_t val)
|
static int flir_set_ext_parm(ROT *rot, hamlib_token_t token, value_t val)
|
||||||
{
|
{
|
||||||
return -RIG_ENIMPL;
|
return -RIG_ENIMPL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int flir_get_ext_parm(ROT *rot, token_t token, value_t *val)
|
static int flir_get_ext_parm(ROT *rot, hamlib_token_t token, value_t *val)
|
||||||
{
|
{
|
||||||
return -RIG_ENIMPL;
|
return -RIG_ENIMPL;
|
||||||
}
|
}
|
||||||
|
@ -404,7 +404,7 @@ grbltrk_rot_get_position(ROT *rot, azimuth_t *az, elevation_t *el)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
grbltrk_rot_set_conf(ROT *rot, token_t token, const char *val)
|
grbltrk_rot_set_conf(ROT *rot, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
uint32_t resp_size, len;
|
uint32_t resp_size, len;
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ static int rotorez_rot_reset(ROT *rot, rot_reset_t reset);
|
|||||||
static int rotorez_rot_stop(ROT *rot);
|
static int rotorez_rot_stop(ROT *rot);
|
||||||
static int dcu1_rot_stop(ROT *rot);
|
static int dcu1_rot_stop(ROT *rot);
|
||||||
|
|
||||||
static int rotorez_rot_set_conf(ROT *rot, token_t token, const char *val);
|
static int rotorez_rot_set_conf(ROT *rot, hamlib_token_t token, const char *val);
|
||||||
|
|
||||||
static const char *rotorez_rot_get_info(ROT *rot);
|
static const char *rotorez_rot_get_info(ROT *rot);
|
||||||
|
|
||||||
@ -1016,7 +1016,7 @@ static int dcu1_rot_stop(ROT *rot)
|
|||||||
* define in rotorez.h and *val of '1' or '0' (enable/disable).
|
* define in rotorez.h and *val of '1' or '0' (enable/disable).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static int rotorez_rot_set_conf(ROT *rot, token_t token, const char *val)
|
static int rotorez_rot_set_conf(ROT *rot, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
char cmdstr[2];
|
char cmdstr[2];
|
||||||
char c;
|
char c;
|
||||||
|
@ -238,7 +238,7 @@ static int spid_rot_cleanup(ROT *rot)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int spid_get_conf2(ROT *rot, token_t token, char *val, int val_len)
|
static int spid_get_conf2(ROT *rot, hamlib_token_t token, char *val, int val_len)
|
||||||
{
|
{
|
||||||
const struct spid_rot2prog_priv_data *priv = (struct spid_rot2prog_priv_data *)
|
const struct spid_rot2prog_priv_data *priv = (struct spid_rot2prog_priv_data *)
|
||||||
rot->state.priv;
|
rot->state.priv;
|
||||||
@ -268,12 +268,12 @@ static int spid_get_conf2(ROT *rot, token_t token, char *val, int val_len)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int spid_get_conf(ROT *rot, token_t token, char *val)
|
static int spid_get_conf(ROT *rot, hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
return spid_get_conf2(rot, token, val, 128);
|
return spid_get_conf2(rot, token, val, 128);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int spid_set_conf(ROT *rot, token_t token, const char *val)
|
static int spid_set_conf(ROT *rot, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
struct spid_rot2prog_priv_data *priv = (struct spid_rot2prog_priv_data *)
|
struct spid_rot2prog_priv_data *priv = (struct spid_rot2prog_priv_data *)
|
||||||
rot->state.priv;
|
rot->state.priv;
|
||||||
|
@ -105,7 +105,7 @@ static const struct confparams ampfrontend_serial_cfg_params[] =
|
|||||||
*
|
*
|
||||||
* \sa frontamp_get_conf()
|
* \sa frontamp_get_conf()
|
||||||
*/
|
*/
|
||||||
int frontamp_set_conf(AMP *amp, token_t token, const char *val)
|
int frontamp_set_conf(AMP *amp, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
struct amp_state *rs;
|
struct amp_state *rs;
|
||||||
int val_i;
|
int val_i;
|
||||||
@ -371,7 +371,7 @@ int frontamp_set_conf(AMP *amp, token_t token, const char *val)
|
|||||||
*
|
*
|
||||||
* \sa frontamp_set_conf()
|
* \sa frontamp_set_conf()
|
||||||
*/
|
*/
|
||||||
int frontamp_get_conf2(AMP *amp, token_t token, char *val, int val_len)
|
int frontamp_get_conf2(AMP *amp, hamlib_token_t token, char *val, int val_len)
|
||||||
{
|
{
|
||||||
struct amp_state *rs;
|
struct amp_state *rs;
|
||||||
const char *s;
|
const char *s;
|
||||||
@ -590,7 +590,7 @@ const struct confparams *HAMLIB_API amp_confparam_lookup(AMP *amp,
|
|||||||
const char *name)
|
const char *name)
|
||||||
{
|
{
|
||||||
const struct confparams *cfp;
|
const struct confparams *cfp;
|
||||||
token_t token;
|
hamlib_token_t token;
|
||||||
|
|
||||||
amp_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
amp_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
||||||
|
|
||||||
@ -647,7 +647,7 @@ const struct confparams *HAMLIB_API amp_confparam_lookup(AMP *amp,
|
|||||||
*
|
*
|
||||||
* \sa amp_confparam_lookup()
|
* \sa amp_confparam_lookup()
|
||||||
*/
|
*/
|
||||||
token_t HAMLIB_API amp_token_lookup(AMP *amp, const char *name)
|
hamlib_token_t HAMLIB_API amp_token_lookup(AMP *amp, const char *name)
|
||||||
{
|
{
|
||||||
const struct confparams *cfp;
|
const struct confparams *cfp;
|
||||||
|
|
||||||
@ -682,7 +682,7 @@ token_t HAMLIB_API amp_token_lookup(AMP *amp, const char *name)
|
|||||||
*
|
*
|
||||||
* \sa amp_get_conf()
|
* \sa amp_get_conf()
|
||||||
*/
|
*/
|
||||||
int HAMLIB_API amp_set_conf(AMP *amp, token_t token, const char *val)
|
int HAMLIB_API amp_set_conf(AMP *amp, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
amp_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
amp_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
||||||
|
|
||||||
@ -738,7 +738,7 @@ int HAMLIB_API amp_set_conf(AMP *amp, token_t token, const char *val)
|
|||||||
*
|
*
|
||||||
* \sa amp_set_conf()
|
* \sa amp_set_conf()
|
||||||
*/
|
*/
|
||||||
int HAMLIB_API amp_get_conf2(AMP *amp, token_t token, char *val, int val_len)
|
int HAMLIB_API amp_get_conf2(AMP *amp, hamlib_token_t token, char *val, int val_len)
|
||||||
{
|
{
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
||||||
|
|
||||||
@ -760,7 +760,7 @@ int HAMLIB_API amp_get_conf2(AMP *amp, token_t token, char *val, int val_len)
|
|||||||
return amp->caps->get_conf(amp, token, val);
|
return amp->caps->get_conf(amp, token, val);
|
||||||
}
|
}
|
||||||
|
|
||||||
int HAMLIB_API amp_get_conf(AMP *amp, token_t token, char *val)
|
int HAMLIB_API amp_get_conf(AMP *amp, hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
return amp_get_conf2(amp, token, val, 128);
|
return amp_get_conf2(amp, token, val, 128);
|
||||||
}
|
}
|
||||||
|
@ -24,8 +24,8 @@
|
|||||||
|
|
||||||
#include <hamlib/amplifier.h>
|
#include <hamlib/amplifier.h>
|
||||||
|
|
||||||
int frontamp_set_conf(AMP *amp, token_t token, const char *val);
|
int frontamp_set_conf(AMP *amp, hamlib_token_t token, const char *val);
|
||||||
static int frontamp_get_conf2(AMP *amp, token_t token, char *val, int val_len);
|
static int frontamp_get_conf2(AMP *amp, hamlib_token_t token, char *val, int val_len);
|
||||||
|
|
||||||
|
|
||||||
#endif /* _AMP_CONF_H */
|
#endif /* _AMP_CONF_H */
|
||||||
|
@ -830,7 +830,7 @@ int HAMLIB_API amp_get_level(AMP *amp, setting_t level, value_t *val)
|
|||||||
*
|
*
|
||||||
* \sa amp_set_level()
|
* \sa amp_set_level()
|
||||||
*/
|
*/
|
||||||
int HAMLIB_API amp_set_ext_level(AMP *amp, token_t level, value_t val)
|
int HAMLIB_API amp_set_ext_level(AMP *amp, hamlib_token_t level, value_t val)
|
||||||
{
|
{
|
||||||
amp_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
amp_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
||||||
|
|
||||||
@ -865,7 +865,7 @@ int HAMLIB_API amp_set_ext_level(AMP *amp, token_t level, value_t val)
|
|||||||
*
|
*
|
||||||
* \sa amp_get_level()
|
* \sa amp_get_level()
|
||||||
*/
|
*/
|
||||||
int HAMLIB_API amp_get_ext_level(AMP *amp, token_t level, value_t *val)
|
int HAMLIB_API amp_get_ext_level(AMP *amp, hamlib_token_t level, value_t *val)
|
||||||
{
|
{
|
||||||
amp_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
amp_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
||||||
|
|
||||||
|
14
src/conf.c
14
src/conf.c
@ -235,7 +235,7 @@ static const struct confparams frontend_serial_cfg_params[] =
|
|||||||
* frontend_set_conf
|
* frontend_set_conf
|
||||||
* assumes rig!=NULL, val!=NULL
|
* assumes rig!=NULL, val!=NULL
|
||||||
*/
|
*/
|
||||||
static int frontend_set_conf(RIG *rig, token_t token, const char *val)
|
static int frontend_set_conf(RIG *rig, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
struct rig_caps *caps;
|
struct rig_caps *caps;
|
||||||
struct rig_state *rs;
|
struct rig_state *rs;
|
||||||
@ -832,7 +832,7 @@ static int frontend_set_conf(RIG *rig, token_t token, const char *val)
|
|||||||
* frontend_get_conf
|
* frontend_get_conf
|
||||||
* assumes rig!=NULL, val!=NULL
|
* assumes rig!=NULL, val!=NULL
|
||||||
*/
|
*/
|
||||||
static int frontend_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
static int frontend_get_conf2(RIG *rig, hamlib_token_t token, char *val, int val_len)
|
||||||
{
|
{
|
||||||
struct rig_state *rs;
|
struct rig_state *rs;
|
||||||
const char *s = "";
|
const char *s = "";
|
||||||
@ -1292,7 +1292,7 @@ const struct confparams *HAMLIB_API rig_confparam_lookup(RIG *rig,
|
|||||||
const char *name)
|
const char *name)
|
||||||
{
|
{
|
||||||
const struct confparams *cfp;
|
const struct confparams *cfp;
|
||||||
token_t token;
|
hamlib_token_t token;
|
||||||
|
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called for %s\n", __func__, name);
|
rig_debug(RIG_DEBUG_VERBOSE, "%s called for %s\n", __func__, name);
|
||||||
|
|
||||||
@ -1344,7 +1344,7 @@ const struct confparams *HAMLIB_API rig_confparam_lookup(RIG *rig,
|
|||||||
*
|
*
|
||||||
* \return the token id if found, otherwise RIG_CONF_END
|
* \return the token id if found, otherwise RIG_CONF_END
|
||||||
*/
|
*/
|
||||||
token_t HAMLIB_API rig_token_lookup(RIG *rig, const char *name)
|
hamlib_token_t HAMLIB_API rig_token_lookup(RIG *rig, const char *name)
|
||||||
{
|
{
|
||||||
const struct confparams *cfp;
|
const struct confparams *cfp;
|
||||||
|
|
||||||
@ -1375,7 +1375,7 @@ token_t HAMLIB_API rig_token_lookup(RIG *rig, const char *name)
|
|||||||
*
|
*
|
||||||
* \sa rig_get_conf()
|
* \sa rig_get_conf()
|
||||||
*/
|
*/
|
||||||
int HAMLIB_API rig_set_conf(RIG *rig, token_t token, const char *val)
|
int HAMLIB_API rig_set_conf(RIG *rig, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
||||||
|
|
||||||
@ -1436,12 +1436,12 @@ int HAMLIB_API rig_set_conf(RIG *rig, token_t token, const char *val)
|
|||||||
*
|
*
|
||||||
* \sa rig_set_conf()
|
* \sa rig_set_conf()
|
||||||
*/
|
*/
|
||||||
int HAMLIB_API rig_get_conf(RIG *rig, token_t token, char *val)
|
int HAMLIB_API rig_get_conf(RIG *rig, hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
return rig_get_conf2(rig, token, val, 128);
|
return rig_get_conf2(rig, token, val, 128);
|
||||||
}
|
}
|
||||||
|
|
||||||
int HAMLIB_API rig_get_conf2(RIG *rig, token_t token, char *val, int val_len)
|
int HAMLIB_API rig_get_conf2(RIG *rig, hamlib_token_t token, char *val, int val_len)
|
||||||
{
|
{
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
|
|
||||||
#include "token.h"
|
#include "token.h"
|
||||||
|
|
||||||
static int rig_has_ext_token(RIG *rig, token_t token)
|
static int rig_has_ext_token(RIG *rig, hamlib_token_t token)
|
||||||
{
|
{
|
||||||
const int *ext_tokens = rig->caps->ext_tokens;
|
const int *ext_tokens = rig->caps->ext_tokens;
|
||||||
int i;
|
int i;
|
||||||
@ -276,7 +276,7 @@ const struct confparams *HAMLIB_API rig_ext_lookup(RIG *rig, const char *name)
|
|||||||
*
|
*
|
||||||
* Returns NULL if nothing found
|
* Returns NULL if nothing found
|
||||||
*/
|
*/
|
||||||
const struct confparams *HAMLIB_API rig_ext_lookup_tok(RIG *rig, token_t token)
|
const struct confparams *HAMLIB_API rig_ext_lookup_tok(RIG *rig, hamlib_token_t token)
|
||||||
{
|
{
|
||||||
const struct confparams *cfp;
|
const struct confparams *cfp;
|
||||||
|
|
||||||
@ -320,7 +320,7 @@ const struct confparams *HAMLIB_API rig_ext_lookup_tok(RIG *rig, token_t token)
|
|||||||
* \param name
|
* \param name
|
||||||
* \brief Simple lookup returning token id associated with name
|
* \brief Simple lookup returning token id associated with name
|
||||||
*/
|
*/
|
||||||
token_t HAMLIB_API rig_ext_token_lookup(RIG *rig, const char *name)
|
hamlib_token_t HAMLIB_API rig_ext_token_lookup(RIG *rig, const char *name)
|
||||||
{
|
{
|
||||||
const struct confparams *cfp;
|
const struct confparams *cfp;
|
||||||
|
|
||||||
|
@ -217,7 +217,7 @@ const struct confparams *HAMLIB_API amp_ext_lookup(AMP *amp, const char *name)
|
|||||||
* \return A pointer to the containing #confparams structure member or NULL if
|
* \return A pointer to the containing #confparams structure member or NULL if
|
||||||
* nothing found or if \a amp is NULL or inconsistent.
|
* nothing found or if \a amp is NULL or inconsistent.
|
||||||
*/
|
*/
|
||||||
const struct confparams *HAMLIB_API amp_ext_lookup_tok(AMP *amp, token_t token)
|
const struct confparams *HAMLIB_API amp_ext_lookup_tok(AMP *amp, hamlib_token_t token)
|
||||||
{
|
{
|
||||||
const struct confparams *cfp;
|
const struct confparams *cfp;
|
||||||
|
|
||||||
@ -262,7 +262,7 @@ const struct confparams *HAMLIB_API amp_ext_lookup_tok(AMP *amp, token_t token)
|
|||||||
*
|
*
|
||||||
* \sa amp_ext_lookup()
|
* \sa amp_ext_lookup()
|
||||||
*/
|
*/
|
||||||
token_t HAMLIB_API amp_ext_token_lookup(AMP *amp, const char *name)
|
hamlib_token_t HAMLIB_API amp_ext_token_lookup(AMP *amp, const char *name)
|
||||||
{
|
{
|
||||||
const struct confparams *cfp;
|
const struct confparams *cfp;
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ static const struct confparams rotfrontend_serial_cfg_params[] =
|
|||||||
*
|
*
|
||||||
* \sa frontrot_get_conf()
|
* \sa frontrot_get_conf()
|
||||||
*/
|
*/
|
||||||
int frontrot_set_conf(ROT *rot, token_t token, const char *val)
|
int frontrot_set_conf(ROT *rot, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
struct rot_state *rs;
|
struct rot_state *rs;
|
||||||
int val_i;
|
int val_i;
|
||||||
@ -410,7 +410,7 @@ int frontrot_set_conf(ROT *rot, token_t token, const char *val)
|
|||||||
*
|
*
|
||||||
* \sa frontrot_set_conf()
|
* \sa frontrot_set_conf()
|
||||||
*/
|
*/
|
||||||
int frontrot_get_conf(ROT *rot, token_t token, char *val, int val_len)
|
int frontrot_get_conf(ROT *rot, hamlib_token_t token, char *val, int val_len)
|
||||||
{
|
{
|
||||||
struct rot_state *rs;
|
struct rot_state *rs;
|
||||||
const char *s;
|
const char *s;
|
||||||
@ -650,7 +650,7 @@ const struct confparams *HAMLIB_API rot_confparam_lookup(ROT *rot,
|
|||||||
const char *name)
|
const char *name)
|
||||||
{
|
{
|
||||||
const struct confparams *cfp;
|
const struct confparams *cfp;
|
||||||
token_t token;
|
hamlib_token_t token;
|
||||||
|
|
||||||
//rot_debug(RIG_DEBUG_VERBOSE, "%s called lookup=%s\n", __func__, name);
|
//rot_debug(RIG_DEBUG_VERBOSE, "%s called lookup=%s\n", __func__, name);
|
||||||
|
|
||||||
@ -711,7 +711,7 @@ const struct confparams *HAMLIB_API rot_confparam_lookup(ROT *rot,
|
|||||||
*
|
*
|
||||||
* \sa rot_confparam_lookup()
|
* \sa rot_confparam_lookup()
|
||||||
*/
|
*/
|
||||||
token_t HAMLIB_API rot_token_lookup(ROT *rot, const char *name)
|
hamlib_token_t HAMLIB_API rot_token_lookup(ROT *rot, const char *name)
|
||||||
{
|
{
|
||||||
const struct confparams *cfp;
|
const struct confparams *cfp;
|
||||||
|
|
||||||
@ -746,7 +746,7 @@ token_t HAMLIB_API rot_token_lookup(ROT *rot, const char *name)
|
|||||||
*
|
*
|
||||||
* \sa rot_get_conf()
|
* \sa rot_get_conf()
|
||||||
*/
|
*/
|
||||||
int HAMLIB_API rot_set_conf(ROT *rot, token_t token, const char *val)
|
int HAMLIB_API rot_set_conf(ROT *rot, hamlib_token_t token, const char *val)
|
||||||
{
|
{
|
||||||
rot_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
rot_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
||||||
|
|
||||||
@ -803,15 +803,15 @@ int HAMLIB_API rot_set_conf(ROT *rot, token_t token, const char *val)
|
|||||||
* \sa rot_set_conf()
|
* \sa rot_set_conf()
|
||||||
*/
|
*/
|
||||||
// This call will change in Hamlib 5.0 to pass val_len in
|
// This call will change in Hamlib 5.0 to pass val_len in
|
||||||
//int HAMLIB_API rot_get_conf(ROT *rot, token_t token, char *val, int val_len)
|
//int HAMLIB_API rot_get_conf(ROT *rot, hamlib_token_t token, char *val, int val_len)
|
||||||
|
|
||||||
int HAMLIB_API rot_get_conf(ROT *rot, token_t token, char *val)
|
int HAMLIB_API rot_get_conf(ROT *rot, hamlib_token_t token, char *val)
|
||||||
{
|
{
|
||||||
// 128 is the default size we are called with
|
// 128 is the default size we are called with
|
||||||
return rot_get_conf2(rot, token, val, 128);
|
return rot_get_conf2(rot, token, val, 128);
|
||||||
}
|
}
|
||||||
|
|
||||||
int HAMLIB_API rot_get_conf2(ROT *rot, token_t token, char *val, int val_len)
|
int HAMLIB_API rot_get_conf2(ROT *rot, hamlib_token_t token, char *val, int val_len)
|
||||||
{
|
{
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
||||||
|
|
||||||
|
@ -24,8 +24,8 @@
|
|||||||
|
|
||||||
#include <hamlib/rotator.h>
|
#include <hamlib/rotator.h>
|
||||||
|
|
||||||
int frontrot_set_conf(ROT *rot, token_t token, const char *val);
|
int frontrot_set_conf(ROT *rot, hamlib_token_t token, const char *val);
|
||||||
int frontrot_get_conf(ROT *rot, token_t token, char *val, int val_len);
|
int frontrot_get_conf(ROT *rot, hamlib_token_t token, char *val, int val_len);
|
||||||
|
|
||||||
|
|
||||||
#endif /* _ROT_CONF_H */
|
#endif /* _ROT_CONF_H */
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
|
|
||||||
#include "token.h"
|
#include "token.h"
|
||||||
|
|
||||||
static int rot_has_ext_token(ROT *rot, token_t token)
|
static int rot_has_ext_token(ROT *rot, hamlib_token_t token)
|
||||||
{
|
{
|
||||||
const int *ext_tokens = rot->caps->ext_tokens;
|
const int *ext_tokens = rot->caps->ext_tokens;
|
||||||
int i;
|
int i;
|
||||||
@ -312,7 +312,7 @@ const struct confparams *HAMLIB_API rot_ext_lookup(ROT *rot, const char *name)
|
|||||||
* \return A pointer to the containing #confparams structure member or NULL if
|
* \return A pointer to the containing #confparams structure member or NULL if
|
||||||
* nothing found or if \a rot is NULL or inconsistent.
|
* nothing found or if \a rot is NULL or inconsistent.
|
||||||
*/
|
*/
|
||||||
const struct confparams *HAMLIB_API rot_ext_lookup_tok(ROT *rot, token_t token)
|
const struct confparams *HAMLIB_API rot_ext_lookup_tok(ROT *rot, hamlib_token_t token)
|
||||||
{
|
{
|
||||||
const struct confparams *cfp;
|
const struct confparams *cfp;
|
||||||
|
|
||||||
@ -365,7 +365,7 @@ const struct confparams *HAMLIB_API rot_ext_lookup_tok(ROT *rot, token_t token)
|
|||||||
*
|
*
|
||||||
* \sa rot_ext_lookup()
|
* \sa rot_ext_lookup()
|
||||||
*/
|
*/
|
||||||
token_t HAMLIB_API rot_ext_token_lookup(ROT *rot, const char *name)
|
hamlib_token_t HAMLIB_API rot_ext_token_lookup(ROT *rot, const char *name)
|
||||||
{
|
{
|
||||||
const struct confparams *cfp;
|
const struct confparams *cfp;
|
||||||
|
|
||||||
|
@ -554,7 +554,7 @@ int HAMLIB_API rot_get_func(ROT *rot, setting_t func, int *status)
|
|||||||
*
|
*
|
||||||
* \sa rot_get_ext_level()
|
* \sa rot_get_ext_level()
|
||||||
*/
|
*/
|
||||||
int HAMLIB_API rot_set_ext_level(ROT *rot, token_t token, value_t val)
|
int HAMLIB_API rot_set_ext_level(ROT *rot, hamlib_token_t token, value_t val)
|
||||||
{
|
{
|
||||||
const struct rot_caps *caps;
|
const struct rot_caps *caps;
|
||||||
|
|
||||||
@ -594,7 +594,7 @@ int HAMLIB_API rot_set_ext_level(ROT *rot, token_t token, value_t val)
|
|||||||
*
|
*
|
||||||
* \sa rot_set_ext_level()
|
* \sa rot_set_ext_level()
|
||||||
*/
|
*/
|
||||||
int HAMLIB_API rot_get_ext_level(ROT *rot, token_t token, value_t *val)
|
int HAMLIB_API rot_get_ext_level(ROT *rot, hamlib_token_t token, value_t *val)
|
||||||
{
|
{
|
||||||
const struct rot_caps *caps;
|
const struct rot_caps *caps;
|
||||||
|
|
||||||
@ -638,7 +638,7 @@ int HAMLIB_API rot_get_ext_level(ROT *rot, token_t token, value_t *val)
|
|||||||
*
|
*
|
||||||
* \sa rot_get_ext_func()
|
* \sa rot_get_ext_func()
|
||||||
*/
|
*/
|
||||||
int HAMLIB_API rot_set_ext_func(ROT *rot, token_t token, int status)
|
int HAMLIB_API rot_set_ext_func(ROT *rot, hamlib_token_t token, int status)
|
||||||
{
|
{
|
||||||
const struct rot_caps *caps;
|
const struct rot_caps *caps;
|
||||||
|
|
||||||
@ -682,7 +682,7 @@ int HAMLIB_API rot_set_ext_func(ROT *rot, token_t token, int status)
|
|||||||
*
|
*
|
||||||
* \sa rot_set_ext_func()
|
* \sa rot_set_ext_func()
|
||||||
*/
|
*/
|
||||||
int HAMLIB_API rot_get_ext_func(ROT *rot, token_t token, int *status)
|
int HAMLIB_API rot_get_ext_func(ROT *rot, hamlib_token_t token, int *status)
|
||||||
{
|
{
|
||||||
const struct rot_caps *caps;
|
const struct rot_caps *caps;
|
||||||
|
|
||||||
@ -724,7 +724,7 @@ int HAMLIB_API rot_get_ext_func(ROT *rot, token_t token, int *status)
|
|||||||
*
|
*
|
||||||
* \sa rot_get_ext_parm()
|
* \sa rot_get_ext_parm()
|
||||||
*/
|
*/
|
||||||
int HAMLIB_API rot_set_ext_parm(ROT *rot, token_t token, value_t val)
|
int HAMLIB_API rot_set_ext_parm(ROT *rot, hamlib_token_t token, value_t val)
|
||||||
{
|
{
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
||||||
|
|
||||||
@ -762,7 +762,7 @@ int HAMLIB_API rot_set_ext_parm(ROT *rot, token_t token, value_t val)
|
|||||||
*
|
*
|
||||||
* \sa rot_set_ext_parm()
|
* \sa rot_set_ext_parm()
|
||||||
*/
|
*/
|
||||||
int HAMLIB_API rot_get_ext_parm(ROT *rot, token_t token, value_t *val)
|
int HAMLIB_API rot_get_ext_parm(ROT *rot, hamlib_token_t token, value_t *val)
|
||||||
{
|
{
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
||||||
|
|
||||||
|
@ -646,7 +646,7 @@ int HAMLIB_API rig_get_func(RIG *rig, vfo_t vfo, setting_t func, int *status)
|
|||||||
*/
|
*/
|
||||||
int HAMLIB_API rig_set_ext_level(RIG *rig,
|
int HAMLIB_API rig_set_ext_level(RIG *rig,
|
||||||
vfo_t vfo,
|
vfo_t vfo,
|
||||||
token_t token,
|
hamlib_token_t token,
|
||||||
value_t val)
|
value_t val)
|
||||||
{
|
{
|
||||||
const struct rig_caps *caps;
|
const struct rig_caps *caps;
|
||||||
@ -712,7 +712,7 @@ int HAMLIB_API rig_set_ext_level(RIG *rig,
|
|||||||
*/
|
*/
|
||||||
int HAMLIB_API rig_get_ext_level(RIG *rig,
|
int HAMLIB_API rig_get_ext_level(RIG *rig,
|
||||||
vfo_t vfo,
|
vfo_t vfo,
|
||||||
token_t token,
|
hamlib_token_t token,
|
||||||
value_t *val)
|
value_t *val)
|
||||||
{
|
{
|
||||||
const struct rig_caps *caps;
|
const struct rig_caps *caps;
|
||||||
@ -777,7 +777,7 @@ int HAMLIB_API rig_get_ext_level(RIG *rig,
|
|||||||
*/
|
*/
|
||||||
int HAMLIB_API rig_set_ext_func(RIG *rig,
|
int HAMLIB_API rig_set_ext_func(RIG *rig,
|
||||||
vfo_t vfo,
|
vfo_t vfo,
|
||||||
token_t token,
|
hamlib_token_t token,
|
||||||
int status)
|
int status)
|
||||||
{
|
{
|
||||||
const struct rig_caps *caps;
|
const struct rig_caps *caps;
|
||||||
@ -843,7 +843,7 @@ int HAMLIB_API rig_set_ext_func(RIG *rig,
|
|||||||
*/
|
*/
|
||||||
int HAMLIB_API rig_get_ext_func(RIG *rig,
|
int HAMLIB_API rig_get_ext_func(RIG *rig,
|
||||||
vfo_t vfo,
|
vfo_t vfo,
|
||||||
token_t token,
|
hamlib_token_t token,
|
||||||
int *status)
|
int *status)
|
||||||
{
|
{
|
||||||
const struct rig_caps *caps;
|
const struct rig_caps *caps;
|
||||||
@ -906,7 +906,7 @@ int HAMLIB_API rig_get_ext_func(RIG *rig,
|
|||||||
*
|
*
|
||||||
* \sa rig_get_ext_parm()
|
* \sa rig_get_ext_parm()
|
||||||
*/
|
*/
|
||||||
int HAMLIB_API rig_set_ext_parm(RIG *rig, token_t token, value_t val)
|
int HAMLIB_API rig_set_ext_parm(RIG *rig, hamlib_token_t token, value_t val)
|
||||||
{
|
{
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
||||||
|
|
||||||
@ -938,7 +938,7 @@ int HAMLIB_API rig_set_ext_parm(RIG *rig, token_t token, value_t val)
|
|||||||
*
|
*
|
||||||
* \sa rig_set_ext_parm()
|
* \sa rig_set_ext_parm()
|
||||||
*/
|
*/
|
||||||
int HAMLIB_API rig_get_ext_parm(RIG *rig, token_t token, value_t *val)
|
int HAMLIB_API rig_get_ext_parm(RIG *rig, hamlib_token_t token, value_t *val)
|
||||||
{
|
{
|
||||||
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
|
||||||
|
|
||||||
|
@ -303,7 +303,7 @@ int main(int argc, char *argv[])
|
|||||||
while (token)
|
while (token)
|
||||||
{
|
{
|
||||||
char mytoken[100], myvalue[100];
|
char mytoken[100], myvalue[100];
|
||||||
token_t lookup;
|
hamlib_token_t lookup;
|
||||||
sscanf(token, "%99[^=]=%99s", mytoken, myvalue);
|
sscanf(token, "%99[^=]=%99s", mytoken, myvalue);
|
||||||
//printf("mytoken=%s,myvalue=%s\n",mytoken, myvalue);
|
//printf("mytoken=%s,myvalue=%s\n",mytoken, myvalue);
|
||||||
lookup = amp_token_lookup(my_amp, mytoken);
|
lookup = amp_token_lookup(my_amp, mytoken);
|
||||||
|
@ -328,7 +328,7 @@ int main(int argc, char *argv[])
|
|||||||
while (token)
|
while (token)
|
||||||
{
|
{
|
||||||
char mytoken[100], myvalue[100];
|
char mytoken[100], myvalue[100];
|
||||||
token_t lookup;
|
hamlib_token_t lookup;
|
||||||
sscanf(token, "%99[^=]=%99s", mytoken, myvalue);
|
sscanf(token, "%99[^=]=%99s", mytoken, myvalue);
|
||||||
//printf("mytoken=%s,myvalue=%s\n",mytoken, myvalue);
|
//printf("mytoken=%s,myvalue=%s\n",mytoken, myvalue);
|
||||||
lookup = amp_token_lookup(my_amp, mytoken);
|
lookup = amp_token_lookup(my_amp, mytoken);
|
||||||
|
@ -565,7 +565,7 @@ int main(int argc, char *argv[])
|
|||||||
while (token)
|
while (token)
|
||||||
{
|
{
|
||||||
char mytoken[100], myvalue[100];
|
char mytoken[100], myvalue[100];
|
||||||
token_t lookup;
|
hamlib_token_t lookup;
|
||||||
sscanf(token, "%99[^=]=%99s", mytoken, myvalue);
|
sscanf(token, "%99[^=]=%99s", mytoken, myvalue);
|
||||||
//printf("mytoken=%s,myvalue=%s\n",mytoken, myvalue);
|
//printf("mytoken=%s,myvalue=%s\n",mytoken, myvalue);
|
||||||
lookup = rig_token_lookup(my_rig, mytoken);
|
lookup = rig_token_lookup(my_rig, mytoken);
|
||||||
|
@ -5849,7 +5849,7 @@ declare_proto_rig(get_conf)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
token_t mytoken = rig_token_lookup(rig, arg1);
|
hamlib_token_t mytoken = rig_token_lookup(rig, arg1);
|
||||||
|
|
||||||
if (mytoken == 0)
|
if (mytoken == 0)
|
||||||
{
|
{
|
||||||
@ -5887,7 +5887,7 @@ declare_proto_rig(set_conf)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
token_t mytoken = rig_token_lookup(rig, arg1);
|
hamlib_token_t mytoken = rig_token_lookup(rig, arg1);
|
||||||
|
|
||||||
if (mytoken == 0)
|
if (mytoken == 0)
|
||||||
{
|
{
|
||||||
|
@ -665,7 +665,7 @@ int main(int argc, char *argv[])
|
|||||||
while (token)
|
while (token)
|
||||||
{
|
{
|
||||||
char mytoken[100], myvalue[100];
|
char mytoken[100], myvalue[100];
|
||||||
token_t lookup;
|
hamlib_token_t lookup;
|
||||||
sscanf(token, "%99[^=]=%99s", mytoken, myvalue);
|
sscanf(token, "%99[^=]=%99s", mytoken, myvalue);
|
||||||
//printf("mytoken=%s,myvalue=%s\n",mytoken, myvalue);
|
//printf("mytoken=%s,myvalue=%s\n",mytoken, myvalue);
|
||||||
lookup = rig_token_lookup(my_rig, mytoken);
|
lookup = rig_token_lookup(my_rig, mytoken);
|
||||||
|
@ -344,7 +344,7 @@ int main(int argc, char *argv[])
|
|||||||
while (token)
|
while (token)
|
||||||
{
|
{
|
||||||
char mytoken[100], myvalue[100];
|
char mytoken[100], myvalue[100];
|
||||||
token_t lookup;
|
hamlib_token_t lookup;
|
||||||
sscanf(token, "%99[^=]=%99s", mytoken, myvalue);
|
sscanf(token, "%99[^=]=%99s", mytoken, myvalue);
|
||||||
//printf("mytoken=%s,myvalue=%s\n",mytoken, myvalue);
|
//printf("mytoken=%s,myvalue=%s\n",mytoken, myvalue);
|
||||||
lookup = rot_token_lookup(my_rot, mytoken);
|
lookup = rot_token_lookup(my_rot, mytoken);
|
||||||
|
@ -1686,7 +1686,7 @@ declare_proto_rot(get_conf)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
token_t mytoken = rot_token_lookup(rot, arg1);
|
hamlib_token_t mytoken = rot_token_lookup(rot, arg1);
|
||||||
|
|
||||||
if (mytoken == 0)
|
if (mytoken == 0)
|
||||||
{
|
{
|
||||||
@ -1725,7 +1725,7 @@ declare_proto_rot(set_conf)
|
|||||||
return RIG_OK;
|
return RIG_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
token_t mytoken = rot_token_lookup(rot, arg1);
|
hamlib_token_t mytoken = rot_token_lookup(rot, arg1);
|
||||||
|
|
||||||
if (mytoken == 0)
|
if (mytoken == 0)
|
||||||
{
|
{
|
||||||
|
@ -350,7 +350,7 @@ int main(int argc, char *argv[])
|
|||||||
while (token)
|
while (token)
|
||||||
{
|
{
|
||||||
char mytoken[100], myvalue[100];
|
char mytoken[100], myvalue[100];
|
||||||
token_t lookup;
|
hamlib_token_t lookup;
|
||||||
sscanf(token, "%99[^=]=%99s", mytoken, myvalue);
|
sscanf(token, "%99[^=]=%99s", mytoken, myvalue);
|
||||||
//printf("mytoken=%s,myvalue=%s\n",mytoken, myvalue);
|
//printf("mytoken=%s,myvalue=%s\n",mytoken, myvalue);
|
||||||
lookup = rot_token_lookup(my_rot, mytoken);
|
lookup = rot_token_lookup(my_rot, mytoken);
|
||||||
|
Loading…
Reference in New Issue
Block a user