SoapySDR  0.8.1-gfbf9f3c3
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 
85 
92 
93 #ifdef __cplusplus
94 }
95 #endif
#define SOAPY_SDR_API
Definition: Config.h:41
SOAPY_SDR_API SoapySDRConverterFunction SoapySDRConverter_getFunction(const char *sourceFormat, const char *targetFormat)
SoapySDRConverterFunctionPriority
Definition: Converters.h:29
@ SOAPY_SDR_CONVERTER_CUSTOM
Custom user re-implementation. Max priority.
Definition: Converters.h:37
@ SOAPY_SDR_CONVERTER_GENERIC
Usual C for-loops, shifts, multiplies, etc. Min priority.
Definition: Converters.h:31
@ SOAPY_SDR_CONVERTER_VECTORIZED
Vectorized configurations such as SIMD.
Definition: Converters.h:34
SOAPY_SDR_API SoapySDRConverterFunction SoapySDRConverter_getFunctionWithPriority(const char *sourceFormat, const char *targetFormat, const SoapySDRConverterFunctionPriority priority)
void(* SoapySDRConverterFunction)(const void *, void *, const size_t, const double)
Definition: Converters.h:23
SOAPY_SDR_API SoapySDRConverterFunctionPriority * SoapySDRConverter_listPriorities(const char *sourceFormat, const char *targetFormat, size_t *length)
SOAPY_SDR_API char ** SoapySDRConverter_listTargetFormats(const char *sourceFormat, size_t *length)
SOAPY_SDR_API char ** SoapySDRConverter_listAvailableSourceFormats(size_t *length)
SOAPY_SDR_API char ** SoapySDRConverter_listSourceFormats(const char *targetFormat, size_t *length)