Header file for functions for TO (Transistor Outline) footprints. More...
Go to the source code of this file.
Functions | |
int | to_create_element_to92 () |
Create an Element for a TO92 package. | |
int | to_create_element_to92_staggered () |
Create an Element for a TO92S package. | |
int | to_create_packages_list () |
Create a list of TO packages with pre-defined values. | |
int | to_get_default_footprint_values () |
Look up default values for TO footprint. | |
int | to_set_gui_constraints () |
Set GUI constraints for the TO package type. | |
int | to_write_footprint_to220 () |
Write a footprint for a TO220 transistor package. | |
int | to_write_footprint_to220_staggered () |
Write a footprint for a TO220S transistor package (with staggered pins). | |
int | to_write_footprint_to220_standing () |
Write a footprint for a TO220W transistor package (standing). | |
int | to_write_footprint_to220_standing_staggered () |
Write a footprint for a TO220SW transistor package (standing with staggered pins). | |
int | to_write_footprint_to92 () |
Write a footprint for a TO92 transistor package. | |
void | to_init () |
Header file for functions for TO (Transistor Outline) 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 to.h.
int to_create_element_to92 | ( | ) |
Create an Element for a TO92 package.
EXIT_SUCCESS
when an element was created, EXIT_FAILURE
when errors were encountered. Definition at line 35 of file to.c.
References attributes_in_footprint, courtyard_clearance_with_package, courtyard_length, courtyard_width, create_attributes_in_element(), create_new_arc(), create_new_line(), 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, package_body_length, package_body_width, pad_clearance, pad_diameter, pad_shapes_type, pad_solder_mask_clearance, pin1_square, pin_drill_diameter, TextType::Scale, silkscreen_line_width, TextType::TextString, verbose, TextType::X, and TextType::Y.
int to_create_element_to92_staggered | ( | ) |
Create an Element for a TO92S package.
EXIT_SUCCESS
when an element was created, EXIT_FAILURE
when errors were encountered. Definition at line 239 of file to.c.
References attributes_in_footprint, courtyard_clearance_with_package, courtyard_length, courtyard_width, create_attributes_in_element(), create_new_arc(), create_new_line(), 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, package_body_length, package_body_width, pad_clearance, pad_diameter, pad_shapes_type, pad_solder_mask_clearance, pin1_square, pin_drill_diameter, TextType::Scale, silkscreen_line_width, TextType::TextString, verbose, TextType::X, and TextType::Y.
int to_create_packages_list | ( | ) |
int to_get_default_footprint_values | ( | ) |
Look up default values for TO footprint.
Footprint values can be looked up by placing a question mark "?" in front of the footprint name.
If the footprint name is recognised known values will be loaded and the entries involved in the GUI will be updated accordingly.
Currently the following footprints are supported:
EXIT_SUCCESS
when default values for a footprint were found, EXIT_FAILURE
when the footprint name was not found. Definition at line 759 of file to.c.
References count_x, count_y, courtyard_length, courtyard_width, 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_length, pad_shape, pad_shapes_type, pad_width, pin_drill_diameter, pitch_x, pitch_y, silkscreen_length, silkscreen_package_outline, silkscreen_width, thermal, thermal_length, and thermal_width.
Referenced by on_footprint_name_entry_changed().
int to_set_gui_constraints | ( | ) |
Set GUI constraints for the TO package type.
This function is only to be compiled for GUI targets.
EXIT_SUCCESS
when the function is completed. Definition at line 812 of file to.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 to_write_footprint_to220 | ( | ) |
Write a footprint for a TO220 transistor package.
EXIT_FAILURE
when errors were encountered, EXIT_SUCCESS
when OK. Definition at line 859 of file to.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, package_body_length, package_body_width, pad_clearance, pad_diameter, pad_shape, pad_solder_mask_clearance, pin1_square, pin_drill_diameter, silkscreen_indicate_1, silkscreen_line_width, silkscreen_package_outline, thermal, thermal_length, thermal_solder_mask_clearance, thermal_width, verbose, write_attributes(), write_element_header(), write_element_line(), write_license(), write_pad(), write_pin(), and write_rectangle().
Referenced by write_footprint().
int to_write_footprint_to220_staggered | ( | ) |
Write a footprint for a TO220S transistor package (with staggered pins).
EXIT_FAILURE
when errors were encountered, EXIT_SUCCESS
when OK. Definition at line 1195 of file to.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, package_body_length, package_body_width, pad_clearance, pad_diameter, pad_shape, pad_solder_mask_clearance, pin1_square, pin_drill_diameter, silkscreen_indicate_1, silkscreen_line_width, silkscreen_package_outline, thermal, thermal_length, thermal_solder_mask_clearance, thermal_width, verbose, write_attributes(), write_element_header(), write_element_line(), write_license(), write_pad(), write_pin(), and write_rectangle().
Referenced by write_footprint().
int to_write_footprint_to220_standing | ( | ) |
Write a footprint for a TO220W transistor package (standing).
EXIT_FAILURE
when errors were encountered, EXIT_SUCCESS
when OK. Definition at line 1530 of file to.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, package_body_length, package_body_width, pad_clearance, pad_diameter, pad_shape, pad_solder_mask_clearance, pin1_square, pin_drill_diameter, silkscreen_indicate_1, silkscreen_line_width, silkscreen_package_outline, verbose, write_attributes(), write_element_header(), write_element_line(), write_license(), write_pin(), and write_rectangle().
Referenced by write_footprint().
int to_write_footprint_to220_standing_staggered | ( | ) |
Write a footprint for a TO220SW transistor package (standing with staggered pins).
EXIT_FAILURE
when errors were encountered, EXIT_SUCCESS
when OK. Definition at line 1727 of file to.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, package_body_length, package_body_width, pad_clearance, pad_diameter, pad_shape, pad_solder_mask_clearance, pin1_square, pin_drill_diameter, silkscreen_indicate_1, silkscreen_line_width, silkscreen_package_outline, verbose, write_attributes(), write_element_header(), write_element_line(), write_license(), write_pin(), and write_rectangle().
Referenced by write_footprint().
int to_write_footprint_to92 | ( | ) |
Write a footprint for a TO92 transistor package.
EXIT_FAILURE
when errors were encountered, EXIT_SUCCESS
when OK. Definition at line 1923 of file to.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, package_body_length, package_body_width, package_is_radial, pad_clearance, pad_diameter, pad_shape, pad_solder_mask_clearance, pin1_square, pin_drill_diameter, silkscreen_indicate_1, silkscreen_line_width, silkscreen_package_outline, verbose, write_attributes(), write_element_arc(), write_element_header(), write_element_line(), write_license(), write_pin(), and write_rectangle().
Referenced by write_footprint().