33#include <api/schematic/schematic_rules.pb.h>
34#include <api/schematic/schematic_types.pb.h>
55 wxCHECK_MSG(
false, types::SchematicLabelShape::SLSH_UNKNOWN,
56 "Unhandled case in ToProtoEnum<LABEL_FLAG_SHAPE>" );
66 case types::SchematicLabelShape::SLSH_UNKNOWN:
79 "Unhandled case in FromProtoEnum<types::SchematicLabelShape>" );
95 wxCHECK_MSG(
false, types::SchematicLabelSpinStyle::SLSS_UNKNOWN,
96 "Unhandled case in ToProtoEnum<SPIN_STYLE::SPIN>" );
106 case types::SchematicLabelSpinStyle::SLSS_UNKNOWN:
114 "Unhandled case in FromProtoEnum<types::SchematicLabelSpinStyle>" );
130 wxCHECK_MSG(
false, types::SheetSide::SHS_UNKNOWN,
131 "Unhandled case in ToProtoEnum<SHEET_SIDE>" );
149 "Unhandled case in FromProtoEnum<types::SheetSide>" );
164 wxCHECK_MSG(
false, types::SchematicSymbolType::SST_UNKNOWN,
165 "Unhandled case in ToProtoEnum<SHEET_SIDE>" );
175 case types::SchematicSymbolType::SST_UNKNOWN:
182 "Unhandled case in FromProtoEnum<types::SchematicSymbolType>" );
198 wxCHECK_MSG(
false, types::SchematicSymbolOrientation::SSO_UNKNOWN,
199 "Unhandled case in ToProtoEnum<SYMBOL_ORIENTATION_PROP>" );
209 case types::SchematicSymbolOrientation::SSO_UNKNOWN:
217 "Unhandled case in FromProtoEnum<types::SchematicSymbolOrientation>" );
233 wxCHECK_MSG(
false, types::SchematicPinOrientation::SPO_UNKNOWN,
234 "Unhandled case in ToProtoEnum<PIN_ORIENTATION>" );
244 case types::SchematicPinOrientation::SPO_UNKNOWN:
252 "Unhandled case in FromProtoEnum<types::SheetSide>" );
273 wxCHECK_MSG(
false, types::SchematicPinShape::SPS_UNKNOWN,
274 "Unhandled case in ToProtoEnum<GRAPHIC_PINSHAPE>" );
284 case types::SchematicPinShape::SPS_UNKNOWN:
297 "Unhandled case in FromProtoEnum<types::SchematicPinShape>" );
313 wxCHECK_MSG(
false, types::PinMapOverrideMode::PMOM_USE_LIBRARY_DEFAULT,
314 "Unhandled case in ToProtoEnum<PIN_MAP_OVERRIDE_MODE>" );
324 case types::PinMapOverrideMode::PMOM_UNKNOWN:
332 "Unhandled case in FromProtoEnum<types::PinMapOverrideMode>" );
347 wxCHECK_MSG(
false, types::SchematicPassthroughMode::SPM_DEFAULT,
348 "Unhandled case in ToProtoEnum<SCH_SYMBOL::PASSTHROUGH_MODE>" );
358 case types::SchematicPassthroughMode::SPM_UNKNOWN:
365 "Unhandled case in FromProtoEnum<types::SchematicPassthroughMode>" );
437 wxCHECK_MSG(
false, ErcErrorType::ERCET_UNKNOWN,
438 "Unhandled case in ToProtoEnum<ERCE_T>" );
508 case ErcErrorType::ERCET_UNKNOWN:
types::SchematicLabelShape ToProtoEnum(LABEL_FLAG_SHAPE aValue)
LABEL_FLAG_SHAPE FromProtoEnum(types::SchematicLabelShape aValue)
@ ERCE_UNANNOTATED
Symbol has not been annotated.
@ ERCE_POWERPIN_NOT_DRIVEN
Power input pin connected to some others pins but no power out pin to drive it.
@ ERCE_DRIVER_CONFLICT
Conflicting drivers (labels, etc) on a subgraph.
@ ERCE_SIMILAR_POWER
2 power pins are equal for case insensitive comparisons.
@ ERCE_MISSING_POWER_INPUT_PIN
Symbol has power input pins that are not placed on the schematic.
@ ERCE_UNCONNECTED_WIRE_ENDPOINT
A label is connected to more than one wire.
@ ERCE_GROUND_PIN_NOT_GROUND
A ground-labeled pin is not on a ground net while another pin is.
@ ERCE_SIMILAR_LABELS
2 labels are equal for case insensitive comparisons.
@ ERCE_VARIANT_SYMBOL_INCOMPATIBLE
Variant symbol override fails pin compatibility.
@ ERCE_STACKED_PIN_SYNTAX
Pin name resembles stacked pin notation.
@ ERCE_LABEL_NOT_CONNECTED
Label not connected to any pins.
@ ERCE_ENDPOINT_OFF_GRID
Pin or wire-end off grid.
@ ERCE_DUPLICATE_REFERENCE
More than one symbol with the same reference.
@ ERCE_EMPTY_LABEL_NAME
Label has an empty or whitespace-only name.
@ ERCE_EXTRA_UNITS
Symbol has more units than are defined.
@ ERCE_SAME_LOCAL_GLOBAL_LABEL
2 labels are equal for case insensitive comparisons.
@ ERCE_BUS_TO_BUS_CONFLICT
A connection between bus objects doesn't share at least one net.
@ ERCE_SIMILAR_LABEL_AND_POWER
label and pin are equal for case insensitive comparisons.
@ ERCE_SAME_LOCAL_GLOBAL_POWER
Local power port and global power port have the same name.
@ ERCE_PIN_MAP_BAD_PAD
Pin map references a pad absent from the footprint.
@ ERCE_LABEL_SINGLE_PIN
A label is connected only to a single pin.
@ ERCE_BUS_ENTRY_CONFLICT
A wire connected to a bus doesn't match the bus.
@ ERCE_FOOTPRINT_LINK_ISSUES
The footprint link is invalid, or points to a missing (or inactive) footprint or library.
@ ERCE_PIN_MAP_DUPLICATE_PAD
Two symbol pins map to one pad (not stacked/jumper).
@ ERCE_BUS_TO_NET_CONFLICT
A bus wire is graphically connected to a net port/pin (or vice versa).
@ ERCE_DUPLICATE_PIN_ERROR
@ ERCE_NOCONNECT_NOT_CONNECTED
A no connect symbol is not connected to anything.
@ ERCE_DIFFERENT_UNIT_NET
Shared pin in a multi-unit symbol is connected to more than one net.
@ ERCE_FOUR_WAY_JUNCTION
A four-way junction was found.
@ ERCE_PIN_NOT_CONNECTED
Pin not connected and not no connect symbol.
@ ERCE_UNDEFINED_NETCLASS
A netclass was referenced but not defined.
@ ERCE_BUS_ENTRY_NEEDED
Importer failed to auto-place a bus entry.
@ ERCE_UNRESOLVED_VARIABLE
A text variable could not be resolved.
@ ERCE_SIMULATION_MODEL
An error was found in the simulation model.
@ ERCE_LIB_SYMBOL_MISMATCH
Symbol doesn't match copy in library.
@ ERCE_DIFFERENT_UNIT_FP
Different units of the same symbol have different footprints assigned.
@ ERCE_NOCONNECT_CONNECTED
A no connect symbol is connected to more than 1 pin.
@ ERCE_PIN_TO_PIN_WARNING
@ ERCE_PIN_NOT_DRIVEN
Pin connected to some others pins but no pin to drive it.
@ ERCE_MISSING_INPUT_PIN
Symbol has input pins that are not placed.
@ ERCE_MISSING_UNIT
Symbol has units that are not placed on the schematic.
@ ERCE_FIELD_NAME_WHITESPACE
Field name has leading or trailing whitespace.
@ ERCE_DUPLICATE_SHEET_NAME
Duplicate sheet names within a given sheet.
@ ERCE_PIN_MAP_STALE_PIN
Pin map references a pin number not on the symbol.
@ ERCE_MISSING_BIDI_PIN
Symbol has bi-directional pins that are not placed.
@ ERCE_LIB_SYMBOL_ISSUES
Symbol not found in active libraries.
@ ERCE_FOOTPRINT_FILTERS
The assigned footprint doesn't match the footprint filters.
@ ERCE_HIERACHICAL_LABEL
Mismatch between hierarchical labels and pins sheets.
@ ERCE_WIRE_DANGLING
Some wires are not connected to anything else.
@ ERCE_BUS_ALIAS_CONFLICT
Conflicting bus alias definitions across sheets.
@ ERCE_VARIANT_SYMBOL_INVALID
Variant symbol override LIB_ID cannot be resolved.
@ ERCE_SINGLE_GLOBAL_LABEL
A label only exists once in the schematic.
@ ERCE_PIN_MAP_UNMAPPED_PIN
A connected pin resolves to no footprint pad.
@ ERCE_LABEL_MULTIPLE_WIRES
A label is connected to more than one wire.
@ ERCE_DIFFERENT_UNIT_VALUE
Units of same symbol have different values.
PIN_MAP_OVERRIDE_MODE
Override mode stored on a SCH_SYMBOL_INSTANCE.
PIN_ORIENTATION
The symbol library pin object orientations.
@ PIN_UP
The pin extends upwards from the connection point: Probably on the bottom side of the symbol.
@ PIN_RIGHT
The pin extends rightwards from the connection point.
@ PIN_LEFT
The pin extends leftwards from the connection point: Probably on the right side of the symbol.
@ PIN_DOWN
The pin extends downwards from the connection: Probably on the top side of the symbol.
SHEET_SIDE
Define the edge of the sheet that the sheet pin is positioned.