dtmf_rx_state_s 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

goertzel_state_t dtmf_rx_state_s::col_out[4]

Tone detector working states for the column tones.

int dtmf_rx_state_s::current_digits

The number of digits currently in the digit buffer.

int dtmf_rx_state_s::current_sample

The current sample number within a processing block.

char dtmf_rx_state_s::digits[MAX_DTMF_DIGITS+1]

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

digits_rx_callback_t dtmf_rx_state_s::digits_callback

Optional callback funcion to deliver received digits.

void* dtmf_rx_state_s::digits_callback_data

An opaque pointer passed to the callback function.

float dtmf_rx_state_s::energy

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

int dtmf_rx_state_s::filter_dialtone

TRUE if dialtone should be filtered before processing

uint8_t dtmf_rx_state_s::in_digit

The confirmed digit we are currently receiving

uint8_t dtmf_rx_state_s::last_hit

The result of the last tone analysis.

int dtmf_rx_state_s::lost_digits

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

float dtmf_rx_state_s::normal_twist

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

tone_report_func_t dtmf_rx_state_s::realtime_callback

Optional callback funcion to deliver real time digit state changes.

void* dtmf_rx_state_s::realtime_callback_data

An opaque pointer passed to the real time callback function.

float dtmf_rx_state_s::reverse_twist

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

goertzel_state_t dtmf_rx_state_s::row_out[4]

Tone detector working states for the row tones.

float dtmf_rx_state_s::threshold

Minimum acceptable tone level for detection.

float dtmf_rx_state_s::z350[2]

350Hz filter state for the optional dialtone filter.

float dtmf_rx_state_s::z440[2]

440Hz filter state for the optional dialtone filter.


The documentation for this struct was generated from the following file:
Generated on Fri Nov 18 15:02:26 2011 for spandsp by  doxygen 1.4.7