[Hamlib-cvs-digest] CVS: hamlib/include/hamlib rig.h,1.8,1.9
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Stephane F. <f4...@us...> - 2000-11-28 22:31:47
|
Update of /cvsroot/hamlib/hamlib/include/hamlib In directory slayer.i.sourceforge.net:/tmp/cvs-serv970 Modified Files: rig.h Log Message: * added squelch primitives of DCS/CTCSS * added set/get_RIT and rig_get_info() Index: rig.h =================================================================== RCS file: /cvsroot/hamlib/hamlib/include/hamlib/rig.h,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** rig.h 2000/10/30 21:45:27 1.8 --- rig.h 2000/11/28 22:31:40 1.9 *************** *** 234,237 **** --- 234,239 ---- #define RIG_LEVEL_ANN (1<<20) /* Announce, arg int (see enum ann_level_e) */ /* These ones are not settable */ + #define RIG_LEVEL_SWR (1<<28) /* SWR, arg float */ + #define RIG_LEVEL_ALC (1<<29) /* ALC, arg float */ #define RIG_LEVEL_SQLSTAT (1<<30) /* SQL status, arg int (open=1/closed=0) */ #define RIG_LEVEL_STRENGTH (1<<31) /* Signal strength, arg int (db) */ *************** *** 260,263 **** --- 262,266 ---- #define RIG_FUNC_ANF (1<<8) /* Automatic Notch Filter (DSP) */ #define RIG_FUNC_NR (1<<9) /* Noise Reduction (DSP) */ + #define RIG_FUNC_AIP (1<<10) /* AIP (Kenwood) */ *************** *** 452,455 **** --- 455,461 ---- int (*get_split)(RIG *rig, split_t *split); + int (*set_rit)(RIG *rig, signed long rit); + int (*get_rit)(RIG *rig, signed long *rit); + int (*set_ts)(RIG *rig, unsigned long ts); /* set tuning step */ int (*get_ts)(RIG *rig, unsigned long *ts); /* get tuning step */ *************** *** 460,463 **** --- 466,474 ---- int (*get_ctcss)(RIG *rig, unsigned int *tone); + int (*set_dcs_sql)(RIG *rig, unsigned int code); + int (*get_dcs_sql)(RIG *rig, unsigned int *code); + int (*set_ctcss_sql)(RIG *rig, unsigned int tone); + int (*get_ctcss_sql)(RIG *rig, unsigned int *tone); + /* * It'd be nice to have a power2mW and mW2power functions *************** *** 496,499 **** --- 507,513 ---- int (*get_channel)(RIG *rig, channel_t *chan); + /* get firmware info, etc. */ + unsigned char* (*get_info)(RIG *rig); + /* more to come... */ }; *************** *** 604,607 **** --- 618,626 ---- extern int rig_get_dcs(RIG *rig, unsigned int *code); + extern int rig_set_ctcss_sql(RIG *rig, unsigned int tone); + extern int rig_get_ctcss_sql(RIG *rig, unsigned int *tone); + extern int rig_set_dcs_sql(RIG *rig, unsigned int code); + extern int rig_get_dcs_sql(RIG *rig, unsigned int *code); + extern int rig_set_split_freq(RIG *rig, freq_t rx_freq, freq_t tx_freq); extern int rig_get_split_freq(RIG *rig, freq_t *rx_freq, freq_t *tx_freq); *************** *** 609,612 **** --- 628,634 ---- extern int rig_get_split(RIG *rig, split_t *split); + extern int rig_set_rit(RIG *rig, signed long rit); + extern int rig_get_rit(RIG *rig, signed long *rit); + extern int rig_set_ts(RIG *rig, unsigned long ts); /* set tuning step */ extern int rig_get_ts(RIG *rig, unsigned long *ts); /* get tuning step */ *************** *** 647,650 **** --- 669,675 ---- extern int rig_set_trn(RIG *rig, int trn); /* activate the transceive mode */ extern int rig_get_trn(RIG *rig, int *trn); + + + extern unsigned char *rig_get_info(RIG *rig); extern const struct rig_caps *rig_get_caps(rig_model_t rig_model); |