4#include "common/dsp/complex.h"
14 std::vector<std::shared_ptr<Block>> &blk;
19 std::string getShortTypeName()
21 if (std::is_same_v<T, complex_t>)
23 else if (std::is_same_v<T, float>)
25 else if (std::is_same_v<T, int16_t>)
27 else if (std::is_same_v<T, int8_t>)
29 else if (std::is_same_v<T, uint8_t>)
32 throw satdump_exception(
"Invalid type for DSP blocks!");
36 BlockIOType getTypeSampleType()
38 if (std::is_same_v<T, complex_t>)
39 return DSP_SAMPLE_TYPE_CF32;
40 else if (std::is_same_v<T, float>)
41 return DSP_SAMPLE_TYPE_F32;
42 else if (std::is_same_v<T, int16_t>)
43 return DSP_SAMPLE_TYPE_S16;
44 else if (std::is_same_v<T, int8_t>)
45 return DSP_SAMPLE_TYPE_S8;
46 else if (std::is_same_v<T, uint8_t>)
47 return DSP_SAMPLE_TYPE_U8;
49 throw satdump_exception(
"Invalid type for DSP blocks!");
Definition block_helpers.h:12