From 1fdb13daa6828224eb6291428bee8296887bd0c7 Mon Sep 17 00:00:00 2001 From: Russell Oliver Date: Sat, 5 Aug 2017 15:41:03 +1000 Subject: [PATCH] Eeschema Eagle Import: Parse all pin directions --- eeschema/sch_eagle_plugin.cpp | 41 ++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/eeschema/sch_eagle_plugin.cpp b/eeschema/sch_eagle_plugin.cpp index e3cf2edf51..e3cc988fdb 100644 --- a/eeschema/sch_eagle_plugin.cpp +++ b/eeschema/sch_eagle_plugin.cpp @@ -1303,8 +1303,47 @@ bool SCH_EAGLE_PLUGIN::loadSymbol( wxXmlNode* aSymbolNode, if(wxString(*ePin.direction).Lower()== "sup") { ispower = true; - pin->SetType(PIN_POWER_IN); + pin->SetType(PIN_POWER_OUT); } + else if(wxString(*ePin.direction).Lower()== "pas") + { + pin->SetType(PIN_PASSIVE); + } + else if(wxString(*ePin.direction).Lower()== "out") + { + pin->SetType(PIN_OUTPUT); + } + else if(wxString(*ePin.direction).Lower()== "in") + { + pin->SetType(PIN_INPUT); + } + else if(wxString(*ePin.direction).Lower()== "nc") + { + pin->SetType(PIN_NC); + } + else if(wxString(*ePin.direction).Lower()== "io") + { + pin->SetType(PIN_BIDI); + } + else if(wxString(*ePin.direction).Lower()== "oc") + { + pin->SetType(PIN_OPENEMITTER); + } + else if(wxString(*ePin.direction).Lower()== "hiz") + { + pin->SetType(PIN_TRISTATE); + } + else + { + pin->SetType(PIN_UNSPECIFIED); + } + + + + + + + }