Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/fn/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,4 @@ export { sot343 } from "./sot343"
export { m2host } from "./m2host"
export { mountedpcbmodule } from "./mountedpcbmodule"
export { to92l } from "./to92l"
export { wson } from "./wson"
28 changes: 28 additions & 0 deletions src/fn/wson.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import type { AnySoupElement } from "circuit-json"
import { base_quad_def, quad, quadTransform } from "./quad"
import type { z } from "zod"

/**
* WSON (Very Very Thin Small Outline No-lead) footprint
* Similar to SON/DFN but typically with exposed thermal pad
* Common for TI power management ICs
*/
export const wson_def = base_quad_def.extend({}).transform(quadTransform)

export const wson = (
parameters: z.input<typeof wson_def>,
): { circuitJson: AnySoupElement[]; parameters: any } => {
parameters.legsoutside = false
// WSON typically has thermal pad
if (parameters.thermalpad === undefined) {
parameters.thermalpad = true
}
// Default pad dimensions for WSON if not specified
if (!parameters.pl) {
parameters.pl = 0.5
}
if (!parameters.pw) {
parameters.pw = 0.25
}
return quad(parameters)
}
Loading