EU1KY AA
match.h
Go to the documentation of this file.
1 /*
2  * (c) Yury Kuchura
3  * kuchura@gmail.com
4  *
5  * This code can be used on terms of WTFPL Version 2 (http://www.wtfpl.net/).
6  */
7 
8 #ifndef _MATCH_H_
9 #define _MATCH_H_
10 
11 #include <stdint.h>
12 #include <complex.h>
13 
15 typedef struct
16 {
17  float XPS;
18  float XS;
19  float XPL;
20 } MATCH_S;
21 
28 uint32_t MATCH_Calc(float complex ZL, MATCH_S *pResult);
29 
36 void MATCH_XtoStr(uint32_t FHz, float X, char* str);
37 
38 #endif // _MATCH_H_
uint32_t MATCH_Calc(float complex ZL, MATCH_S *pResult)
Calculate L-Networks on ideal lumped elements for given load impedance.
Definition: match.c:103
void MATCH_XtoStr(uint32_t FHz, float X, char *str)
Convert X to capacitor (in pF) or inductance (in uH) string value.
Definition: match.c:137
char str[6]
Definition: panvswr2.c:1674
float XPS
Reactance parallel to source (can be NAN if not applicable)
Definition: match.h:17
float XS
Serial reactance (can be 0.0 if not applicable)
Definition: match.h:18
L-Network solution structure.
Definition: match.h:15
float XPL
Reactance parallel to load (can be NAN if not applicable)
Definition: match.h:19