summaryrefslogtreecommitdiff
path: root/software/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.c
diff options
context:
space:
mode:
Diffstat (limited to 'software/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.c')
-rw-r--r--software/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.c51
1 files changed, 48 insertions, 3 deletions
diff --git a/software/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.c b/software/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.c
index 280f4e2..acefeae 100644
--- a/software/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.c
+++ b/software/octdeviceapi/oct6100api/oct6100_api/oct6100_tone_detection.c
@@ -2,7 +2,7 @@
File: oct6100_tone_detection.c
- Copyright (c) 2001-2006 Octasic Inc.
+ Copyright (c) 2001-2007 Octasic Inc.
Description:
@@ -23,9 +23,9 @@ You should have received a copy of the GNU General Public License
along with the OCT6100 GPL API; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
-$Octasic_Release: OCT612xAPI-01.00-PR47 $
+$Octasic_Release: OCT612xAPI-01.00-PR48 $
-$Octasic_Revision: 50 $
+$Octasic_Revision: 51 $
\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
@@ -1041,3 +1041,48 @@ UINT32 Oct6100ApiIsSSTone(
}
#endif
+/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
+
+Function: Oct6100ApiIsSSTone
+
+Description: Check if specified tone number is a 2100 special signaling
+ system tone.
+
+-------------------------------------------------------------------------------
+| Argument | Description
+-------------------------------------------------------------------------------
+f_pApiInstance Pointer to API instance. This memory is used to keep the
+ present state of the chip and all its resources.
+
+f_ulToneEventNumber Tone event number to be checked against.
+
+\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
+#if !SKIP_Oct6100ApiIs2100Tone
+UINT32 Oct6100ApiIs2100Tone(
+ IN OUT tPOCT6100_INSTANCE_API f_pApiInstance,
+ IN UINT32 f_ulToneEventNumber,
+ OUT PBOOL f_fIs2100Tone )
+{
+ *f_fIs2100Tone = FALSE;
+
+ switch( f_ulToneEventNumber )
+ {
+ case cOCT6100_TONE_ROUT_G168_2100GB_ON :
+ case cOCT6100_TONE_ROUT_G168_2100GB_WSPR :
+ case cOCT6100_TONE_ROUT_G168_2100GB_ON_WIDE_A :
+ case cOCT6100_TONE_ROUT_G168_2100GB_ON_WIDE_B :
+ case cOCT6100_TONE_ROUT_G168_2100GB_WSPR_WIDE :
+ case cOCT6100_TONE_SOUT_G168_2100GB_ON :
+ case cOCT6100_TONE_SOUT_G168_2100GB_WSPR :
+ case cOCT6100_TONE_SOUT_G168_2100GB_ON_WIDE_A :
+ case cOCT6100_TONE_SOUT_G168_2100GB_ON_WIDE_B :
+ case cOCT6100_TONE_SOUT_G168_2100GB_WSPR_WIDE :
+ *f_fIs2100Tone = TRUE;
+ break;
+ default:
+ break;
+ }
+
+ return cOCT6100_ERR_OK;
+}
+#endif