#include <stdio.h>
#include <inttypes.h>
#include "spandsp/telephony.h"
#include "spandsp/complex.h"
#include "spandsp/dds.h"
Defines | |
#define | SLENK 11 |
#define | SINELEN (1 << SLENK) |
Functions | |
int32_t | dds_phase_ratef (float frequency) |
float | dds_frequencyf (int32_t phase_rate) |
float | dds_scaling_dbm0f (float level) |
float | dds_scaling_dbovf (float level) |
float | ddsf (uint32_t *phase_acc, int32_t phase_rate) |
Generate a floating point tone sample. | |
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_complex_modf (uint32_t *phase_acc, int32_t phase_rate, float scale, int32_t phase) |
Generate a complex floating point tone sample, with modulation. |
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.
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. |
complexf_t dds_complexf | ( | uint32_t * | phase_acc, | |
int32_t | phase_rate | |||
) |
Generate a complex floating point tone sample.
phase_acc | A pointer to a phase accumulator value. | |
phase_rate | The phase increment to be applied. |
float dds_modf | ( | uint32_t * | phase_acc, | |
int32_t | phase_rate, | |||
float | scale, | |||
int32_t | phase | |||
) |
Generate a floating point tone sample, with modulation.
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. |
float ddsf | ( | uint32_t * | phase_acc, | |
int32_t | phase_rate | |||
) |
Generate a floating point tone sample.
phase_acc | A pointer to a phase accumulator value. | |
phase_rate | The phase increment to be applied. |