crystal module#
Crystal symbols for JITX Standard Library
This module provides crystal/resonator symbol definitions with optional case pins.
- class CrystalConfig(label_config=None, pitch=2.0, line_width=0.05, resonator_line_len=<Quantity(100, 'percent')>, resonator_line_offset=0.1, crystal_body=(0.9, 0.3), crystal_case=None, case_ports=0)[source]#
Bases:
LabelConfigurableConfiguration for crystal symbols
Defines the geometric and visual parameters for crystal/resonator symbols.
- Parameters:
- resonator_line_len: float = <Quantity(100, 'percent')>#
Length of resonator lines (absolute or percentage of body width)
- class CrystalSymbol(config=None, **kwargs)[source]#
Bases:
LabelledSymbol,GenericCrystal/resonator symbol with graphics and pins.
The crystal symbol consists of a rectangular body with resonator lines on either side, and optional case outline with case pins.
Pins: ‘p[1]’, ‘p[2]’ (non-polarized), optional ‘case[n]’ pins
- Parameters:
config (
T)
-
config:
T#
- property line_width: float#
See
line_width.
- property resonator_line_len: float#
See
resonator_line_len.
- property crystal_body: tuple[float, float]#
See
crystal_body.
- property case_ports: int#
See
case_ports.
- property label_config: LabelConfigurable#
Configuration object that provides label configuration