Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
capidtmf.c File Reference
#include "platform.h"
#include "capidtmf.h"

Go to the source code of this file.

Macros

#define FILE_   "CAPIDTMF.C"
 
#define trace(a)
 
#define capidtmf_byte_leading_zeroes(b)   (capidtmf_leading_zeroes_table[(BYTE)(b)])
 
#define capidtmf_word_leading_zeroes(w)   (((w) & 0xff00) ? capidtmf_leading_zeroes_table[(w) >> 8] : 8 + capidtmf_leading_zeroes_table[(w)])
 
#define capidtmf_dword_leading_zeroes(d)   (((d) & 0xffff0000L) ? (((d) & 0xff000000L) ? capidtmf_leading_zeroes_table[(d) >> 24] : 8 + capidtmf_leading_zeroes_table[(d) >> 16]) : (((d) & 0xff00) ? 16 + capidtmf_leading_zeroes_table[(d) >> 8] : 24 + capidtmf_leading_zeroes_table[(d)]))
 
#define CAPIDTMF_RECV_GUARD_SNR_INDEX_697   0
 
#define CAPIDTMF_RECV_GUARD_SNR_INDEX_770   1
 
#define CAPIDTMF_RECV_GUARD_SNR_INDEX_852   2
 
#define CAPIDTMF_RECV_GUARD_SNR_INDEX_941   3
 
#define CAPIDTMF_RECV_GUARD_SNR_INDEX_1209   4
 
#define CAPIDTMF_RECV_GUARD_SNR_INDEX_1336   5
 
#define CAPIDTMF_RECV_GUARD_SNR_INDEX_1477   6
 
#define CAPIDTMF_RECV_GUARD_SNR_INDEX_1633   7
 
#define CAPIDTMF_RECV_GUARD_SNR_INDEX_635   8
 
#define CAPIDTMF_RECV_GUARD_SNR_INDEX_1010   9
 
#define CAPIDTMF_RECV_GUARD_SNR_INDEX_1140   10
 
#define CAPIDTMF_RECV_GUARD_SNR_INDEX_1272   11
 
#define CAPIDTMF_RECV_GUARD_SNR_INDEX_1405   12
 
#define CAPIDTMF_RECV_GUARD_SNR_INDEX_1555   13
 
#define CAPIDTMF_RECV_GUARD_SNR_INDEX_1715   14
 
#define CAPIDTMF_RECV_GUARD_SNR_INDEX_1875   15
 
#define CAPIDTMF_RECV_GUARD_SNR_DONTCARE   0xc000
 
#define CAPIDTMF_RECV_NO_DIGIT   0xff
 
#define CAPIDTMF_RECV_TIME_GRANULARITY   (CAPIDTMF_RECV_ACCUMULATE_CYCLES + 1)
 
#define CAPIDTMF_RECV_INDICATION_DIGIT   0x0001
 
#define CAPIDTMF_RECV_WINDOWED_SAMPLES   32
 

Functions

void capidtmf_recv_enable (t_capidtmf_state *p_state, word min_digit_duration, word min_gap_duration)
 
void capidtmf_recv_disable (t_capidtmf_state *p_state)
 
word capidtmf_recv_indication (t_capidtmf_state *p_state, byte *buffer)
 
void capidtmf_recv_block (t_capidtmf_state *p_state, byte *buffer, word length)
 
void capidtmf_init (t_capidtmf_state *p_state, byte ulaw)
 

Macro Definition Documentation

#define capidtmf_byte_leading_zeroes (   b)    (capidtmf_leading_zeroes_table[(BYTE)(b)])

Definition at line 177 of file capidtmf.c.

#define capidtmf_dword_leading_zeroes (   d)    (((d) & 0xffff0000L) ? (((d) & 0xff000000L) ? capidtmf_leading_zeroes_table[(d) >> 24] : 8 + capidtmf_leading_zeroes_table[(d) >> 16]) : (((d) & 0xff00) ? 16 + capidtmf_leading_zeroes_table[(d) >> 8] : 24 + capidtmf_leading_zeroes_table[(d)]))

Definition at line 179 of file capidtmf.c.

#define CAPIDTMF_RECV_GUARD_SNR_DONTCARE   0xc000

Definition at line 341 of file capidtmf.c.

#define CAPIDTMF_RECV_GUARD_SNR_INDEX_1010   9

Definition at line 333 of file capidtmf.c.

#define CAPIDTMF_RECV_GUARD_SNR_INDEX_1140   10

Definition at line 334 of file capidtmf.c.

#define CAPIDTMF_RECV_GUARD_SNR_INDEX_1209   4

Definition at line 328 of file capidtmf.c.

#define CAPIDTMF_RECV_GUARD_SNR_INDEX_1272   11

Definition at line 335 of file capidtmf.c.

#define CAPIDTMF_RECV_GUARD_SNR_INDEX_1336   5

Definition at line 329 of file capidtmf.c.

#define CAPIDTMF_RECV_GUARD_SNR_INDEX_1405   12

Definition at line 336 of file capidtmf.c.

#define CAPIDTMF_RECV_GUARD_SNR_INDEX_1477   6

Definition at line 330 of file capidtmf.c.

#define CAPIDTMF_RECV_GUARD_SNR_INDEX_1555   13

Definition at line 337 of file capidtmf.c.

#define CAPIDTMF_RECV_GUARD_SNR_INDEX_1633   7

Definition at line 331 of file capidtmf.c.

#define CAPIDTMF_RECV_GUARD_SNR_INDEX_1715   14

Definition at line 338 of file capidtmf.c.

#define CAPIDTMF_RECV_GUARD_SNR_INDEX_1875   15

Definition at line 339 of file capidtmf.c.

#define CAPIDTMF_RECV_GUARD_SNR_INDEX_635   8

Definition at line 332 of file capidtmf.c.

#define CAPIDTMF_RECV_GUARD_SNR_INDEX_697   0

Definition at line 324 of file capidtmf.c.

#define CAPIDTMF_RECV_GUARD_SNR_INDEX_770   1

Definition at line 325 of file capidtmf.c.

#define CAPIDTMF_RECV_GUARD_SNR_INDEX_852   2

Definition at line 326 of file capidtmf.c.

#define CAPIDTMF_RECV_GUARD_SNR_INDEX_941   3

Definition at line 327 of file capidtmf.c.

#define CAPIDTMF_RECV_INDICATION_DIGIT   0x0001

Definition at line 345 of file capidtmf.c.

#define CAPIDTMF_RECV_NO_DIGIT   0xff

Definition at line 342 of file capidtmf.c.

#define CAPIDTMF_RECV_TIME_GRANULARITY   (CAPIDTMF_RECV_ACCUMULATE_CYCLES + 1)

Definition at line 343 of file capidtmf.c.

#define CAPIDTMF_RECV_WINDOWED_SAMPLES   32

Definition at line 488 of file capidtmf.c.

#define capidtmf_word_leading_zeroes (   w)    (((w) & 0xff00) ? capidtmf_leading_zeroes_table[(w) >> 8] : 8 + capidtmf_leading_zeroes_table[(w)])

Definition at line 178 of file capidtmf.c.

#define FILE_   "CAPIDTMF.C"

Definition at line 41 of file capidtmf.c.

#define trace (   a)

Definition at line 46 of file capidtmf.c.

Function Documentation

void capidtmf_init ( t_capidtmf_state p_state,
byte  ulaw 
)

Definition at line 678 of file capidtmf.c.

void capidtmf_recv_block ( t_capidtmf_state p_state,
byte buffer,
word  length 
)

Definition at line 490 of file capidtmf.c.

void capidtmf_recv_disable ( t_capidtmf_state p_state)

Definition at line 449 of file capidtmf.c.

void capidtmf_recv_enable ( t_capidtmf_state p_state,
word  min_digit_duration,
word  min_gap_duration 
)

Definition at line 430 of file capidtmf.c.

word capidtmf_recv_indication ( t_capidtmf_state p_state,
byte buffer 
)

Definition at line 464 of file capidtmf.c.