KiCad PCB EDA Suite
Loading...
Searching...
No Matches
erc.cpp File Reference
#include <algorithm>
#include <numeric>
#include "connection_graph.h"
#include "kiface_ids.h"
#include <advanced_config.h>
#include <common.h>
#include <erc/erc.h>
#include <erc/erc_sch_pin_context.h>
#include <gal/graphics_abstraction_layer.h>
#include <string_utils.h>
#include <sch_pin.h>
#include <project_sch.h>
#include <project/project_file.h>
#include <project/net_settings.h>
#include <sch_edit_frame.h>
#include <sch_marker.h>
#include <sch_reference_list.h>
#include <sch_rule_area.h>
#include <sch_sheet.h>
#include <sch_sheet_pin.h>
#include <sch_textbox.h>
#include <sch_line.h>
#include <schematic.h>
#include <symbol_lib_table.h>
#include <drawing_sheet/ds_draw_item.h>
#include <drawing_sheet/ds_proxy_view_item.h>
#include <wx/ffile.h>
#include <sim/sim_lib_mgr.h>
#include <progress_reporter.h>
#include <kiway.h>

Go to the source code of this file.

Functions

void CheckDuplicatePins (LIB_SYMBOL *aSymbol, std::vector< wxString > &aMessages, UNITS_PROVIDER *aUnitsProvider)
 

Variables

const wxString CommentERC_H []
 
const wxString CommentERC_V []
 
const std::set< ELECTRICAL_PINTYPEDrivingPinTypes
 
const std::set< ELECTRICAL_PINTYPEDrivingPowerPinTypes
 
const std::set< ELECTRICAL_PINTYPEDrivenPinTypes
 

Function Documentation

◆ CheckDuplicatePins()

void CheckDuplicatePins ( LIB_SYMBOL aSymbol,
std::vector< wxString > &  aMessages,
UNITS_PROVIDER aUnitsProvider 
)

Variable Documentation

◆ CommentERC_H

const wxString CommentERC_H[]
Initial value:
=
{
_( "Input Pin" ),
_( "Output Pin" ),
_( "Bidirectional Pin" ),
_( "Tri-State Pin" ),
_( "Passive Pin" ),
_( "Free Pin" ),
_( "Unspecified Pin" ),
_( "Power Input Pin" ),
_( "Power Output Pin" ),
_( "Open Collector" ),
_( "Open Emitter" ),
_( "No Connection" )
}
#define _(s)

Definition at line 75 of file erc.cpp.

Referenced by PANEL_SETUP_PINMAP::reBuildMatrixPanel().

◆ CommentERC_V

const wxString CommentERC_V[]
Initial value:
=
{
_( "Input Pin" ),
_( "Output Pin" ),
_( "Bidirectional Pin" ),
_( "Tri-State Pin" ),
_( "Passive Pin" ),
_( "Free Pin" ),
_( "Unspecified Pin" ),
_( "Power Input Pin" ),
_( "Power Output Pin" ),
_( "Open Collector" ),
_( "Open Emitter" ),
_( "No Connection" )
}

Definition at line 92 of file erc.cpp.

Referenced by PANEL_SETUP_PINMAP::reBuildMatrixPanel().

◆ DrivenPinTypes

const std::set<ELECTRICAL_PINTYPE> DrivenPinTypes
Initial value:
=
{
}
@ PT_INPUT
usual pin input: must be connected
@ PT_POWER_IN
power input (GND, VCC for ICs). Must be connected to a power output.

Definition at line 130 of file erc.cpp.

Referenced by ERC_TESTER::TestPinToPin().

◆ DrivingPinTypes

const std::set<ELECTRICAL_PINTYPE> DrivingPinTypes
Initial value:
=
{
}
@ PT_OUTPUT
usual output
@ PT_TRISTATE
tris state bus pin
@ PT_BIDI
input or output (like port for a microprocessor)
@ PT_POWER_OUT
output of a regulator: intended to be connected to power input pins
@ PT_PASSIVE
pin for passive symbols: must be connected, and can be connected to any pin

Definition at line 112 of file erc.cpp.

Referenced by ERC_TESTER::TestPinToPin().

◆ DrivingPowerPinTypes

const std::set<ELECTRICAL_PINTYPE> DrivingPowerPinTypes
Initial value:

Definition at line 124 of file erc.cpp.

Referenced by ERC_TESTER::TestPinToPin().