KiCad PCB EDA Suite
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
 SHEETLIST_ERC_ITEMS_PROVIDER is an implementation of the RC_ITEM_LISTinterface which uses the global SHEETLIST to fulfill the contract. More...
 

Macros

#define NPI   4
 Types of drive on a net (used for legacy ERC) More...
 
#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_PIN_NOT_CONNECTED,
  ERCE_PIN_NOT_DRIVEN, ERCE_HIERACHICAL_LABEL, ERCE_NOCONNECT_CONNECTED, ERCE_NOCONNECT_NOT_CONNECTED,
  ERCE_LABEL_NOT_CONNECTED, ERCE_SIMILAR_LABELS, ERCE_DIFFERENT_UNIT_FP, ERCE_DIFFERENT_UNIT_NET,
  ERCE_BUS_ALIAS_CONFLICT, ERCE_DRIVER_CONFLICT, ERCE_BUS_ENTRY_CONFLICT, ERCE_BUS_LABEL_ERROR,
  ERCE_BUS_TO_BUS_CONFLICT, ERCE_BUS_TO_NET_CONFLICT, ERCE_GLOBLABEL, ERCE_UNRESOLVED_VARIABLE,
  ERCE_LAST = ERCE_UNRESOLVED_VARIABLE, ERCE_PIN_TO_PIN_WARNING, ERCE_PIN_TO_PIN_ERROR
}
 ERC error codes. More...
 
enum  PIN_ERROR { PIN_ERROR::OK, PIN_ERROR::WARNING, PIN_ERROR::PP_ERROR, PIN_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 76 of file erc_settings.h.

◆ NET_NC

#define NET_NC   2

Definition at line 77 of file erc_settings.h.

◆ NOC

#define NOC   0

Definition at line 79 of file erc_settings.h.

◆ NOD

#define NOD   1

Definition at line 78 of file erc_settings.h.

◆ NPI

#define NPI   4

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

Definition at line 75 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 
ERCE_PIN_NOT_CONNECTED 
ERCE_PIN_NOT_DRIVEN 
ERCE_HIERACHICAL_LABEL 
ERCE_NOCONNECT_CONNECTED 
ERCE_NOCONNECT_NOT_CONNECTED 
ERCE_LABEL_NOT_CONNECTED 
ERCE_SIMILAR_LABELS 
ERCE_DIFFERENT_UNIT_FP 
ERCE_DIFFERENT_UNIT_NET 
ERCE_BUS_ALIAS_CONFLICT 
ERCE_DRIVER_CONFLICT 
ERCE_BUS_ENTRY_CONFLICT 
ERCE_BUS_LABEL_ERROR 
ERCE_BUS_TO_BUS_CONFLICT 
ERCE_BUS_TO_NET_CONFLICT 
ERCE_GLOBLABEL 
ERCE_UNRESOLVED_VARIABLE 
ERCE_LAST 
ERCE_PIN_TO_PIN_WARNING 
ERCE_PIN_TO_PIN_ERROR 

Definition at line 35 of file erc_settings.h.

36 {
37  ERCE_UNSPECIFIED = 0,
38  ERCE_FIRST,
39  ERCE_DUPLICATE_SHEET_NAME = ERCE_FIRST, // duplicate sheet names within a given sheet
40  ERCE_PIN_NOT_CONNECTED, // pin not connected and not no connect symbol
41  ERCE_PIN_NOT_DRIVEN, // pin connected to some others pins but no pin to drive it
42  ERCE_HIERACHICAL_LABEL, // mismatch between hierarchical labels and pins sheets
43  ERCE_NOCONNECT_CONNECTED, // a no connect symbol is connected to more than 1 pin
44  ERCE_NOCONNECT_NOT_CONNECTED, // a no connect symbol is not connected to anything
45  ERCE_LABEL_NOT_CONNECTED, // label not connected to anything
46  ERCE_SIMILAR_LABELS, // 2 labels are equal fir case insensitive comparisons
47  ERCE_DIFFERENT_UNIT_FP, // different units of the same component have different footprints assigned
48  ERCE_DIFFERENT_UNIT_NET, // a shared pin in a multi-unit component is connected to more than one net
49  ERCE_BUS_ALIAS_CONFLICT, // conflicting bus alias definitions across sheets
50  ERCE_DRIVER_CONFLICT, // conflicting drivers (labels, etc) on a subgraph
51  ERCE_BUS_ENTRY_CONFLICT, // a wire connected to a bus doesn't match the bus
52  ERCE_BUS_LABEL_ERROR, // a label attached to a bus isn't in bus format
53  ERCE_BUS_TO_BUS_CONFLICT, // a connection between bus objects doesn't share at least one net
54  ERCE_BUS_TO_NET_CONFLICT, // a bus wire is graphically connected to a net port/pin (or vice versa)
55  ERCE_GLOBLABEL, // a global label is unique
58 
59  // Errors after this point will not automatically appear in the Severities Panel
60 
61  ERCE_PIN_TO_PIN_WARNING, // pin connected to an other pin: warning level
62  ERCE_PIN_TO_PIN_ERROR, // pin connected to an other pin: error level
63 };

◆ PIN_ERROR

enum 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 66 of file erc_settings.h.