KiCad PCB EDA Suite
Loading...
Searching...
No Matches
via_protection_rules.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or (at your
9 * option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20#ifndef VIA_PROTECTION_RULES_H
21#define VIA_PROTECTION_RULES_H
22
28{
29
31inline bool CapAllowed( bool aFilled )
32{
33 return aFilled;
34}
35
36
38inline bool PlugAllowed( bool aFilled )
39{
40 return !aFilled;
41}
42
43
46inline bool CoverAllowed( bool aFilled, bool aTented, bool aPlugged )
47{
48 return aFilled || aTented || aPlugged;
49}
50
51} // namespace VIA_PROTECTION_RULES
52
53#endif
Which IPC-4761 via protection features can be built together.
bool PlugAllowed(bool aFilled)
A plug is a partial fill from one side. A filled hole has nothing left to plug.
bool CoverAllowed(bool aFilled, bool aTented, bool aPlugged)
A cover is a second coat over a tent, a plug or a fill.
bool CapAllowed(bool aFilled)
A cap is copper plated over a filled hole, so it needs the fill.