dtmf_rx_state_t Struct Reference

#include <dtmf.h>

List of all members.

Public Attributes

dtmf_rx_callback_t callback
void * callback_data
tone_report_func_t realtime_callback
void * realtime_callback_data
int filter_dialtone
float normal_twist
float reverse_twist
float z350_1
float z350_2
float z440_1
float z440_2
goertzel_state_t row_out [4]
goertzel_state_t col_out [4]
float energy
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

dtmf_rx_callback_t dtmf_rx_state_t::callback

Optional callback funcion to deliver received digits.

void* dtmf_rx_state_t::callback_data

An opaque pointer passed to the callback function.

tone_report_func_t dtmf_rx_state_t::realtime_callback

Optional callback funcion to deliver real time digit state changes.

void* dtmf_rx_state_t::realtime_callback_data

An opaque pointer passed to the real time callback function.

int dtmf_rx_state_t::filter_dialtone

TRUE if dialtone should be filtered before processing

float dtmf_rx_state_t::normal_twist

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

float dtmf_rx_state_t::reverse_twist

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

float dtmf_rx_state_t::z350_1

350Hz filter state for the optional dialtone filter

float dtmf_rx_state_t::z440_1

440Hz filter state for the optional dialtone filter

goertzel_state_t dtmf_rx_state_t::row_out[4]

Tone detector working states

float dtmf_rx_state_t::energy

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

uint8_t dtmf_rx_state_t::last_hit

The result of the last tone analysis.

uint8_t dtmf_rx_state_t::in_digit

The confirmed digit we are currently receiving

int dtmf_rx_state_t::current_sample

The current sample number within a processing block.

int dtmf_rx_state_t::lost_digits

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

int dtmf_rx_state_t::current_digits

The number of digits currently in the digit buffer.

char dtmf_rx_state_t::digits[MAX_DTMF_DIGITS+1]

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


The documentation for this struct was generated from the following file:
Generated on Tue Jul 24 11:29:30 2007 for libspandsp by  doxygen 1.5.2