[Hamlib-cvs-digest] CVS: hamlib/src rig.c,1.6,1.7
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Stephane F. <f4...@us...> - 2000-10-23 19:56:32
|
Update of /cvsroot/hamlib/hamlib/src In directory slayer.i.sourceforge.net:/tmp/cvs-serv22726 Modified Files: rig.c Log Message: * misc comments update about CTCSS & DCS Index: rig.c =================================================================== RCS file: /cvsroot/hamlib/hamlib/src/rig.c,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** rig.c 2000/10/22 16:08:23 1.6 --- rig.c 2000/10/23 19:56:29 1.7 *************** *** 940,944 **** * @tone: The tone to set to * ! * The rig_set_ctcss() function sets the current squelch tone. * NB, @tone is NOT in Hz, but in tenth of Hz! This way, * if you want to set subaudible tone of 88.5 Hz for example, --- 940,945 ---- * @tone: The tone to set to * ! * The rig_set_ctcss() function sets the current Continuous Tone ! * Controlled Squelch System (CTCSS) sub-audible tone. * NB, @tone is NOT in Hz, but in tenth of Hz! This way, * if you want to set subaudible tone of 88.5 Hz for example, *************** *** 974,979 **** * @tone: The location where to store the current tone * ! * The rig_get_ctcss() function retrieves the current ! * squelch tone. * NB, @tone is NOT in Hz, but in tenth of Hz! This way, * if the function rig_get_ctcss() returns a subaudible tone of 885 --- 975,980 ---- * @tone: The location where to store the current tone * ! * The rig_get_ctcss() function retrieves the current Continuous Tone ! * Controlled Squelch System (CTCSS) sub-audible tone. * NB, @tone is NOT in Hz, but in tenth of Hz! This way, * if the function rig_get_ctcss() returns a subaudible tone of 885 *************** *** 1001,1012 **** * rig_set_dcs - set the current DCS * @rig: The rig handle ! * @tone: The tone to set to * ! * The rig_set_dcs() function sets the current subaudible tone to ! * access a repeater or tone squelched frequency. ! * NB, @tone is NOT in Hz, but in tenth of Hz! This way, ! * if you want to set subaudible tone of 88.5 Hz for example, ! * then pass 885 to this function. Also, to disable Tone squelch, ! * set @tone to 0. * * RETURN VALUE: The rig_set_dcs() function returns %RIG_OK --- 1002,1009 ---- * rig_set_dcs - set the current DCS * @rig: The rig handle ! * @code: The tone to set to * ! * The rig_set_dcs() function sets the current Digitally-Coded Squelch ! * code. * * RETURN VALUE: The rig_set_dcs() function returns %RIG_OK *************** *** 1017,1021 **** */ ! int rig_set_dcs(RIG *rig, unsigned int tone) { if (!rig || !rig->caps) --- 1014,1018 ---- */ ! int rig_set_dcs(RIG *rig, unsigned int code) { if (!rig || !rig->caps) *************** *** 1025,1029 **** return -RIG_ENAVAIL; /* not implemented */ else ! return rig->caps->set_dcs(rig, tone); } --- 1022,1026 ---- return -RIG_ENAVAIL; /* not implemented */ else ! return rig->caps->set_dcs(rig, code); } *************** *** 1031,1041 **** * rig_get_dcs - get the current DCS * @rig: The rig handle ! * @tone: The location where to store the current tone * ! * The rig_get_dcs() function retrieves the current DCS. ! * NB, @tone is NOT in Hz, but in tenth of Hz! This way, ! * if the function rig_get_dcs() returns a subaudible tone of 885 ! * for example, then the real tone is 88.5 Hz. ! * Also, a value of 0 for @tone means the Tone encoding is disabled. * * RETURN VALUE: The rig_get_dcs() function returns %RIG_OK --- 1028,1035 ---- * rig_get_dcs - get the current DCS * @rig: The rig handle ! * @code: The location where to store the current tone * ! * The rig_get_dcs() function retrieves the current ! * Digitally-Coded Squelch. * * RETURN VALUE: The rig_get_dcs() function returns %RIG_OK *************** *** 1045,1051 **** * SEE ALSO: rig_get_dcs(), rig_set_ctcss(), rig_get_ctcss() */ ! int rig_get_dcs(RIG *rig, unsigned int *tone) { ! if (!rig || !rig->caps || !tone) return -RIG_EINVAL; --- 1039,1045 ---- * SEE ALSO: rig_get_dcs(), rig_set_ctcss(), rig_get_ctcss() */ ! int rig_get_dcs(RIG *rig, unsigned int *code) { ! if (!rig || !rig->caps || !code) return -RIG_EINVAL; *************** *** 1053,1057 **** return -RIG_ENAVAIL; /* not implemented */ else ! return rig->caps->get_dcs(rig, tone); } --- 1047,1051 ---- return -RIG_ENAVAIL; /* not implemented */ else ! return rig->caps->get_dcs(rig, code); } *************** *** 1188,1192 **** return -RIG_ENAVAIL; /* not implemented */ else ! return rig->caps->get_level(rig, set, val); } --- 1182,1186 ---- return -RIG_ENAVAIL; /* not implemented */ else ! return rig->caps->get_level(rig, level, val); } |