Skip to content

Commit

Permalink
add support for DFN components
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Jun 9, 2024
1 parent 318c3a6 commit 4f2bd59
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/fn/dfn.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { extendSoicDef, soicWithoutParsing, type SoicInput } from "./soic"

export const dfn_def = extendSoicDef({})

/**
* Dual Flat No-lead
*/
export const dfn = (raw_params: SoicInput) => {
return soicWithoutParsing(dfn_def.parse(raw_params))
}
1 change: 1 addition & 0 deletions src/fn/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ export { mlp } from "./mlp"
export { ssop } from "./ssop"
export { tssop } from "./tssop"
export { sot236 } from "./sot236"
export { dfn } from "./dfn"
1 change: 1 addition & 0 deletions src/footprinter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export type Footprinter = {
mlp: (num_pins: number) => FootprinterParamsBuilder<"w" | "h" | "p">
ssop: (num_pins: number) => FootprinterParamsBuilder<"w" | "p">
tssop: (num_pins: number) => FootprinterParamsBuilder<"w" | "p">
dfn: (num_pins: number) => FootprinterParamsBuilder<"w" | "p">
params: () => any
soup: () => AnySoupElement[]
}
Expand Down

0 comments on commit 4f2bd59

Please sign in to comment.