Functions for CON_SIL (connector) footprints. More...
Go to the source code of this file.
Functions | |
int | con_sil_create_element () |
Create an Element for a CON_SIL package. | |
int | con_sil_create_packages_list () |
Create a list of CON_SIL packages with pre-defined values. | |
int | con_sil_drc () |
Do some Design Rule Checking for the CON_SIL package type. | |
int | con_sil_get_default_footprint_values () |
Look up default values for CON_SIL footprints. | |
int | con_sil_set_gui_constraints () |
Set GUI constraints for the CON_SIL package type. | |
int | con_sil_write_footprint () |
Write a CON_SIL pin through hole footprint. | |
REGISTER_FUNCTIONS (con_sil_function_list) | |
A list containing all CON_SIL related functions. | |
Variables | |
static fpw_function_t | con_sil_function_list [] |
A list containing all CON_SIL related functions. |
Functions for CON_SIL (connector) footprints.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Definition in file con_sil.c.
int con_sil_create_element | ( | ) |
Create an Element for a CON_SIL package.
EXIT_SUCCESS
when an element was created, EXIT_FAILURE
when errors were encountered. Definition at line 36 of file con_sil.c.
References attributes_in_footprint, courtyard, courtyard_clearance_with_package, courtyard_length, courtyard_line_width, courtyard_width, create_attributes_in_element(), create_new_line(), create_new_pad(), create_new_pin(), TextType::Direction, FlagType::f, footprint_filename, footprint_name, footprint_refdes, footprint_type, footprint_value, ID, ElementType::MarkX, ElementType::MarkY, multiplier, ElementType::Name, number_of_rows, package_body_length, package_body_width, pad_clearance, pad_diameter, pad_length, pad_shape, pad_shapes_type, pad_solder_mask_clearance, pad_width, pin1_square, pin_drill_diameter, pitch_x, pitch_y, TextType::Scale, silkscreen_indicate_1, silkscreen_line_width, silkscreen_package_outline, TextType::TextString, verbose, TextType::X, and TextType::Y.
int con_sil_create_packages_list | ( | ) |
int con_sil_drc | ( | ) |
Do some Design Rule Checking for the CON_SIL package type.
EXIT_SUCCESS
when no DRC violations were encountered, EXIT_FAILURE
when DRC violations were found. Definition at line 419 of file con_sil.c.
References courtyard_clearance_with_package, courtyard_length, courtyard_width, fiducial, footprint_name, footprint_type, MIL, MIL_100, MM, NO_UNITS, number_of_columns, number_of_rows, package_body_height, package_body_length, package_body_width, pad_clearance, pad_diameter, pad_shapes_type, pad_width, pitch_x, pitch_y, silkscreen_line_width, silkscreen_package_outline, units_type, and verbose.
Referenced by write_footprint().
int con_sil_get_default_footprint_values | ( | ) |
Look up default values for CON_SIL footprints.
Footprint values can be looked up by placing a question mark "?" in front of the footprint name.
If the footprint name is recognised the values will be loaded and the entries involved in the GUI will be updated accordingly.
Currently the following footprints are supported:
CON_SIL-127P-2N, CON_SIL-127P-3N, CON_SIL-127P-4N, CON_SIL-127P-5N, CON_SIL-127P-6N, CON_SIL-127P-7N, CON_SIL-127P-8N, CON_SIL-127P-9N, CON_SIL-127P-10N, CON_SIL-127P-12N, CON_SIL-127P-20N, CON_SIL-127P-24N, CON_SIL-127P-31N, CON_SIL-127P-36N, CON_SIL-127P-40N, CON_SIL-127P-50N, CON_SIL-254P-2N, CON_SIL-254P-3N, CON_SIL-254P-4N, CON_SIL-254P-5N, CON_SIL-254P-6N, CON_SIL-254P-7N, CON_SIL-254P-8N, CON_SIL-254P-9N, CON_SIL-254P-10N, CON_SIL-254P-12N, CON_SIL-254P-20N, CON_SIL-254P-24N, CON_SIL-254P-31N, CON_SIL-254P-36N, CON_SIL-254P-40N, CON_SIL-254P-50N, CON_SIL-350P-2N, CON_SIL-350P-3N, CON_SIL-350P-4N, CON_SIL-350P-5N, CON_SIL-350P-6N, CON_SIL-350P-7N, CON_SIL-350P-8N, CON_SIL-350P-10N, CON_SIL-350P-12N, CON_SIL-508P-2N, CON_SIL-508P-3N, CON_SIL-508P-4N, CON_SIL-508P-5N, CON_SIL-508P-6N, CON_SIL-508P-7N, CON_SIL-508P-8N, CON_SIL-508P-9N, CON_SIL-508P-10N, CON_SIL-508P-12N, CON_SIL-508P-24N,
EXIT_SUCCESS
when default values for a footprint were found, EXIT_FAILURE
when the footprint name was not found. Definition at line 780 of file con_sil.c.
References count_x, count_y, courtyard, courtyard_length, courtyard_line_width, courtyard_width, fiducial, fiducial_pad_diameter, fiducial_pad_solder_mask_clearance, footprint_name, footprint_units, number_of_columns, number_of_pins, number_of_rows, package_body_height, package_body_length, package_body_width, package_is_radial, pad_diameter, pad_shape, pad_solder_mask_clearance, pin_drill_diameter, pitch_x, pitch_y, silkscreen_length, silkscreen_line_width, silkscreen_package_outline, silkscreen_width, thermal, thermal_length, and thermal_width.
Referenced by on_footprint_name_entry_changed().
int con_sil_set_gui_constraints | ( | ) |
Set GUI constraints for the CON_SIL package type.
This function is only to be compiled for GUI targets.
EXIT_SUCCESS
when the function is completed. Definition at line 2447 of file con_sil.c.
References gui_constraints_disable_heel_and_toe_goals_tab_widgets(), gui_constraints_disable_thermal_tab_widgets(), UPPER_LEFT, and widget.
Referenced by on_footprint_type_entry_changed().
int con_sil_write_footprint | ( | ) |
Write a CON_SIL pin through hole footprint.
The pin/pad numbering scheme of the CON-DIP package is:
1
2
3
4
EXIT_FAILURE
when errors were encountered, EXIT_SUCCESS
when OK. Definition at line 2500 of file con_sil.c.
References attributes_in_footprint, courtyard, courtyard_clearance_with_package, courtyard_length, courtyard_line_width, courtyard_width, footprint_filename, footprint_type, fp, license_in_footprint, multiplier, number_of_columns, number_of_rows, package_body_length, package_body_width, pad_clearance, pad_diameter, pad_length, pad_shape, pad_solder_mask_clearance, pad_width, pin1_square, pin_drill_diameter, pitch_y, silkscreen_indicate_1, silkscreen_line_width, silkscreen_package_outline, verbose, write_attributes(), write_element_header(), write_element_line(), write_license(), write_pad(), write_pin(), and write_rectangle().
Referenced by write_footprint().
REGISTER_FUNCTIONS | ( | con_sil_function_list | ) |
fpw_function_t con_sil_function_list[] [static] |