EU1KY AA
match.h File Reference
#include <stdint.h>
#include <complex.h>

Go to the source code of this file.

Data Structures

struct  MATCH_S
 L-Network solution structure. More...
 

Functions

uint32_t MATCH_Calc (float complex ZL, MATCH_S *pResult)
 Calculate L-Networks on ideal lumped elements for given load impedance. More...
 
void MATCH_XtoStr (uint32_t FHz, float X, char *str)
 Convert X to capacitor (in pF) or inductance (in uH) string value. More...
 

Function Documentation

uint32_t MATCH_Calc ( float complex  ZL,
MATCH_S pResult 
)

Calculate L-Networks on ideal lumped elements for given load impedance.

Parameters
ZLLoad impedance
pResultarray of 4 MATCH_S structures
Returns
0 if no solution available (or not needed), 1..4 for number of solutions found and filled into pResult
void MATCH_XtoStr ( uint32_t  FHz,
float  X,
char *  str 
)

Convert X to capacitor (in pF) or inductance (in uH) string value.

Parameters
FHzFrequency in Hz
Ximpedance to convert to capacitor or inductor value at frequency FHz
strpointer to string buffer