PCB-FPW developer documentation based on version: 0.0.11

Functions | Variables

sot.c File Reference

Functions for SOT footprints. More...

Go to the source code of this file.

Functions

int sot_create_element ()
 Create an Element for a SOT package.
int sot_create_fpw_files_from_packages_list ()
 Write fpw files for all known SOT packages.
int sot_create_packages_list ()
 Create a list of SOT packages with pre-defined values.
int sot_drc ()
 Do some Design Rule Checking for the SOT package type.
int sot_get_default_footprint_values ()
 Look up default values for SOT footprint.
int sot_set_gui_constraints ()
 Set GUI constraints for the SOT package type.
int sot_write_footprint ()
 Write a footprint for a SOT package.
 REGISTER_FUNCTIONS (sot_function_list)
 A list containing all SOT related functions.

Variables

static fpw_function_t sot_function_list []
 A list containing all SOT related functions.

Detailed Description

Functions for SOT footprints.

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


Function Documentation

REGISTER_FUNCTIONS ( sot_function_list   ) 

A list containing all SOT related functions.

Initialise by registering all SOT related functions.

Definition at line 3750 of file sot.c.

int sot_create_element (  ) 
int sot_create_fpw_files_from_packages_list (  ) 

Write fpw files for all known SOT packages.

Walk the list from begin to end (until we get a NULL pointer),

  • get the footprint name (the data),
  • look up default values,
  • write the fpw file.

Definition at line 489 of file sot.c.

References footprint_filename, footprint_name, footprint_type, fp_suffix, fpw_suffix, sot_create_packages_list(), sot_get_default_footprint_values(), verbose, and write_footprintwizard_file().

Here is the call graph for this function:

int sot_create_packages_list (  ) 

Create a list of SOT 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 556 of file sot.c.

Referenced by sot_create_fpw_files_from_packages_list().

int sot_drc (  ) 

Do some Design Rule Checking for the SOT 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.
Returns:
EXIT_SUCCESS when no DRC violations were encountered, EXIT_FAILURE when DRC violations were found.

Todo:
Check for minimum clearance between pad copper and fiducial pad copper (including solder mask clearances).
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 643 of file sot.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_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 sot_get_default_footprint_values (  ) 

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

  • SOT50P160X90-3N,
  • SOT50P210X110-8N,
  • SOT65P210X100-3N,
  • SOT65P210X100-6N,
  • SOT65P210X110-3N,
  • SOT65P210X110-5N,
  • SOT65P210X110-6N,
  • SOT65P210X110-6AN,
  • SOT65P275X110-8N,
  • SOT65P280X100-8N,
  • SOT65P280X130-8N,
  • SOT65P280X145-8AN,
  • SOT65P280X145-8BN,
  • SOT65P280X145-8N,
  • SOT80P330X140-8N,
  • SOT95P228X102-3N,
  • SOT95P230X109-3N,
  • SOT95P230X110-3N,
  • SOT95P230X124-3N,
  • SOT95P237X112-3N,
  • SOT95P237X117-3N,
  • SOT95P240X110-3N,
  • SOT95P251X112-3N,
  • SOT95P270X145-5N,
  • SOT95P275X130-3N,
  • SOT95P275X145-6N,
  • SOT95P279X142-5N,
  • SOT95P280X100-5N,
  • SOT95P280X100-6N,
  • SOT95P280X110-5N,
  • SOT95P280X110-6N,
  • SOT95P280X115-6N,
  • SOT95P280X135-3AN,
  • SOT95P280X135-3N,
  • SOT95P280X135-5N,
  • SOT95P280X145-5AN,
  • SOT95P280X145-5N,
  • SOT95P280X145-6AN,
  • SOT95P280X145-6N,
  • SOT95P284X122-5N,
  • SOT95P284X122-6N,
  • SOT95P285X140-3N,
  • SOT95P285X90-6N,
  • SOT95P470X124-8N,
  • SOT100P230X110-3N,
  • SOT127P700X180-6N,
  • SOT150P700X180-5N,
  • SOT230P700X180-4N.
  • SOT230P700X180-4AN.
  • SOT230P700X180-4BN.
Returns:
EXIT_SUCCESS when default values for a footprint were found, EXIT_FAILURE when the footprint name was not found.

Definition at line 1000 of file sot.c.

References count_x, count_y, 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_length, pad_shape, pad_shapes_type, pad_width, pitch_x, pitch_y, silkscreen_length, silkscreen_line_width, silkscreen_package_outline, silkscreen_width, thermal, thermal_length, thermal_width, and verbose.

Referenced by on_footprint_name_entry_changed(), and sot_create_fpw_files_from_packages_list().

int sot_set_gui_constraints (  ) 

Set GUI constraints for the SOT package type.

This function is only to be compiled for GUI targets.

Returns:
EXIT_SUCCESS when the function is completed.

Definition at line 3281 of file sot.c.

References gui_constraints_disable_fiducial_widgets(), gui_constraints_disable_heel_and_toe_goals_tab_widgets(), UPPER_LEFT, and widget.

Referenced by on_footprint_type_entry_changed().

Here is the call graph for this function:

int sot_write_footprint (  ) 

Variable Documentation

A list containing all SOT related functions.

Definition at line 3704 of file sot.c.