bell_r2_mf.c File Reference

#include <stdlib.h>
#include <inttypes.h>
#include <string.h>
#include <time.h>
#include <fcntl.h>
#include "floating_fudge.h"
#include "spandsp/telephony.h"
#include "spandsp/fast_convert.h"
#include "spandsp/queue.h"
#include "spandsp/dc_restore.h"
#include "spandsp/complex.h"
#include "spandsp/dds.h"
#include "spandsp/tone_detect.h"
#include "spandsp/tone_generate.h"
#include "spandsp/super_tone_rx.h"
#include "spandsp/dtmf.h"
#include "spandsp/bell_r2_mf.h"
#include "spandsp/private/queue.h"
#include "spandsp/private/tone_generate.h"
#include "spandsp/private/bell_r2_mf.h"

Classes

struct  mf_digit_tones_t

Defines

#define ms_to_samples(t)   (((t)*SAMPLE_RATE)/1000)
#define BELL_MF_THRESHOLD   3343803100.0f
#define BELL_MF_TWIST   3.981f
#define BELL_MF_RELATIVE_PEAK   12.589f
#define BELL_MF_SAMPLES_PER_BLOCK   120
#define R2_MF_THRESHOLD   1031766650.0f
#define R2_MF_TWIST   5.012f
#define R2_MF_RELATIVE_PEAK   12.589f
#define R2_MF_SAMPLES_PER_BLOCK   133

Functions

int bell_mf_tx (bell_mf_tx_state_t *s, int16_t amp[], int max_samples)
int bell_mf_tx_put (bell_mf_tx_state_t *s, const char *digits, int len)
bell_mf_tx_state_t * bell_mf_tx_init (bell_mf_tx_state_t *s)
int bell_mf_tx_release (bell_mf_tx_state_t *s)
int bell_mf_tx_free (bell_mf_tx_state_t *s)
int r2_mf_tx (r2_mf_tx_state_t *s, int16_t amp[], int samples)
int r2_mf_tx_put (r2_mf_tx_state_t *s, char digit)
r2_mf_tx_state_t * r2_mf_tx_init (r2_mf_tx_state_t *s, int fwd)
int r2_mf_tx_release (r2_mf_tx_state_t *s)
int r2_mf_tx_free (r2_mf_tx_state_t *s)
int bell_mf_rx (bell_mf_rx_state_t *s, const int16_t amp[], int samples)
size_t bell_mf_rx_get (bell_mf_rx_state_t *s, char *buf, int max)
bell_mf_rx_state_t * bell_mf_rx_init (bell_mf_rx_state_t *s, digits_rx_callback_t callback, void *user_data)
int bell_mf_rx_release (bell_mf_rx_state_t *s)
int bell_mf_rx_free (bell_mf_rx_state_t *s)
int r2_mf_rx (r2_mf_rx_state_t *s, const int16_t amp[], int samples)
int r2_mf_rx_get (r2_mf_rx_state_t *s)
r2_mf_rx_state_t * r2_mf_rx_init (r2_mf_rx_state_t *s, int fwd, tone_report_func_t callback, void *user_data)
int r2_mf_rx_release (r2_mf_rx_state_t *s)
int r2_mf_rx_free (r2_mf_rx_state_t *s)

Variables

int bell_mf_gen_inited = 0
tone_gen_descriptor_t bell_mf_digit_tones [15]
int r2_mf_gen_inited = 0
tone_gen_descriptor_t r2_mf_fwd_digit_tones [15]
tone_gen_descriptor_t r2_mf_back_digit_tones [15]

Detailed Description


Generated by  doxygen 1.6.2