|
KiCad PCB EDA Suite
|
#include <api/api_enums.h>#include <wx/wx.h>#include <core/typeinfo.h>#include <erc/erc_settings.h>#include <layer_ids.h>#include <lib_symbol.h>#include <pin_type.h>#include <sch_symbol.h>#include <sch_label.h>#include <sch_sheet_pin.h>#include <symbol.h>#include <api/schematic/schematic_rules.pb.h>#include <api/schematic/schematic_types.pb.h>Go to the source code of this file.
Functions | |
| template<> | |
| types::SchematicLabelShape | ToProtoEnum (LABEL_FLAG_SHAPE aValue) |
| template<> | |
| LABEL_FLAG_SHAPE | FromProtoEnum (types::SchematicLabelShape aValue) |
| template<> | |
| types::SchematicLabelSpinStyle | ToProtoEnum (SPIN_STYLE::SPIN aValue) |
| template<> | |
| SPIN_STYLE::SPIN | FromProtoEnum (types::SchematicLabelSpinStyle aValue) |
| template<> | |
| types::SheetSide | ToProtoEnum (SHEET_SIDE aValue) |
| template<> | |
| SHEET_SIDE | FromProtoEnum (types::SheetSide aValue) |
| template<> | |
| types::SchematicSymbolType | ToProtoEnum (LIBRENTRYOPTIONS aValue) |
| template<> | |
| LIBRENTRYOPTIONS | FromProtoEnum (types::SchematicSymbolType aValue) |
| template<> | |
| types::SchematicSymbolOrientation | ToProtoEnum (SYMBOL_ORIENTATION_PROP aValue) |
| template<> | |
| SYMBOL_ORIENTATION_PROP | FromProtoEnum (types::SchematicSymbolOrientation aValue) |
| template<> | |
| types::SchematicPinOrientation | ToProtoEnum (PIN_ORIENTATION aValue) |
| template<> | |
| PIN_ORIENTATION | FromProtoEnum (types::SchematicPinOrientation aValue) |
| template<> | |
| types::SchematicPinShape | ToProtoEnum (GRAPHIC_PINSHAPE aValue) |
| template<> | |
| GRAPHIC_PINSHAPE | FromProtoEnum (types::SchematicPinShape aValue) |
| template<> | |
| types::PinMapOverrideMode | ToProtoEnum (PIN_MAP_OVERRIDE_MODE aValue) |
| template<> | |
| PIN_MAP_OVERRIDE_MODE | FromProtoEnum (types::PinMapOverrideMode aValue) |
| template<> | |
| types::SchematicPassthroughMode | ToProtoEnum (SCH_SYMBOL::PASSTHROUGH_MODE aValue) |
| template<> | |
| SCH_SYMBOL::PASSTHROUGH_MODE | FromProtoEnum (types::SchematicPassthroughMode aValue) |
| template<> | |
| ErcErrorType | ToProtoEnum (ERCE_T aValue) |
| template<> | |
| ERCE_T | FromProtoEnum (ErcErrorType aValue) |
| ERCE_T FromProtoEnum | ( | ErcErrorType | aValue | ) |
Definition at line 444 of file api_sch_enums.cpp.
References ERCE_ANNOTATION_ACTION, ERCE_BUS_ALIAS_CONFLICT, ERCE_BUS_ENTRY_CONFLICT, ERCE_BUS_ENTRY_NEEDED, ERCE_BUS_TO_BUS_CONFLICT, ERCE_BUS_TO_NET_CONFLICT, ERCE_DIFFERENT_UNIT_FP, ERCE_DIFFERENT_UNIT_NET, ERCE_DIFFERENT_UNIT_VALUE, ERCE_DRIVER_CONFLICT, ERCE_DUPLICATE_PIN_ERROR, ERCE_DUPLICATE_REFERENCE, ERCE_DUPLICATE_SHEET_NAME, ERCE_EMPTY_LABEL_NAME, ERCE_ENDPOINT_OFF_GRID, ERCE_EXTRA_UNITS, ERCE_FIELD_NAME_WHITESPACE, ERCE_FOOTPRINT_FILTERS, ERCE_FOOTPRINT_LINK_ISSUES, ERCE_FOUR_WAY_JUNCTION, ERCE_GENERIC_ERROR, ERCE_GENERIC_WARNING, ERCE_GROUND_PIN_NOT_GROUND, ERCE_HIERACHICAL_LABEL, ERCE_LABEL_MULTIPLE_WIRES, ERCE_LABEL_NOT_CONNECTED, ERCE_LABEL_SINGLE_PIN, ERCE_LIB_SYMBOL_ISSUES, ERCE_LIB_SYMBOL_MISMATCH, ERCE_MISSING_BIDI_PIN, ERCE_MISSING_INPUT_PIN, ERCE_MISSING_POWER_INPUT_PIN, ERCE_MISSING_UNIT, ERCE_NOCONNECT_CONNECTED, ERCE_NOCONNECT_NOT_CONNECTED, ERCE_PIN_MAP_BAD_PAD, ERCE_PIN_MAP_DUPLICATE_PAD, ERCE_PIN_MAP_STALE_PIN, ERCE_PIN_MAP_UNMAPPED_PIN, ERCE_PIN_NOT_CONNECTED, ERCE_PIN_NOT_DRIVEN, ERCE_PIN_TO_PIN_ERROR, ERCE_PIN_TO_PIN_WARNING, ERCE_POWERPIN_NOT_DRIVEN, ERCE_SAME_LOCAL_GLOBAL_LABEL, ERCE_SAME_LOCAL_GLOBAL_POWER, ERCE_SIMILAR_LABEL_AND_POWER, ERCE_SIMILAR_LABELS, ERCE_SIMILAR_POWER, ERCE_SIMULATION_MODEL, ERCE_SINGLE_GLOBAL_LABEL, ERCE_STACKED_PIN_SYNTAX, ERCE_UNANNOTATED, ERCE_UNCONNECTED_WIRE_ENDPOINT, ERCE_UNDEFINED_NETCLASS, ERCE_UNRESOLVED_VARIABLE, ERCE_UNSPECIFIED, ERCE_VARIANT_SYMBOL_INCOMPATIBLE, ERCE_VARIANT_SYMBOL_INVALID, and ERCE_WIRE_DANGLING.
| PIN_MAP_OVERRIDE_MODE FromProtoEnum | ( | types::PinMapOverrideMode | aValue | ) |
Definition at line 320 of file api_sch_enums.cpp.
References DELEGATE_TO_UNIT_1, FORCE_IDENTITY, USE_LIBRARY_DEFAULT, and USE_NAMED_MAP.
| LABEL_FLAG_SHAPE FromProtoEnum | ( | types::SchematicLabelShape | aValue | ) |
Definition at line 62 of file api_sch_enums.cpp.
References F_DIAMOND, F_DOT, F_RECTANGLE, F_ROUND, L_BIDI, L_INPUT, L_OUTPUT, L_TRISTATE, and L_UNSPECIFIED.
| SPIN_STYLE::SPIN FromProtoEnum | ( | types::SchematicLabelSpinStyle | aValue | ) |
Definition at line 102 of file api_sch_enums.cpp.
References SPIN_STYLE::BOTTOM, SPIN_STYLE::LEFT, SPIN_STYLE::RIGHT, and SPIN_STYLE::UP.
| SCH_SYMBOL::PASSTHROUGH_MODE FromProtoEnum | ( | types::SchematicPassthroughMode | aValue | ) |
Definition at line 354 of file api_sch_enums.cpp.
References SCH_SYMBOL::BLOCK, SCH_SYMBOL::DEFAULT, and SCH_SYMBOL::FORCE.
| PIN_ORIENTATION FromProtoEnum | ( | types::SchematicPinOrientation | aValue | ) |
| GRAPHIC_PINSHAPE FromProtoEnum | ( | types::SchematicPinShape | aValue | ) |
Definition at line 280 of file api_sch_enums.cpp.
References CLOCK, CLOCK_LOW, FALLING_EDGE_CLOCK, INPUT_LOW, INVERTED, INVERTED_CLOCK, LINE, NONLOGIC, and OUTPUT_LOW.
| SYMBOL_ORIENTATION_PROP FromProtoEnum | ( | types::SchematicSymbolOrientation | aValue | ) |
Definition at line 205 of file api_sch_enums.cpp.
References SYMBOL_ANGLE_0, SYMBOL_ANGLE_180, SYMBOL_ANGLE_270, and SYMBOL_ANGLE_90.
| LIBRENTRYOPTIONS FromProtoEnum | ( | types::SchematicSymbolType | aValue | ) |
Definition at line 171 of file api_sch_enums.cpp.
References ENTRY_GLOBAL_POWER, ENTRY_LOCAL_POWER, and ENTRY_NORMAL.
| SHEET_SIDE FromProtoEnum | ( | types::SheetSide | aValue | ) |
| ErcErrorType ToProtoEnum | ( | ERCE_T | aValue | ) |
Definition at line 371 of file api_sch_enums.cpp.
References ERCE_ANNOTATION_ACTION, ERCE_BUS_ALIAS_CONFLICT, ERCE_BUS_ENTRY_CONFLICT, ERCE_BUS_ENTRY_NEEDED, ERCE_BUS_TO_BUS_CONFLICT, ERCE_BUS_TO_NET_CONFLICT, ERCE_DIFFERENT_UNIT_FP, ERCE_DIFFERENT_UNIT_NET, ERCE_DIFFERENT_UNIT_VALUE, ERCE_DRIVER_CONFLICT, ERCE_DUPLICATE_PIN_ERROR, ERCE_DUPLICATE_REFERENCE, ERCE_DUPLICATE_SHEET_NAME, ERCE_EMPTY_LABEL_NAME, ERCE_ENDPOINT_OFF_GRID, ERCE_EXTRA_UNITS, ERCE_FIELD_NAME_WHITESPACE, ERCE_FOOTPRINT_FILTERS, ERCE_FOOTPRINT_LINK_ISSUES, ERCE_FOUR_WAY_JUNCTION, ERCE_GENERIC_ERROR, ERCE_GENERIC_WARNING, ERCE_GROUND_PIN_NOT_GROUND, ERCE_HIERACHICAL_LABEL, ERCE_LABEL_MULTIPLE_WIRES, ERCE_LABEL_NOT_CONNECTED, ERCE_LABEL_SINGLE_PIN, ERCE_LIB_SYMBOL_ISSUES, ERCE_LIB_SYMBOL_MISMATCH, ERCE_MISSING_BIDI_PIN, ERCE_MISSING_INPUT_PIN, ERCE_MISSING_POWER_INPUT_PIN, ERCE_MISSING_UNIT, ERCE_NOCONNECT_CONNECTED, ERCE_NOCONNECT_NOT_CONNECTED, ERCE_PIN_MAP_BAD_PAD, ERCE_PIN_MAP_DUPLICATE_PAD, ERCE_PIN_MAP_STALE_PIN, ERCE_PIN_MAP_UNMAPPED_PIN, ERCE_PIN_NOT_CONNECTED, ERCE_PIN_NOT_DRIVEN, ERCE_PIN_TO_PIN_ERROR, ERCE_PIN_TO_PIN_WARNING, ERCE_POWERPIN_NOT_DRIVEN, ERCE_SAME_LOCAL_GLOBAL_LABEL, ERCE_SAME_LOCAL_GLOBAL_POWER, ERCE_SIMILAR_LABEL_AND_POWER, ERCE_SIMILAR_LABELS, ERCE_SIMILAR_POWER, ERCE_SIMULATION_MODEL, ERCE_SINGLE_GLOBAL_LABEL, ERCE_STACKED_PIN_SYNTAX, ERCE_UNANNOTATED, ERCE_UNCONNECTED_WIRE_ENDPOINT, ERCE_UNDEFINED_NETCLASS, ERCE_UNRESOLVED_VARIABLE, ERCE_UNSPECIFIED, ERCE_VARIANT_SYMBOL_INCOMPATIBLE, ERCE_VARIANT_SYMBOL_INVALID, and ERCE_WIRE_DANGLING.
| types::SchematicPinShape ToProtoEnum | ( | GRAPHIC_PINSHAPE | aValue | ) |
Definition at line 258 of file api_sch_enums.cpp.
References CLOCK, CLOCK_LOW, FALLING_EDGE_CLOCK, INPUT_LOW, INVERTED, INVERTED_CLOCK, LINE, NONLOGIC, and OUTPUT_LOW.
| types::SchematicLabelShape ToProtoEnum | ( | LABEL_FLAG_SHAPE | aValue | ) |
Definition at line 40 of file api_sch_enums.cpp.
References F_DIAMOND, F_DOT, F_RECTANGLE, F_ROUND, L_BIDI, L_INPUT, L_OUTPUT, L_TRISTATE, and L_UNSPECIFIED.
| types::SchematicSymbolType ToProtoEnum | ( | LIBRENTRYOPTIONS | aValue | ) |
Definition at line 155 of file api_sch_enums.cpp.
References ENTRY_GLOBAL_POWER, ENTRY_LOCAL_POWER, and ENTRY_NORMAL.
| types::PinMapOverrideMode ToProtoEnum | ( | PIN_MAP_OVERRIDE_MODE | aValue | ) |
Definition at line 303 of file api_sch_enums.cpp.
References DELEGATE_TO_UNIT_1, FORCE_IDENTITY, USE_LIBRARY_DEFAULT, and USE_NAMED_MAP.
| types::SchematicPinOrientation ToProtoEnum | ( | PIN_ORIENTATION | aValue | ) |
| types::SchematicPassthroughMode ToProtoEnum | ( | SCH_SYMBOL::PASSTHROUGH_MODE | aValue | ) |
Definition at line 338 of file api_sch_enums.cpp.
References SCH_SYMBOL::BLOCK, SCH_SYMBOL::DEFAULT, and SCH_SYMBOL::FORCE.
| types::SheetSide ToProtoEnum | ( | SHEET_SIDE | aValue | ) |
| types::SchematicLabelSpinStyle ToProtoEnum | ( | SPIN_STYLE::SPIN | aValue | ) |
Definition at line 85 of file api_sch_enums.cpp.
References SPIN_STYLE::BOTTOM, SPIN_STYLE::LEFT, SPIN_STYLE::RIGHT, and SPIN_STYLE::UP.
| types::SchematicSymbolOrientation ToProtoEnum | ( | SYMBOL_ORIENTATION_PROP | aValue | ) |
Definition at line 188 of file api_sch_enums.cpp.
References SYMBOL_ANGLE_0, SYMBOL_ANGLE_180, SYMBOL_ANGLE_270, and SYMBOL_ANGLE_90.