Main Page | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dds_int.c File Reference

#include <inttypes.h>
#include "floating_fudge.h"
#include "spandsp/telephony.h"
#include "spandsp/complex.h"
#include "spandsp/dds.h"

Defines

#define M_PI   3.14159265358979323846
#define SLENK   7
#define DDS_STEPS   (1 << SLENK)
#define DDS_SHIFT   (32 - 2 - SLENK)

Functions

 SPAN_DECLARE (int32_t)
 Release a V.8 context.
 SPAN_DECLARE (float)
 Evaluate the final result of a Goertzel transform.
 SPAN_DECLARE (int16_t)
 Receive a chunk of ADSI audio.
 SPAN_DECLARE (void)
 Cleanup a T.30 context if the call terminates.
 SPAN_DECLARE (complexi_t)
 Lookup the complex integer value of a specified phase.
 SPAN_DECLARE (complexi16_t)
 Generate a complex 16 bit integer tone sample.
 SPAN_DECLARE (complexi32_t)

Detailed Description


Function Documentation

SPAN_DECLARE complexi16_t   ) 
 

Generate a complex 16 bit integer tone sample.

Parameters:
phase_acc A pointer to a phase accumulator value.
phase_rate The phase increment to be applied.
Returns:
The complex signal amplitude, between (-32767, -32767) and (32767, 32767).

SPAN_DECLARE complexi_t   ) 
 

Lookup the complex integer value of a specified phase.

Parameters:
phase_acc A pointer to a phase accumulator value.
phase_rate The phase increment to be applied.
Returns:
The complex signal amplitude, between (-32767, -32767) and (32767, 32767).

SPAN_DECLARE void   ) 
 

Cleanup a T.30 context if the call terminates.

Parameters:
s The ADSI transmit context.

SPAN_DECLARE int16_t   ) 
 

Receive a chunk of ADSI audio.

Parameters:
s The ADSI receive context.
amp The audio sample buffer.
len The number of samples in the buffer.
Returns:
The number of samples unprocessed.

SPAN_DECLARE float   ) 
 

Evaluate the final result of a Goertzel transform.

Parameters:
phase_rate The phase rate.
Returns:
The equivalent frequency, in Hz.

SPAN_DECLARE int32_t   ) 
 

Release a V.8 context.

Parameters:
s The ADSI receive context.
amp The audio sample buffer.
len The number of samples in the buffer.
Returns:
The number of samples unprocessed.


Generated on Fri Aug 28 20:12:28 2009 for spandsp by  doxygen 1.3.9.1