EU1KY AA
oslfile.h
Go to the documentation of this file.
1 #ifndef _OSLFILE_H_
2 #define _OSLFILE_H_
3 
4 #include <complex.h>
5 #include <stdint.h>
6 
7 float complex OSL_GFromZ(float complex Z, float Rbase);
8 float complex OSL_ZFromG(float complex Z, float Rbase);
9 float complex OSL_CorrectZ(uint32_t fhz, float complex zMeasured);
10 float complex OSL_GtoMA(float complex G);
11 float complex OSL_ParabolicInterpolation(float complex y1, float complex y2, float complex y3, //values for frequencies x1, x2, x3
12  float x1, float x2, float x3, //frequencies of respective y values
13  float x); //Frequency between x2 and x3 where we want to interpolate result
14 
15 int32_t OSL_GetSelected(void);
16 const char* OSL_GetSelectedName(void);
17 void OSL_Select(int32_t index);
18 int32_t OSL_IsSelectedValid(void);
19 
20 void OSL_ScanOpen(void(*progresscb)(uint32_t));
21 void OSL_ScanShort(void(*progresscb)(uint32_t));
22 void OSL_ScanLoad(void(*progresscb)(uint32_t));
23 void OSL_Calculate(void);
24 void OSL_LoadErrCorr(void);
25 void OSL_ScanErrCorr(void(*progresscb)(uint32_t));
26 void OSL_CorrectErr(uint32_t fhz, float *magdif, float *phdif);
27 int32_t OSL_IsErrCorrLoaded(void);
28 
29 #endif //_OSLFILE_H_
void OSL_ScanShort(void(*progresscb)(uint32_t))
Definition: oslfile.c:306
int32_t OSL_IsErrCorrLoaded(void)
Definition: oslfile.c:117
void OSL_CorrectErr(uint32_t fhz, float *magdif, float *phdif)
Definition: oslfile.c:179
void OSL_ScanErrCorr(void(*progresscb)(uint32_t))
Definition: oslfile.c:142
float complex OSL_GFromZ(float complex Z, float Rbase)
Definition: oslfile.c:499
void OSL_LoadErrCorr(void)
Definition: oslfile.c:122
void OSL_Calculate(void)
Definition: oslfile.c:453
void OSL_ScanLoad(void(*progresscb)(uint32_t))
Definition: oslfile.c:337
void OSL_Select(int32_t index)
Definition: oslfile.c:296
void OSL_ScanOpen(void(*progresscb)(uint32_t))
Definition: oslfile.c:368
float complex OSL_ParabolicInterpolation(float complex y1, float complex y2, float complex y3, float x1, float x2, float x3, float x)
Definition: oslfile.c:264
float complex OSL_CorrectZ(uint32_t fhz, float complex zMeasured)
Definition: oslfile.c:588
static float phdif
Definition: dsp.c:60
static float magdif
Definition: dsp.c:58
float complex OSL_GtoMA(float complex G)
Definition: oslfile.c:606
int32_t OSL_GetSelected(void)
Definition: oslfile.c:274
float complex OSL_ZFromG(float complex Z, float Rbase)
Definition: oslfile.c:510
const char * OSL_GetSelectedName(void)
Definition: oslfile.c:286
int32_t OSL_IsSelectedValid(void)
Definition: oslfile.c:279