Test Dynamic API¶
Interface¶
Listed below is the full interface to the dds family of
objects.
create()¶
Create digital synthesizer object
dds_cccf = dds_cccf_create(unsigned int _num_stages, float _fc, float _bw, float _as);
unsigned int _num_stages: number of half-band stagesfloat _fc: signal relative center frequencyfloat _bw: signal relative bandwidthfloat _as: filter stop-band attenuation (dB)returns new
dds_cccfobject
copy()¶
Copy object including all internal objects and state
dds_cccf = dds_cccf_copy(dds_cccf _q);
dds_cccf _q:returns new
dds_cccfobject
destroy()¶
Destroy digital synthesizer object
int = dds_cccf_destroy(dds_cccf _q);
dds_cccf _q:returns standard error code
print()¶
Print synthesizer object internals
int = dds_cccf_print(dds_cccf _q);
dds_cccf _q:returns standard error code
reset()¶
Reset synthesizer object internals
int = dds_cccf_reset(dds_cccf _q);
dds_cccf _q:returns standard error code
set_scale()¶
Set output scaling for synthesizer
int = dds_cccf_set_scale(dds_cccf _q, float complex _scale);
dds_cccf _q: synthesizer objectfloat complex _scale: scaling factor to apply to each output samplereturns standard error code
get_scale()¶
Get output scaling for synthesizer
int = dds_cccf_get_scale(dds_cccf _q, float complex * _scale);
dds_cccf _q: synthesizer objectfloat complex * _scale: scaling factor to apply to each output samplereturns standard error code
get_num_stages()¶
Get number of half-band states in DDS object
unsigned int = dds_cccf_get_num_stages(dds_cccf _q);
dds_cccf _q:returns something good
get_delay_interp()¶
Get delay (samples) when running as interpolator
unsigned int = dds_cccf_get_delay_interp(dds_cccf _q);
dds_cccf _q:returns something good
get_delay_decim()¶
Get delay (samples) when running as decimator
float = dds_cccf_get_delay_decim(dds_cccf _q);
dds_cccf _q:returns something good
decim_execute()¶
Run DDS object as decimator
int = dds_cccf_decim_execute(dds_cccf _q, float complex * _x, float complex * _y);
dds_cccf _q: synthesizer objectfloat complex * _x: input data arrayfloat complex * _y: output samplereturns standard error code
interp_execute()¶
Run DDS object as interpolator
int = dds_cccf_interp_execute(dds_cccf _q, float complex _x, float complex * _y);
dds_cccf _q: synthesizer objectfloat complex _x: input samplefloat complex * _y: output data arrayreturns standard error code