dds.h File Reference

Go to the source code of this file.

Functions

int32_t dds_phase_rate (float frequency)
 Find the phase rate value to achieve a particular frequency.
float dds_frequency (int32_t phase_rate)
 Find the frequency, in Hz, equivalent to a phase rate.
int dds_scaling_dbm0 (float level)
 Find the scaling factor needed to achieve a specified level in dBm0.
int dds_scaling_dbov (float level)
 Find the scaling factor needed to achieve a specified level in dBmov.
int16_t dds_lookup (uint32_t phase)
 Find the amplitude for a particular phase.
int16_t dds_offset (uint32_t phase_acc, int32_t phase_offset)
 Find the amplitude for a particular phase offset from an accumulated phase.
void dds_advance (uint32_t *phase_acc, int32_t phase_rate)
 Advance the phase, without returning any new signal sample.
int16_t dds (uint32_t *phase_acc, int32_t phase_rate)
 Generate an integer tone sample.
int16_t dds_mod (uint32_t *phase_acc, int32_t phase_rate, int scale, int32_t phase)
 Generate an integer tone sample, with modulation.
complexi_t dds_complexi (uint32_t *phase_acc, int32_t phase_rate)
 Generate a complex integer tone sample.
complexi_t dds_lookup_complexi (uint32_t phase)
 Lookup the complex integer value of a specified phase.
complexi_t dds_complexi_mod (uint32_t *phase_acc, int32_t phase_rate, int scale, int32_t phase)
 Generate a complex integer tone sample, with modulation.
int32_t dds_phase_ratef (float frequency)
 Find the phase rate equivalent to a frequency, in Hz.
float dds_frequencyf (int32_t phase_rate)
 Find the frequency, in Hz, equivalent to a phase rate.
float dds_scaling_dbm0f (float level)
 Find the scaling factor equivalent to a dBm0 value.
float dds_scaling_dbovf (float level)
 Find the scaling factor equivalent to a dBmov value.
void dds_advancef (uint32_t *phase_acc, int32_t phase_rate)
 Advance the phase, without returning any new signal sample.
float ddsf (uint32_t *phase_acc, int32_t phase_rate)
 Generate a floating point tone sample.
float dds_lookupf (uint32_t phase)
 Lookup the floating point value of a specified phase.
float dds_modf (uint32_t *phase_acc, int32_t phase_rate, float scale, int32_t phase)
 Generate a floating point tone sample, with modulation.
complexf_t dds_complexf (uint32_t *phase_acc, int32_t phase_rate)
 Generate a complex floating point tone sample.
complexf_t dds_lookup_complexf (uint32_t phase_acc)
 Lookup the complex value of a specified phase.
complexf_t dds_complex_modf (uint32_t *phase_acc, int32_t phase_rate, float scale, int32_t phase)
 Generate a complex floating point tone sample, with modulation.


Detailed Description


Function Documentation

int16_t dds uint32_t *  phase_acc,
int32_t  phase_rate
 

Generate an integer tone sample.

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

void dds_advance uint32_t *  phase_acc,
int32_t  phase_rate
 

Advance the phase, without returning any new signal sample.

Parameters:
phase_acc A pointer to a phase accumulator value.
phase_rate The phase increment to be applied.

void dds_advancef uint32_t *  phase_acc,
int32_t  phase_rate
 

Advance the phase, without returning any new signal sample.

Parameters:
phase_acc A pointer to a phase accumulator value.
phase_rate The phase increment to be applied.

complexf_t dds_complex_modf uint32_t *  phase_acc,
int32_t  phase_rate,
float  scale,
int32_t  phase
 

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

complexf_t dds_complexf uint32_t *  phase_acc,
int32_t  phase_rate
 

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).

complexi_t dds_complexi uint32_t *  phase_acc,
int32_t  phase_rate
 

Generate a complex 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).

complexi_t dds_complexi_mod uint32_t *  phase_acc,
int32_t  phase_rate,
int  scale,
int32_t  phase
 

Generate a complex 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).

float dds_frequency int32_t  phase_rate  ) 
 

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

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

float dds_frequencyf int32_t  phase_rate  ) 
 

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

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

int16_t dds_lookup uint32_t  phase  ) 
 

Find the amplitude for a particular phase.

Parameters:
phase The phase accumulator value to be looked up.
Returns:
The signal amplitude, between -32767 and 32767.

complexf_t dds_lookup_complexf uint32_t  phase_acc  ) 
 

Lookup the complex value of a specified phase.

Parameters:
phase The phase accumulator value to be looked up.
Returns:
The complex signal amplitude, between (-1.0, -1.0) and (1.0, 1.0).

complexi_t dds_lookup_complexi uint32_t  phase  ) 
 

Lookup the complex integer value of a specified phase.

Parameters:
phase The phase accumulator value to be looked up.
Returns:
The complex signal amplitude, between (-32767, -32767) and (32767, 32767).

float dds_lookupf uint32_t  phase  ) 
 

Lookup the floating point value of a specified phase.

Parameters:
phase The phase accumulator value to be looked up.
Returns:
The signal amplitude, between -1.0 and 1.0.

int16_t dds_mod uint32_t *  phase_acc,
int32_t  phase_rate,
int  scale,
int32_t  phase
 

Generate an 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 signal amplitude, between -32767 and 32767.

float dds_modf uint32_t *  phase_acc,
int32_t  phase_rate,
float  scale,
int32_t  phase
 

Generate a floating point 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 signal amplitude, between -1.0 and 1.0.

int16_t dds_offset uint32_t  phase_acc,
int32_t  phase_offset
 

Find the amplitude for a particular phase offset from an accumulated phase.

Parameters:
phase_acc The accumulated phase.
phase_offset The phase offset.
Returns:
The signal amplitude.

int32_t dds_phase_rate float  frequency  ) 
 

Find the phase rate value to achieve a particular frequency.

Parameters:
frequency The desired frequency, in Hz.
Returns:
The phase rate which while achieve the desired frequency.

int32_t dds_phase_ratef float  frequency  ) 
 

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

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

int dds_scaling_dbm0 float  level  ) 
 

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

Parameters:
level The desired signal level, in dBm0.
Returns:
The scaling factor.

float dds_scaling_dbm0f float  level  ) 
 

Find the scaling factor equivalent to a dBm0 value.

Parameters:
level The signal level in dBm0.
Returns:
The equivalent scaling factor.

int dds_scaling_dbov float  level  ) 
 

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

Parameters:
level The desired signal level, in dBmov.
Returns:
The scaling factor.

float dds_scaling_dbovf float  level  ) 
 

Find the scaling factor equivalent to a dBmov value.

Parameters:
level The signal level in dBmov.
Returns:
The equivalent scaling factor.

float ddsf uint32_t *  phase_acc,
int32_t  phase_rate
 

Generate a floating point tone sample.

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


Generated on Sat Oct 5 11:05:44 2013 for libspandsp by  doxygen 1.4.6