mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-07 07:23:43 +00:00
Additional de-embedding options: 2xthru and matching network
This commit is contained in:
parent
51806b936c
commit
09d5c53bc7
37 changed files with 2954 additions and 100 deletions
|
|
@ -0,0 +1,33 @@
|
|||
#include "deembeddingoption.h"
|
||||
|
||||
#include "portextension.h"
|
||||
#include "twothru.h"
|
||||
#include "matchingnetwork.h"
|
||||
|
||||
DeembeddingOption *DeembeddingOption::create(DeembeddingOption::Type type)
|
||||
{
|
||||
switch(type) {
|
||||
case Type::PortExtension:
|
||||
return new PortExtension();
|
||||
case Type::TwoThru:
|
||||
return new TwoThru();
|
||||
case Type::MatchingNetwork:
|
||||
return new MatchingNetwork();
|
||||
default:
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
QString DeembeddingOption::getName(DeembeddingOption::Type type)
|
||||
{
|
||||
switch(type) {
|
||||
case Type::PortExtension:
|
||||
return "Port Extension";
|
||||
case Type::TwoThru:
|
||||
return "2xThru";
|
||||
case Type::MatchingNetwork:
|
||||
return "Matching Network";
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue