KiCad PCB EDA Suite
Loading...
Searching...
No Matches
erc_settings.h File Reference
#include <erc_item.h>
#include <pin_type.h>
#include <settings/nested_settings.h>
#include <widgets/ui_common.h>

Go to the source code of this file.

Classes

class  ERC_SETTINGS
 Container for ERC settings. More...
 
class  SHEETLIST_ERC_ITEMS_PROVIDER
 An implementation of the RC_ITEM_LIST interface which uses the global SHEETLIST to fulfill the contract. More...
 

Macros

#define NPI   4
 Types of drive on a net (used for legacy ERC)
 
#define DRV   3
 
#define NET_NC   2
 
#define NOD   1
 
#define NOC   0
 

Enumerations

enum  ERCE_T {
  ERCE_UNSPECIFIED = 0 , ERCE_FIRST , ERCE_DUPLICATE_SHEET_NAME = ERCE_FIRST , ERCE_ENDPOINT_OFF_GRID ,
  ERCE_PIN_NOT_CONNECTED , ERCE_PIN_NOT_DRIVEN , ERCE_POWERPIN_NOT_DRIVEN , ERCE_HIERACHICAL_LABEL ,
  ERCE_NOCONNECT_CONNECTED , ERCE_NOCONNECT_NOT_CONNECTED , ERCE_LABEL_NOT_CONNECTED , ERCE_SIMILAR_LABELS ,
  ERCE_SINGLE_GLOBAL_LABEL , ERCE_DIFFERENT_UNIT_FP , ERCE_MISSING_POWER_INPUT_PIN , ERCE_MISSING_INPUT_PIN ,
  ERCE_MISSING_BIDI_PIN , ERCE_MISSING_UNIT , ERCE_DIFFERENT_UNIT_NET , ERCE_BUS_ALIAS_CONFLICT ,
  ERCE_DRIVER_CONFLICT , ERCE_BUS_ENTRY_CONFLICT , ERCE_BUS_TO_BUS_CONFLICT , ERCE_BUS_TO_NET_CONFLICT ,
  ERCE_NETCLASS_CONFLICT , ERCE_GLOBLABEL , ERCE_UNRESOLVED_VARIABLE , ERCE_UNDEFINED_NETCLASS ,
  ERCE_SIMULATION_MODEL , ERCE_WIRE_DANGLING , ERCE_LIB_SYMBOL_ISSUES , ERCE_LIB_SYMBOL_MISMATCH ,
  ERCE_FOOTPRINT_LINK_ISSUES , ERCE_UNANNOTATED , ERCE_EXTRA_UNITS , ERCE_DIFFERENT_UNIT_VALUE ,
  ERCE_DUPLICATE_REFERENCE , ERCE_BUS_ENTRY_NEEDED , ERCE_LAST = ERCE_BUS_ENTRY_NEEDED , ERCE_PIN_TO_PIN_WARNING ,
  ERCE_PIN_TO_PIN_ERROR , ERCE_ANNOTATION_ACTION
}
 ERC error codes. More...
 
enum class  PIN_ERROR { OK , WARNING , PP_ERROR , UNCONNECTED }
 The values a pin-to-pin entry in the pin matrix can take on. More...
 

Macro Definition Documentation

◆ DRV

#define DRV   3

Definition at line 107 of file erc_settings.h.

◆ NET_NC

#define NET_NC   2

Definition at line 108 of file erc_settings.h.

◆ NOC

#define NOC   0

Definition at line 110 of file erc_settings.h.

◆ NOD

#define NOD   1

Definition at line 109 of file erc_settings.h.

◆ NPI

#define NPI   4

Types of drive on a net (used for legacy ERC)

Definition at line 106 of file erc_settings.h.

Enumeration Type Documentation

◆ ERCE_T

enum ERCE_T

ERC error codes.

Enumerator
ERCE_UNSPECIFIED 
ERCE_FIRST 
ERCE_DUPLICATE_SHEET_NAME 

Duplicate sheet names within a given sheet.

ERCE_ENDPOINT_OFF_GRID 

Pin or wire-end off grid.

ERCE_PIN_NOT_CONNECTED 

Pin not connected and not no connect symbol.

ERCE_PIN_NOT_DRIVEN 

Pin connected to some others pins but no pin to drive it.

pins to drive it can be output, passive, 3sttae, I/O

ERCE_POWERPIN_NOT_DRIVEN 

Power input pin connected to some others pins but no power out pin to drive it.

ERCE_HIERACHICAL_LABEL 

Mismatch between hierarchical labels and pins sheets.

ERCE_NOCONNECT_CONNECTED 

A no connect symbol is connected to more than 1 pin.

ERCE_NOCONNECT_NOT_CONNECTED 

A no connect symbol is not connected to anything.

ERCE_LABEL_NOT_CONNECTED 

Label not connected to anything.

ERCE_SIMILAR_LABELS 

2 labels are equal for case insensitive comparisons.

ERCE_SINGLE_GLOBAL_LABEL 

A global label only exists once in the schematic.

ERCE_DIFFERENT_UNIT_FP 

Different units of the same symbol have different footprints assigned.

ERCE_MISSING_POWER_INPUT_PIN 

Symbol has power input pins that are not placed on the schematic.

ERCE_MISSING_INPUT_PIN 

Symbol has input pins that are not placed.

ERCE_MISSING_BIDI_PIN 

Symbol has bi-directional pins that are not placed.

ERCE_MISSING_UNIT 

Symbol has units that are not placed on the schematic.

ERCE_DIFFERENT_UNIT_NET 

Shared pin in a multi-unit symbol is connected to more than one net.

ERCE_BUS_ALIAS_CONFLICT 

Conflicting bus alias definitions across sheets.

ERCE_DRIVER_CONFLICT 

Conflicting drivers (labels, etc) on a subgraph.

ERCE_BUS_ENTRY_CONFLICT 

A wire connected to a bus doesn't match the bus.

ERCE_BUS_TO_BUS_CONFLICT 

A connection between bus objects doesn't share at least one net.

ERCE_BUS_TO_NET_CONFLICT 

A bus wire is graphically connected to a net port/pin (or vice versa).

ERCE_NETCLASS_CONFLICT 

Multiple labels assign different netclasses to same net.

ERCE_GLOBLABEL 

A global label is unique.

ERCE_UNRESOLVED_VARIABLE 

A text variable could not be resolved.

ERCE_UNDEFINED_NETCLASS 

A netclass was referenced but not defined.

ERCE_SIMULATION_MODEL 

An error was found in the simulation model.

ERCE_WIRE_DANGLING 

Some wires are not connected to anything else.

ERCE_LIB_SYMBOL_ISSUES 

Symbol not found in active libraries.

ERCE_LIB_SYMBOL_MISMATCH 

Symbol doesn't match copy in library.

ERCE_FOOTPRINT_LINK_ISSUES 

The footprint link is invalid, or points to a missing (or inactive) footprint or library.

ERCE_UNANNOTATED 

Symbol has not been annotated.

ERCE_EXTRA_UNITS 

Symbol has more units than are defined.

ERCE_DIFFERENT_UNIT_VALUE 

Units of same symbol have different values.

ERCE_DUPLICATE_REFERENCE 

More than one symbol with the same reference.

ERCE_BUS_ENTRY_NEEDED 

Importer failed to auto-place a bus entry.

ERCE_LAST 
ERCE_PIN_TO_PIN_WARNING 
ERCE_PIN_TO_PIN_ERROR 
ERCE_ANNOTATION_ACTION 

Definition at line 36 of file erc_settings.h.

◆ PIN_ERROR

enum class PIN_ERROR
strong

The values a pin-to-pin entry in the pin matrix can take on.

Enumerator
OK 
WARNING 
PP_ERROR 
UNCONNECTED 

Definition at line 97 of file erc_settings.h.