SoapySDR  0.8.0-gab626068
Vendor and platform neutral SDR interface library
Converters.h
Go to the documentation of this file.
1 
11 #pragma once
12 #include <SoapySDR/Config.h>
13 #include <SoapySDR/Errors.h>
14 #include <SoapySDR/Types.h>
15 #include <SoapySDR/Constants.h>
16 
23 typedef void (*SoapySDRConverterFunction)(const void *, void *, const size_t, const double);
24 
28 typedef enum
29 {
32 
35 
39 
40 #ifdef __cplusplus
41 extern "C"
42 {
43 #endif
44 
51 SOAPY_SDR_API char **SoapySDRConverter_listTargetFormats(const char *sourceFormat, size_t *length);
52 
59 SOAPY_SDR_API char **SoapySDRConverter_listSourceFormats(const char *targetFormat, size_t *length);
60 
68 SOAPY_SDR_API SoapySDRConverterFunctionPriority *SoapySDRConverter_listPriorities(const char *sourceFormat, const char *targetFormat, size_t *length);
69 
76 SOAPY_SDR_API SoapySDRConverterFunction SoapySDRConverter_getFunction(const char *sourceFormat, const char *targetFormat);
77 
84 SOAPY_SDR_API SoapySDRConverterFunction SoapySDRConverter_getFunctionWithPriority(const char *sourceFormat, const char *targetFormat, const SoapySDRConverterFunctionPriority priority);
85 
92 
93 #ifdef __cplusplus
94 }
95 #endif
SOAPY_SDR_CONVERTER_GENERIC
@ SOAPY_SDR_CONVERTER_GENERIC
Usual C for-loops, shifts, multiplies, etc. Min priority.
Definition: Converters.h:31
SOAPY_SDR_API
#define SOAPY_SDR_API
Definition: Config.h:41
Types.h
SoapySDRConverterFunctionPriority
SoapySDRConverterFunctionPriority
Definition: Converters.h:28
SoapySDRConverter_listSourceFormats
SOAPY_SDR_API char ** SoapySDRConverter_listSourceFormats(const char *targetFormat, size_t *length)
SoapySDRConverter_listTargetFormats
SOAPY_SDR_API char ** SoapySDRConverter_listTargetFormats(const char *sourceFormat, size_t *length)
Constants.h
SoapySDRConverter_getFunctionWithPriority
SOAPY_SDR_API SoapySDRConverterFunction SoapySDRConverter_getFunctionWithPriority(const char *sourceFormat, const char *targetFormat, const SoapySDRConverterFunctionPriority priority)
SoapySDRConverter_getFunction
SOAPY_SDR_API SoapySDRConverterFunction SoapySDRConverter_getFunction(const char *sourceFormat, const char *targetFormat)
Errors.h
Config.h
SOAPY_SDR_CONVERTER_CUSTOM
@ SOAPY_SDR_CONVERTER_CUSTOM
Custom user re-implementation. Max priority.
Definition: Converters.h:37
SoapySDRConverter_listPriorities
SOAPY_SDR_API SoapySDRConverterFunctionPriority * SoapySDRConverter_listPriorities(const char *sourceFormat, const char *targetFormat, size_t *length)
SoapySDRConverter_listAvailableSourceFormats
SOAPY_SDR_API char ** SoapySDRConverter_listAvailableSourceFormats(size_t *length)
SOAPY_SDR_CONVERTER_VECTORIZED
@ SOAPY_SDR_CONVERTER_VECTORIZED
Vectorized configurations such as SIMD.
Definition: Converters.h:34
SoapySDRConverterFunction
void(* SoapySDRConverterFunction)(const void *, void *, const size_t, const double)
Definition: Converters.h:23