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

dds.h File Reference

Go to the source code of this file.

Functions

 SPAN_DECLARE (int32_t) dds_phase_rate(float frequency)
 Find the phase rate value to achieve a particular frequency.
 SPAN_DECLARE (float) dds_frequency(int32_t phase_rate)
 Find the frequency, in Hz, equivalent to a phase rate.
 SPAN_DECLARE (int16_t) dds_scaling_dbm0(float level)
 Find the scaling factor needed to achieve a specified level in dBm0.
 SPAN_DECLARE (void) dds_advance(uint32_t *phase_acc
 Cleanup a T.30 context if the call terminates.
 SPAN_DECLARE (complexi_t) dds_lookup_complexi(uint32_t phase)
 Lookup the complex integer value of a specified phase.
 SPAN_DECLARE (complexi16_t) dds_lookup_complexi16(uint32_t phase)
 Generate a complex 16 bit integer tone sample.
 SPAN_DECLARE (complexi32_t) dds_complexi32_mod(uint32_t *phase_acc
 Generate a complex 32 bit integer tone sample, with modulation.
 SPAN_DECLARE (complexf_t) dds_complexf(uint32_t *phase_acc
 Generate a complex floating point tone sample.

Variables

int32_t phase_offset
int32_t phase_rate
int32_t int16_t scale
int32_t int16_t int32_t phase


Detailed Description


Function Documentation

SPAN_DECLARE complexf_t   ) 
 

Generate a complex floating point 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 (-1.0, -1.0) and (1.0, 1.0).

SPAN_DECLARE complexi32_t   ) 
 

Generate a complex 32 bit integer tone sample, with modulation.

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

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:
phase_acc A pointer to a phase accumulator value.
phase_rate The phase increment to be applied.

SPAN_DECLARE int32_t   ) 
 

Find the scaling factor needed to achieve a specified level in dBm0.

Compress a block of octets.

Parameters:
s The V.42bis context.
buf The data to be compressed.
len The length of the data buffer.
Returns:
0

SPAN_DECLARE float   ) 
 

Find the frequency, in Hz, equivalent to a phase rate.

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

SPAN_DECLARE int32_t   ) 
 

Find the phase rate value to achieve a particular frequency.

Compress a block of octets.

Parameters:
s The V.42bis context.
buf The data to be compressed.
len The length of the data buffer.
Returns:
0


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