KiCad PCB EDA Suite
Loading...
Searching...
No Matches
board_design_settings.h File Reference
#include <memory>
#include <netclass.h>
#include <project/net_settings.h>
#include <board_stackup_manager/board_stackup.h>
#include <drc/drc_engine.h>
#include <lset.h>
#include <settings/nested_settings.h>
#include <widgets/ui_common.h>
#include <zone_settings.h>
#include <teardrop/teardrop_parameters.h>
#include <router/pns_meander.h>

Go to the source code of this file.

Classes

struct  VIA_DIMENSION
 Container to handle a stock of specific vias each with unique diameter and drill sizes in the BOARD class. More...
 
struct  DIFF_PAIR_DIMENSION
 Container to handle a stock of specific differential pairs each with unique track width, gap and via gap. More...
 
struct  TEXT_ITEM_INFO
 
class  BOARD_DESIGN_SETTINGS
 Container for design settings for a BOARD object. More...
 

Macros

#define DEFAULT_SILK_LINE_WIDTH   0.1
 
#define DEFAULT_COPPER_LINE_WIDTH   0.2
 
#define DEFAULT_EDGE_WIDTH   0.05
 
#define DEFAULT_COURTYARD_WIDTH   0.05
 
#define DEFAULT_LINE_WIDTH   0.10
 
#define DEFAULT_SILK_TEXT_SIZE   1.0
 
#define DEFAULT_COPPER_TEXT_SIZE   1.5
 
#define DEFAULT_TEXT_SIZE   1.0
 
#define DEFAULT_SILK_TEXT_WIDTH   0.1
 
#define DEFAULT_COPPER_TEXT_WIDTH   0.30
 
#define DEFAULT_TEXT_WIDTH   0.15
 
#define DEFAULT_DIMENSION_ARROW_LENGTH   50
 
#define DEFAULT_DIMENSION_EXTENSION_OFFSET   0.5
 
#define DEFAULT_BOARD_THICKNESS_MM   1.6
 
#define DEFAULT_PCB_EDGE_THICKNESS   0.15
 
#define DEFAULT_SOLDERMASK_EXPANSION   0.0
 
#define DEFAULT_SOLDERMASK_TO_COPPER_CLEARANCE   0.0
 
#define DEFAULT_SOLDERMASK_MIN_WIDTH   0.0
 
#define DEFAULT_SOLDERPASTE_CLEARANCE   0.0
 
#define DEFAULT_SOLDERPASTE_RATIO   0.0
 
#define DEFAULT_CUSTOMTRACKWIDTH   0.2
 
#define DEFAULT_CUSTOMDPAIRWIDTH   0.125
 
#define DEFAULT_CUSTOMDPAIRGAP   0.18
 
#define DEFAULT_CUSTOMDPAIRVIAGAP   0.18
 
#define DEFAULT_MEANDER_SPACING   0.6
 
#define DEFAULT_DP_MEANDER_SPACING   1.0
 
#define DEFAULT_MINCLEARANCE   0.0
 
#define DEFAULT_MINCONNECTION   0.0
 
#define DEFAULT_TRACKMINWIDTH   0.0
 
#define DEFAULT_VIASMINSIZE   0.5
 
#define DEFAULT_MINTHROUGHDRILL   0.3
 
#define DEFAULT_MICROVIASMINSIZE   0.2
 
#define DEFAULT_MICROVIASMINDRILL   0.1
 
#define DEFAULT_HOLETOHOLEMIN   0.25
 
#define DEFAULT_HOLECLEARANCE   0.25
 
#define DEFAULT_COPPEREDGECLEARANCE   0.5
 
#define LEGACY_COPPEREDGECLEARANCE   -0.01
 
#define DEFAULT_SILKCLEARANCE   0.0
 
#define DEFAULT_MINRESOLVEDSPOKES   2
 
#define MINIMUM_ERROR_SIZE_MM   0.001
 
#define MAXIMUM_ERROR_SIZE_MM   0.1
 
#define MINIMUM_LINE_WIDTH_MM   0.005
 
#define MAXIMUM_LINE_WIDTH_MM   100.0
 
#define DEFAULT_PAD_WIDTH_MM   2.54
 
#define DEFAULT_PAD_HEIGTH_MM   1.27
 
#define DEFAULT_PAD_DRILL_DIAMETER_MM   0.8
 
#define DEFAULT_PAD_REACT_RADIUS   15
 

Enumerations

enum  {
  LAYER_CLASS_SILK = 0 , LAYER_CLASS_COPPER , LAYER_CLASS_EDGES , LAYER_CLASS_COURTYARD ,
  LAYER_CLASS_FAB , LAYER_CLASS_OTHERS , LAYER_CLASS_COUNT
}
 

Macro Definition Documentation

◆ DEFAULT_BOARD_THICKNESS_MM

#define DEFAULT_BOARD_THICKNESS_MM   1.6

Definition at line 60 of file board_design_settings.h.

◆ DEFAULT_COPPER_LINE_WIDTH

#define DEFAULT_COPPER_LINE_WIDTH   0.2

Definition at line 43 of file board_design_settings.h.

◆ DEFAULT_COPPER_TEXT_SIZE

#define DEFAULT_COPPER_TEXT_SIZE   1.5

Definition at line 49 of file board_design_settings.h.

◆ DEFAULT_COPPER_TEXT_WIDTH

#define DEFAULT_COPPER_TEXT_WIDTH   0.30

Definition at line 53 of file board_design_settings.h.

◆ DEFAULT_COPPEREDGECLEARANCE

#define DEFAULT_COPPEREDGECLEARANCE   0.5

Definition at line 93 of file board_design_settings.h.

◆ DEFAULT_COURTYARD_WIDTH

#define DEFAULT_COURTYARD_WIDTH   0.05

Definition at line 45 of file board_design_settings.h.

◆ DEFAULT_CUSTOMDPAIRGAP

#define DEFAULT_CUSTOMDPAIRGAP   0.18

Definition at line 77 of file board_design_settings.h.

◆ DEFAULT_CUSTOMDPAIRVIAGAP

#define DEFAULT_CUSTOMDPAIRVIAGAP   0.18

Definition at line 78 of file board_design_settings.h.

◆ DEFAULT_CUSTOMDPAIRWIDTH

#define DEFAULT_CUSTOMDPAIRWIDTH   0.125

Definition at line 76 of file board_design_settings.h.

◆ DEFAULT_CUSTOMTRACKWIDTH

#define DEFAULT_CUSTOMTRACKWIDTH   0.2

Definition at line 75 of file board_design_settings.h.

◆ DEFAULT_DIMENSION_ARROW_LENGTH

#define DEFAULT_DIMENSION_ARROW_LENGTH   50

Definition at line 56 of file board_design_settings.h.

◆ DEFAULT_DIMENSION_EXTENSION_OFFSET

#define DEFAULT_DIMENSION_EXTENSION_OFFSET   0.5

Definition at line 57 of file board_design_settings.h.

◆ DEFAULT_DP_MEANDER_SPACING

#define DEFAULT_DP_MEANDER_SPACING   1.0

Definition at line 81 of file board_design_settings.h.

◆ DEFAULT_EDGE_WIDTH

#define DEFAULT_EDGE_WIDTH   0.05

Definition at line 44 of file board_design_settings.h.

◆ DEFAULT_HOLECLEARANCE

#define DEFAULT_HOLECLEARANCE   0.25

Definition at line 91 of file board_design_settings.h.

◆ DEFAULT_HOLETOHOLEMIN

#define DEFAULT_HOLETOHOLEMIN   0.25

Definition at line 90 of file board_design_settings.h.

◆ DEFAULT_LINE_WIDTH

#define DEFAULT_LINE_WIDTH   0.10

Definition at line 46 of file board_design_settings.h.

◆ DEFAULT_MEANDER_SPACING

#define DEFAULT_MEANDER_SPACING   0.6

Definition at line 80 of file board_design_settings.h.

◆ DEFAULT_MICROVIASMINDRILL

#define DEFAULT_MICROVIASMINDRILL   0.1

Definition at line 89 of file board_design_settings.h.

◆ DEFAULT_MICROVIASMINSIZE

#define DEFAULT_MICROVIASMINSIZE   0.2

Definition at line 88 of file board_design_settings.h.

◆ DEFAULT_MINCLEARANCE

#define DEFAULT_MINCLEARANCE   0.0

Definition at line 83 of file board_design_settings.h.

◆ DEFAULT_MINCONNECTION

#define DEFAULT_MINCONNECTION   0.0

Definition at line 84 of file board_design_settings.h.

◆ DEFAULT_MINRESOLVEDSPOKES

#define DEFAULT_MINRESOLVEDSPOKES   2

Definition at line 98 of file board_design_settings.h.

◆ DEFAULT_MINTHROUGHDRILL

#define DEFAULT_MINTHROUGHDRILL   0.3

Definition at line 87 of file board_design_settings.h.

◆ DEFAULT_PAD_DRILL_DIAMETER_MM

#define DEFAULT_PAD_DRILL_DIAMETER_MM   0.8

Definition at line 110 of file board_design_settings.h.

◆ DEFAULT_PAD_HEIGTH_MM

#define DEFAULT_PAD_HEIGTH_MM   1.27

Definition at line 109 of file board_design_settings.h.

◆ DEFAULT_PAD_REACT_RADIUS

#define DEFAULT_PAD_REACT_RADIUS   15

Definition at line 111 of file board_design_settings.h.

◆ DEFAULT_PAD_WIDTH_MM

#define DEFAULT_PAD_WIDTH_MM   2.54

Definition at line 108 of file board_design_settings.h.

◆ DEFAULT_PCB_EDGE_THICKNESS

#define DEFAULT_PCB_EDGE_THICKNESS   0.15

Definition at line 62 of file board_design_settings.h.

◆ DEFAULT_SILK_LINE_WIDTH

#define DEFAULT_SILK_LINE_WIDTH   0.1

Definition at line 42 of file board_design_settings.h.

◆ DEFAULT_SILK_TEXT_SIZE

#define DEFAULT_SILK_TEXT_SIZE   1.0

Definition at line 48 of file board_design_settings.h.

◆ DEFAULT_SILK_TEXT_WIDTH

#define DEFAULT_SILK_TEXT_WIDTH   0.1

Definition at line 52 of file board_design_settings.h.

◆ DEFAULT_SILKCLEARANCE

#define DEFAULT_SILKCLEARANCE   0.0

Definition at line 96 of file board_design_settings.h.

◆ DEFAULT_SOLDERMASK_EXPANSION

#define DEFAULT_SOLDERMASK_EXPANSION   0.0

Definition at line 66 of file board_design_settings.h.

◆ DEFAULT_SOLDERMASK_MIN_WIDTH

#define DEFAULT_SOLDERMASK_MIN_WIDTH   0.0

Definition at line 70 of file board_design_settings.h.

◆ DEFAULT_SOLDERMASK_TO_COPPER_CLEARANCE

#define DEFAULT_SOLDERMASK_TO_COPPER_CLEARANCE   0.0

Definition at line 68 of file board_design_settings.h.

◆ DEFAULT_SOLDERPASTE_CLEARANCE

#define DEFAULT_SOLDERPASTE_CLEARANCE   0.0

Definition at line 72 of file board_design_settings.h.

◆ DEFAULT_SOLDERPASTE_RATIO

#define DEFAULT_SOLDERPASTE_RATIO   0.0

Definition at line 73 of file board_design_settings.h.

◆ DEFAULT_TEXT_SIZE

#define DEFAULT_TEXT_SIZE   1.0

Definition at line 50 of file board_design_settings.h.

◆ DEFAULT_TEXT_WIDTH

#define DEFAULT_TEXT_WIDTH   0.15

Definition at line 54 of file board_design_settings.h.

◆ DEFAULT_TRACKMINWIDTH

#define DEFAULT_TRACKMINWIDTH   0.0

Definition at line 85 of file board_design_settings.h.

◆ DEFAULT_VIASMINSIZE

#define DEFAULT_VIASMINSIZE   0.5

Definition at line 86 of file board_design_settings.h.

◆ LEGACY_COPPEREDGECLEARANCE

#define LEGACY_COPPEREDGECLEARANCE   -0.01

Definition at line 94 of file board_design_settings.h.

◆ MAXIMUM_ERROR_SIZE_MM

#define MAXIMUM_ERROR_SIZE_MM   0.1

Definition at line 101 of file board_design_settings.h.

◆ MAXIMUM_LINE_WIDTH_MM

#define MAXIMUM_LINE_WIDTH_MM   100.0

Definition at line 105 of file board_design_settings.h.

◆ MINIMUM_ERROR_SIZE_MM

#define MINIMUM_ERROR_SIZE_MM   0.001

Definition at line 100 of file board_design_settings.h.

◆ MINIMUM_LINE_WIDTH_MM

#define MINIMUM_LINE_WIDTH_MM   0.005

Definition at line 104 of file board_design_settings.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
LAYER_CLASS_SILK 
LAYER_CLASS_COPPER 
LAYER_CLASS_EDGES 
LAYER_CLASS_COURTYARD 
LAYER_CLASS_FAB 
LAYER_CLASS_OTHERS 
LAYER_CLASS_COUNT 

Definition at line 197 of file board_design_settings.h.