dtmf_rx_state_t Struct Reference

#include <dtmf.h>

List of all members.

Public Attributes

digits_rx_callback_t digits_callback
void * digits_callback_data
tone_report_func_t realtime_callback
void * realtime_callback_data
int filter_dialtone
float z350 [2]
float z440 [2]
float normal_twist
float reverse_twist
float threshold
float energy
goertzel_state_t row_out [4]
goertzel_state_t col_out [4]
uint8_t last_hit
uint8_t in_digit
int current_sample
int lost_digits
int current_digits
char digits [MAX_DTMF_DIGITS+1]


Detailed Description

DTMF digit detector descriptor.

Member Data Documentation

digits_rx_callback_t dtmf_rx_state_t::digits_callback

Optional callback funcion to deliver received digits.

Referenced by dtmf_rx(), and dtmf_rx_init().

An opaque pointer passed to the callback function.

Referenced by dtmf_rx(), and dtmf_rx_init().

Optional callback funcion to deliver real time digit state changes.

Referenced by dtmf_rx(), dtmf_rx_init(), and dtmf_rx_set_realtime_callback().

An opaque pointer passed to the real time callback function.

Referenced by dtmf_rx(), dtmf_rx_init(), and dtmf_rx_set_realtime_callback().

TRUE if dialtone should be filtered before processing

Referenced by dtmf_rx(), dtmf_rx_init(), and dtmf_rx_parms().

350Hz filter state for the optional dialtone filter.

Referenced by dtmf_rx(), and dtmf_rx_parms().

440Hz filter state for the optional dialtone filter.

Referenced by dtmf_rx(), and dtmf_rx_parms().

Maximum acceptable "normal" (lower bigger than higher) twist ratio.

Referenced by dtmf_rx(), dtmf_rx_init(), and dtmf_rx_parms().

Maximum acceptable "reverse" (higher bigger than lower) twist ratio.

Referenced by dtmf_rx(), dtmf_rx_init(), and dtmf_rx_parms().

Minimum acceptable tone level for detection.

Referenced by dtmf_rx(), dtmf_rx_init(), and dtmf_rx_parms().

The accumlating total energy on the same period over which the Goertzels work.

Referenced by dtmf_rx(), and dtmf_rx_init().

Tone detector working states for the row tones.

Referenced by dtmf_rx(), and dtmf_rx_init().

Tone detector working states for the column tones.

Referenced by dtmf_rx(), and dtmf_rx_init().

The result of the last tone analysis.

Referenced by dtmf_rx(), dtmf_rx_init(), and dtmf_rx_status().

The confirmed digit we are currently receiving

Referenced by dtmf_rx(), dtmf_rx_init(), and dtmf_rx_status().

The current sample number within a processing block.

Referenced by dtmf_rx(), and dtmf_rx_init().

The number of digits which have been lost due to buffer overflows.

Referenced by dtmf_rx(), and dtmf_rx_init().

The number of digits currently in the digit buffer.

Referenced by dtmf_rx(), dtmf_rx_get(), and dtmf_rx_init().

char dtmf_rx_state_t::digits[MAX_DTMF_DIGITS+1]

The received digits buffer. This is a NULL terminated string.

Referenced by dtmf_rx(), dtmf_rx_get(), and dtmf_rx_init().


The documentation for this struct was generated from the following file:

Generated on Tue Oct 7 20:25:53 2008 for spandsp by  doxygen 1.5.6