SoapySDR: Converters.h Source File

| SoapySDR 0.8.1-ARCH Vendor and platform neutral SDR interface library

Converters.h
Go to the documentation of this file.
1
10
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{
31 SOAPY_SDR_CONVERTER_GENERIC = 0,
32
34 SOAPY_SDR_CONVERTER_VECTORIZED = 3,
35
37 SOAPY_SDR_CONVERTER_CUSTOM = 5
38} SoapySDRConverterFunctionPriority;
39
40#ifdef __cplusplus
41extern "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
91 SOAPY_SDR_API char **SoapySDRConverter_listAvailableSourceFormats(size_t *length);
92
93#ifdef __cplusplus
94}
95#endif
Config.h
SOAPY_SDR_API
#define SOAPY_SDR_API
Definition: Config.h:41
Constants.h
SoapySDRConverter_getFunction
SOAPY_SDR_API SoapySDRConverterFunction SoapySDRConverter_getFunction(const char *sourceFormat, const char *targetFormat)
SoapySDRConverterFunctionPriority
SoapySDRConverterFunctionPriority
Definition: Converters.h:29
SOAPY_SDR_CONVERTER_CUSTOM
@ SOAPY_SDR_CONVERTER_CUSTOM
Custom user re-implementation. Max priority.
Definition: Converters.h:37
SOAPY_SDR_CONVERTER_GENERIC
@ SOAPY_SDR_CONVERTER_GENERIC
Usual C for-loops, shifts, multiplies, etc. Min priority.
Definition: Converters.h:31
SOAPY_SDR_CONVERTER_VECTORIZED
@ SOAPY_SDR_CONVERTER_VECTORIZED
Vectorized configurations such as SIMD.
Definition: Converters.h:34
SoapySDRConverter_getFunctionWithPriority
SOAPY_SDR_API SoapySDRConverterFunction SoapySDRConverter_getFunctionWithPriority(const char *sourceFormat, const char *targetFormat, const SoapySDRConverterFunctionPriority priority)
SoapySDRConverterFunction
void(* SoapySDRConverterFunction)(const void *, void *, const size_t, const double)
Definition: Converters.h:23
SoapySDRConverter_listTargetFormats
SOAPY_SDR_API char ** SoapySDRConverter_listTargetFormats(const char *sourceFormat, size_t *length)
SoapySDRConverter_listAvailableSourceFormats
SOAPY_SDR_API char ** SoapySDRConverter_listAvailableSourceFormats(size_t *length)
SoapySDRConverter_listPriorities
SOAPY_SDR_API SoapySDRConverterFunctionPriority * SoapySDRConverter_listPriorities(const char *sourceFormat, const char *targetFormat, size_t *length)
SoapySDRConverter_listSourceFormats
SOAPY_SDR_API char ** SoapySDRConverter_listSourceFormats(const char *targetFormat, size_t *length)
Errors.h
Types.h