PCB-FPW developer documentation based on version: 0.0.11

Functions | Variables

dips.c File Reference

Functions for DIPS footprints (DIP Socket). More...

Go to the source code of this file.

Functions

int dips_create_element ()
 Create an Element for a DIPS package.
int dips_create_packages_list ()
 Create a list of DIPS packages with pre-defined values.
int dips_drc ()
 Do some Design Rule Checking for the DIPS package type.
 if (package_body_length-courtyard_length< courtyard_clearance_with_package)
 if (silkscreen_package_outline &&(silkscreen_line_width==0.0))
 switch (units_type)
 if (verbose &&(result==EXIT_SUCCESS))
 return (result)
int dips_get_default_footprint_values ()
 Look up default values for DIPS footprint.
int dips_set_gui_constraints ()
 Set GUI constraints for the DIPS package type.
int dips_write_footprint ()
 Write a DIPS pin through hole footprint.
 REGISTER_FUNCTIONS (dips_function_list)
 A list containing all DIPS related functions.

Variables

static fpw_function_t dips_function_list []
 A list containing all DIPS related functions.

Detailed Description

Functions for DIPS footprints (DIP Socket).

Author:
Copyright (C) 2007, 2008, 2009, 2010, 2011 by Bert Timmerman <bert.timmerman@xs4all.nl>

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 dips.c.


Function Documentation

int dips_create_element (  ) 
int dips_create_packages_list (  ) 

Create a list of DIPS packages with pre-defined values.

The data in this list can be used in a combo box to select a pre-defined package.

Returns:
EXIT_SUCCESS when a packages list was created, EXIT_FAILURE when errors were encountered.

Definition at line 329 of file dips.c.

int dips_drc (  ) 

Do some Design Rule Checking for the DIPS package type.

  • check for allowed pad shapes.
  • check for zero sized packages.
  • check for a zero sized courtyard.
  • check for minimum clearance between copper (X-direction).
  • check for minimum clearance between copper (Y-direction).
  • If any fiducials exist:
    • check for zero fiducial pad diameter.
    • check for zero width solder mask clearance.
    • check for minimum clearance between copper (between pads and fiducials, if any fiducials exist).
  • check for clearance of the package length with regard to the courtyard dimensions.
  • check for clearance of the package width with regard to the courtyard dimensions.
  • check for any silk lines or texts touching bare copper.
  • check for soldermask clearance (solder mask overlapping copper at the solder fillet area or worse).
  • check for a reasonable silk line width.


Parameters: none.

Returns: EXIT_SUCCESS when no DRC violations were encountered, EXIT_FAILURE when DRC violations were found.

If any fiducials exist:

  • check for zero fiducial pad diameter.
  • check for zero width solder mask clearance.
    Todo:

Definition at line 412 of file dips.c.

References courtyard_length, courtyard_width, fiducial, fiducial_pad_diameter, fiducial_pad_solder_mask_clearance, footprint_name, footprint_type, package_body_height, package_body_length, package_body_width, pad_clearance, pad_diameter, pad_length, pad_shapes_type, pad_width, pitch_x, pitch_y, and verbose.

Referenced by write_footprint().

int dips_get_default_footprint_values (  ) 

Look up default values for DIPS 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:

  • DIPS762W52P254L508H254Q4B,
  • DIPS762W52P254L762H254Q6B,
  • DIPS762W52P254L1016H254Q8B,
  • DIPS1016W52P254L1016H254Q8B,
  • DIPS762W52P254L1270H254Q10B,
  • DIPS762W52P254L1778H254Q14B,
  • DIPS1016W52P254L1778H254Q14B,
  • DIPS762W52P254L2032H254Q16B,
  • DIPS1016W52P254L2032H254Q16B,
  • DIPS762W52P254L2286H254Q18B,
  • DIPS1016W52P254L2286H254Q18B,
  • DIPS762W52P254L2540H254Q20B,
  • DIPS1016W52P254L2540H254Q20B,
  • DIPS762W52P254L2794H254Q22B,
  • DIPS1016W52P254L2794H254Q22B,
  • DIPS04300,
  • DIPS06300,
  • DIPS08300,
  • DIPS08400,
  • DIPS10300,
  • DIPS14300,
  • DIPS14400,
  • DIPS16300,
  • DIPS16400,
  • DIPS18300,
  • DIPS18400,
  • DIPS20300,
  • DIPS20400,
  • DIPS22300,
  • DIPS22400,
  • DIPS24300,
  • DIPS24400,
  • DIPS24600,
  • DIPS28300,
  • DIPS28400,
  • DIPS28600,
  • DIPS32300,
  • DIPS32600,
  • DIPS36600,
  • DIPS38600,
  • DIPS40600,
  • DIPS42600,
  • DIPS48600,
  • DIPS50900,
  • DIPS52600,
  • DIPS64900.

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 755 of file dips.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 dips_set_gui_constraints (  ) 

Set GUI constraints for the DIPS package type.

Parameters: *widget is the caller widget.

Returns: none.

Definition at line 2237 of file dips.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().

Here is the call graph for this function:

int dips_write_footprint (  ) 
if ( silkscreen_package_outline &&  silkscreen_line_width==0.0  ) 
Todo:
Check for any silk lines or texts touching bare copper.
Todo:
Check for soldermask clearance (solder mask overlapping copper at the solder fillet area or worse).

Definition at line 612 of file dips.c.

References footprint_type, and verbose.

REGISTER_FUNCTIONS ( dips_function_list   ) 

A list containing all DIPS related functions.

Initialise by registering all DIPS related functions. Parameters: none.

Returns: none.

Definition at line 2553 of file dips.c.


Variable Documentation

A list containing all DIPS related functions.

Definition at line 2507 of file dips.c.