[Hamlib-cvs-digest] CVS: hamlib/aor aor.c,1.2,1.3 aor.h,1.2,1.3
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Stephane F. <f4...@us...> - 2000-12-05 22:01:06
|
Update of /cvsroot/hamlib/hamlib/aor In directory slayer.i.sourceforge.net:/tmp/cvs-serv3805/aor Modified Files: aor.c aor.h Log Message: * all the API functions are now targetted to a particular VFO. This is a major change in the library interface, and the implementation is not complete yet (especially in the backends), but the API should be fine. Anyway, at this stage of developement, interface design experimenting matters more than completeness. * added new shortfreq_t type for frequencies on 31bits (up to 2GHz) for use by offset/shifts/etc. Index: aor.c =================================================================== RCS file: /cvsroot/hamlib/hamlib/aor/aor.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** aor.c 2000/12/04 23:39:17 1.2 --- aor.c 2000/12/05 22:01:00 1.3 *************** *** 116,120 **** * Assumes rig!=NULL */ ! int aor_set_freq(RIG *rig, freq_t freq) { unsigned char freqbuf[16], ackbuf[16]; --- 116,120 ---- * Assumes rig!=NULL */ ! int aor_set_freq(RIG *rig, vfo_t vfo, freq_t freq) { unsigned char freqbuf[16], ackbuf[16]; *************** *** 142,146 **** * Assumes rig!=NULL, freq!=NULL */ ! int aor_get_freq(RIG *rig, freq_t *freq) { unsigned char freqbuf[16]; --- 142,146 ---- * Assumes rig!=NULL, freq!=NULL */ ! int aor_get_freq(RIG *rig, vfo_t vfo, freq_t *freq) { unsigned char freqbuf[16]; *************** *** 160,164 **** * Assumes rig!=NULL */ ! int aor_set_mode(RIG *rig, rmode_t mode, pbwidth_t width) { unsigned char mdbuf[16],ackbuf[16]; --- 160,164 ---- * Assumes rig!=NULL */ ! int aor_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width) { unsigned char mdbuf[16],ackbuf[16]; *************** *** 216,220 **** * Assumes rig!=NULL, mode!=NULL */ ! int aor_get_mode(RIG *rig, rmode_t *mode, pbwidth_t *width) { unsigned char ackbuf[16]; --- 216,220 ---- * Assumes rig!=NULL, mode!=NULL */ ! int aor_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width) { unsigned char ackbuf[16]; *************** *** 265,269 **** * Assumes rig!=NULL */ ! int aor_set_ts(RIG *rig, unsigned long ts) { unsigned char tsbuf[16],ackbuf[16]; --- 265,269 ---- * Assumes rig!=NULL */ ! int aor_set_ts(RIG *rig, vfo_t vfo, shortfreq_t ts) { unsigned char tsbuf[16],ackbuf[16]; *************** *** 315,319 **** return RIG_OK; } - --- 315,318 ---- Index: aor.h =================================================================== RCS file: /cvsroot/hamlib/hamlib/aor/aor.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** aor.h 2000/12/04 23:39:17 1.2 --- aor.h 2000/12/05 22:01:00 1.3 *************** *** 32,41 **** int aor_close(RIG *rig); ! int aor_set_freq(RIG *rig, freq_t freq); ! int aor_get_freq(RIG *rig, freq_t *freq); ! int aor_set_mode(RIG *rig, rmode_t mode, pbwidth_t width); ! int aor_get_mode(RIG *rig, rmode_t *mode, pbwidth_t *width); ! int aor_set_ts(RIG *rig, unsigned long ts); int aor_set_poweroff(RIG *rig); --- 32,41 ---- int aor_close(RIG *rig); ! int aor_set_freq(RIG *rig, vfo_t vfo, freq_t freq); ! int aor_get_freq(RIG *rig, vfo_t vfo, freq_t *freq); ! int aor_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width); ! int aor_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width); ! int aor_set_ts(RIG *rig, vfo_t vfo, shortfreq_t ts); int aor_set_poweroff(RIG *rig); |