Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | tag_capidtmf_recv_state |
struct | tag_capidtmf_state |
Typedefs | |
typedef struct tag_capidtmf_recv_state | t_capidtmf_recv_state |
typedef struct tag_capidtmf_state | t_capidtmf_state |
Functions | |
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) |
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) |
#define CAPIDTMF_HIGH_GROUP_FREQUENCIES 4 |
Definition at line 32 of file capidtmf.h.
#define capidtmf_indication | ( | p_state, | |
buffer | |||
) | (((p_state)->recv.indication_state != (p_state)->recv.indication_state_ack) ? capidtmf_recv_indication(p_state, buffer) : 0) |
Definition at line 75 of file capidtmf.h.
#define CAPIDTMF_LOW_GROUP_FREQUENCIES 4 |
Definition at line 31 of file capidtmf.h.
#define CAPIDTMF_RECV_ACCUMULATE_CYCLES 205 |
Definition at line 43 of file capidtmf.h.
#define CAPIDTMF_RECV_BASE_FREQUENCY_COUNT (CAPIDTMF_LOW_GROUP_FREQUENCIES + CAPIDTMF_HIGH_GROUP_FREQUENCIES) |
Definition at line 38 of file capidtmf.h.
#define CAPIDTMF_RECV_DIGIT_BUFFER_SIZE 32 |
Definition at line 46 of file capidtmf.h.
#define CAPIDTMF_RECV_FUNDAMENTAL_DECREMENT (0x0028L * 2) |
Definition at line 45 of file capidtmf.h.
#define CAPIDTMF_RECV_FUNDAMENTAL_OFFSET (0xff35L * 2) |
Definition at line 44 of file capidtmf.h.
#define CAPIDTMF_RECV_GUARD_FREQUENCY_COUNT 8 |
Definition at line 39 of file capidtmf.h.
#define CAPIDTMF_RECV_NEGATIVE_COEFF_COUNT (CAPIDTMF_RECV_TOTAL_FREQUENCY_COUNT - CAPIDTMF_RECV_POSITIVE_COEFF_COUNT) |
Definition at line 42 of file capidtmf.h.
#define CAPIDTMF_RECV_POSITIVE_COEFF_COUNT 16 |
Definition at line 41 of file capidtmf.h.
#define capidtmf_recv_process_block | ( | p_state, | |
buffer, | |||
length | |||
) | { if ((p_state)->recv.state != CAPIDTMF_RECV_STATE_IDLE) capidtmf_recv_block(p_state, buffer, length); } |
Definition at line 76 of file capidtmf.h.
#define CAPIDTMF_RECV_STATE_DTMF_ACTIVE 0x01 |
Definition at line 48 of file capidtmf.h.
#define CAPIDTMF_RECV_STATE_IDLE 0x00 |
Definition at line 47 of file capidtmf.h.
#define CAPIDTMF_RECV_TOTAL_FREQUENCY_COUNT (CAPIDTMF_RECV_BASE_FREQUENCY_COUNT + CAPIDTMF_RECV_GUARD_FREQUENCY_COUNT) |
Definition at line 40 of file capidtmf.h.
#define CAPIDTMF_TONE_GROUP_COUNT 2 |
Definition at line 30 of file capidtmf.h.
#define DSPDTMF_RX_HARMONICS_SEL_DEFAULT 12 /* dB */ |
Definition at line 37 of file capidtmf.h.
#define DSPDTMF_RX_HIGH_EXCEEDING_LOW_DEFAULT 10 /* dB */ |
Definition at line 35 of file capidtmf.h.
#define DSPDTMF_RX_LOW_EXCEEDING_HIGH_DEFAULT 10 /* dB */ |
Definition at line 36 of file capidtmf.h.
#define DSPDTMF_RX_SENSITIVITY_HIGH_DEFAULT 50 /* -52 dBm */ |
Definition at line 34 of file capidtmf.h.
#define DSPDTMF_RX_SENSITIVITY_LOW_DEFAULT 50 /* -52 dBm */ |
Definition at line 33 of file capidtmf.h.
typedef struct tag_capidtmf_state t_capidtmf_state |
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.