This repository has been archived by the owner on Dec 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Library: Additions, changes and fixes (#89)
* Add missing traits * Various fixes and name changes * Change UART to include UART_Base * Add SM712_ES * Add W25Q16JVUXIQ * Add Pico base design * Fix unused imports * Fix _F * Add BNC con and USB ESD protection chip * Use LayoutNextTo for crystal osc * Clean up USB2 ESD protection base * Clean up Header * Clean up CH344Q ref design * Add missing decoupling caps for LDO in USB2514 ref design * Fix layout in RPPicoBase ref design * Fix layout
- Loading branch information
1 parent
64a27d1
commit ca06d40
Showing
27 changed files
with
959 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# This file is part of the faebryk project | ||
# SPDX-License-Identifier: MIT | ||
|
||
import logging | ||
|
||
import faebryk.library._F as F # noqa: F401 | ||
from faebryk.core.module import Module | ||
from faebryk.libs.library import L # noqa: F401 | ||
from faebryk.libs.picker.picker import DescriptiveProperties | ||
from faebryk.libs.units import P # noqa: F401 | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
class ElecSuper_PSM712_ES(Module): | ||
""" | ||
RS485 bus ESD and surge protection | ||
17A 350W Bidirectional SOT-23 | ||
ESD and Surge Protection (TVS/ESD) ROHS | ||
""" | ||
|
||
# ---------------------------------------- | ||
# modules, interfaces, parameters | ||
# ---------------------------------------- | ||
rs485: F.RS485 | ||
|
||
# ---------------------------------------- | ||
# traits | ||
# ---------------------------------------- | ||
designator_prefix = L.f_field(F.has_designator_prefix_defined)( | ||
F.has_designator_prefix.Prefix.U | ||
) | ||
descriptive_properties = L.f_field(F.has_descriptive_properties_defined)( | ||
{ | ||
DescriptiveProperties.manufacturer: "ElecSuper", | ||
DescriptiveProperties.partno: "PSM712-ES", | ||
} | ||
) | ||
datasheet = L.f_field(F.has_datasheet_defined)( | ||
"https://wmsc.lcsc.com/wmsc/upload/file/pdf/v2/lcsc/2209191800_ElecSuper-PSM712-ES_C5180294.pdf" | ||
) | ||
|
||
@L.rt_field | ||
def pin_association_heuristic(self): | ||
return F.has_pin_association_heuristic_lookup_table( | ||
mapping={ | ||
self.rs485.diff_pair.n.signal: ["1"], | ||
self.rs485.diff_pair.p.signal: ["2"], | ||
self.rs485.diff_pair.n.reference.lv: ["3"], | ||
}, | ||
accept_prefix=False, | ||
case_sensitive=False, | ||
) | ||
|
||
def __preinit__(self): | ||
# ------------------------------------ | ||
# connections | ||
# ------------------------------------ | ||
|
||
# ------------------------------------ | ||
# parametrization | ||
# ------------------------------------ | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.