KiCad PCB EDA Suite
Loading...
Searching...
No Matches
api_sch_enums.cpp File Reference
#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)
 

Function Documentation

◆ FromProtoEnum() [1/10]

template<>
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.

◆ FromProtoEnum() [2/10]

template<>
PIN_MAP_OVERRIDE_MODE FromProtoEnum ( types::PinMapOverrideMode aValue)

◆ FromProtoEnum() [3/10]

template<>
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.

◆ FromProtoEnum() [4/10]

template<>
SPIN_STYLE::SPIN FromProtoEnum ( types::SchematicLabelSpinStyle aValue)

◆ FromProtoEnum() [5/10]

template<>
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.

◆ FromProtoEnum() [6/10]

template<>
PIN_ORIENTATION FromProtoEnum ( types::SchematicPinOrientation aValue)

Definition at line 240 of file api_sch_enums.cpp.

References PIN_DOWN, PIN_LEFT, PIN_RIGHT, and PIN_UP.

◆ FromProtoEnum() [7/10]

template<>
GRAPHIC_PINSHAPE FromProtoEnum ( types::SchematicPinShape aValue)

◆ FromProtoEnum() [8/10]

template<>
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.

◆ FromProtoEnum() [9/10]

template<>
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.

◆ FromProtoEnum() [10/10]

template<>
SHEET_SIDE FromProtoEnum ( types::SheetSide aValue)

Definition at line 137 of file api_sch_enums.cpp.

References BOTTOM, LEFT, RIGHT, TOP, and UNDEFINED.

◆ ToProtoEnum() [1/10]

template<>
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.

◆ ToProtoEnum() [2/10]

template<>
types::SchematicPinShape ToProtoEnum ( GRAPHIC_PINSHAPE aValue)

◆ ToProtoEnum() [3/10]

template<>
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.

◆ ToProtoEnum() [4/10]

template<>
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.

◆ ToProtoEnum() [5/10]

template<>
types::PinMapOverrideMode ToProtoEnum ( PIN_MAP_OVERRIDE_MODE aValue)

◆ ToProtoEnum() [6/10]

template<>
types::SchematicPinOrientation ToProtoEnum ( PIN_ORIENTATION aValue)

Definition at line 223 of file api_sch_enums.cpp.

References PIN_DOWN, PIN_LEFT, PIN_RIGHT, and PIN_UP.

◆ ToProtoEnum() [7/10]

template<>
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.

◆ ToProtoEnum() [8/10]

template<>
types::SheetSide ToProtoEnum ( SHEET_SIDE aValue)

Definition at line 120 of file api_sch_enums.cpp.

References BOTTOM, LEFT, RIGHT, and TOP.

◆ ToProtoEnum() [9/10]

template<>
types::SchematicLabelSpinStyle ToProtoEnum ( SPIN_STYLE::SPIN aValue)

◆ ToProtoEnum() [10/10]

template<>
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.