Header file for functions for DIP footprints. More...
Go to the source code of this file.
Functions | |
int | dip_create_element () |
Create an Element for a DIP package. | |
int | dip_create_packages_list () |
Create a list of DIP packages with pre-defined values. | |
int | dip_drc () |
Do some Design Rule Checking for the DIP package type. | |
int | dip_get_default_footprint_values () |
Look up default values for DIP footprint. | |
int | dip_set_gui_constraints () |
Set GUI constraints for the DIP package type. | |
int | dip_write_footprint () |
Write a DIP pin through hole footprint. | |
void | dip_init () |
Header file for functions for DIP footprints.
Definition in file dip.h.
int dip_create_element | ( | ) |
Create an Element for a DIP package.
EXIT_SUCCESS
when an element was created, EXIT_FAILURE
when errors were encountered. Definition at line 34 of file dip.c.
References attributes_in_footprint, count_y, courtyard, courtyard_clearance_with_package, courtyard_length, courtyard_line_width, courtyard_width, create_attributes_in_element(), create_new_arc(), 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_columns, 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_x, pitch_y, TextType::Scale, silkscreen_indicate_1, silkscreen_line_width, silkscreen_package_outline, TextType::TextString, verbose, TextType::X, and TextType::Y.
int dip_create_packages_list | ( | ) |
int dip_drc | ( | ) |
Do some Design Rule Checking for the DIP package type.
Parameters: none.
Returns: EXIT_SUCCESS
when no DRC violations were encountered, EXIT_FAILURE
when DRC violations were found.
If any fiducials exist:
Definition at line 395 of file dip.c.
References courtyard_clearance_with_package, courtyard_length, courtyard_width, fiducial, fiducial_pad_diameter, fiducial_pad_solder_mask_clearance, footprint_name, footprint_type, MIL, MIL_100, MM, NO_UNITS, package_body_height, package_body_length, package_body_width, pad_clearance, pad_diameter, pad_length, pad_shapes_type, pad_width, pitch_x, pitch_y, silkscreen_line_width, silkscreen_package_outline, units_type, and verbose.
Referenced by write_footprint().
int dip_get_default_footprint_values | ( | ) |
Look up default values for DIP footprint.
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:
Parameters: *footprint_name
a NULL
terminated footprint name.
Returns: EXIT_SUCCESS
when default values for a footprint were found, EXIT_FAILURE
when the footprint name was not found.
Definition at line 725 of file dip.c.
References count_x, count_y, courtyard_line_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_clearance, pad_diameter, pad_shape, pad_shapes_type, pad_solder_mask_clearance, pin_drill_diameter, pitch_x, pitch_y, silkscreen_line_width, thermal, thermal_length, and thermal_width.
Referenced by on_footprint_name_entry_changed().
int dip_set_gui_constraints | ( | ) |
Set GUI constraints for the DIP package type.
Parameters: *widget
is the caller widget.
Returns: none.
Definition at line 1727 of file dip.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 dip_write_footprint | ( | ) |
Write a DIP pin through hole footprint.
Parameters: none.
Returns: EXIT_FAILURE
when errors were encountered, EXIT_SUCCESS
when OK.
Definition at line 1775 of file dip.c.
References attributes_in_footprint, count_y, courtyard, courtyard_clearance_with_package, courtyard_length, courtyard_line_width, courtyard_width, footprint_filename, footprint_type, fp, license_in_footprint, multiplier, number_of_columns, 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_x, pitch_y, silkscreen_indicate_1, silkscreen_line_width, silkscreen_package_outline, verbose, write_attributes(), write_element_arc(), write_element_header(), write_license(), write_pad(), write_pin(), and write_rectangle().
Referenced by write_footprint().