Skip to content

Commit

Permalink
cleaning and renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
ducky64 committed Jul 15, 2024
1 parent 520081f commit 34c08e3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions examples/resources/SourceMeasureRangingCell.kicad_sch
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@
(symbol (lib_id "edg_importable:CurrentSenseResistor") (at 101.6 114.3 90) (mirror x) (unit 1)
(in_bom yes) (on_board yes) (dnp no)
(uuid a1aa08ce-d4a5-4dd6-a985-31fe75183a22)
(property "Reference" "res" (at 101.6 110.49 90)
(property "Reference" "isense" (at 101.6 110.49 90)
(effects (font (size 1.27 1.27)))
)
(property "Value" "#CurrentSenseResistor(resistance)" (at 101.6 111.76 90)
Expand All @@ -702,7 +702,7 @@
(instances
(project "SourceMeasureRangingCell"
(path "/b55f6c44-5d5d-4524-bb86-893662f64598"
(reference "res") (unit 1)
(reference "isense") (unit 1)
)
)
)
Expand Down
14 changes: 7 additions & 7 deletions examples/test_usb_source_measure.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def contents(self):
})
self.sense_sw: AnalogMuxer # schematic-defined
self.connect(self.control, self.sense_sw.control.request())
self.res: CurrentSenseResistor
self.assign(self.actual_resistance, self.res.actual_resistance)
self.isense: CurrentSenseResistor
self.assign(self.actual_resistance, self.isense.actual_resistance)


class RangingCurrentSenseResistor(Interface, KiCadImportableBlock, GeneratorBlock):
Expand Down Expand Up @@ -813,10 +813,10 @@ def refinements(self) -> Refinements:

(['control', 'int_link', 'sink_impedance'], RangeExpr.INF), # waive impedance check for integrator in

(['control', 'isense', 'ranges[0]', 'res', 'res', 'res', 'footprint_spec'], 'Resistor_SMD:R_1206_3216Metric'),
(['control', 'isense', 'ranges[0]', 'res', 'res', 'res', 'require_basic_part'], False),
(['control', 'isense', 'ranges[1]', 'res', 'res', 'res', 'footprint_spec'], ParamValue(['control', 'isense', 'ranges[0]', 'res', 'res', 'res', 'footprint_spec'])),
(['control', 'isense', 'ranges[1]', 'res', 'res', 'res', 'require_basic_part'], False),
(['control', 'isense', 'ranges[0]', 'isense', 'res', 'res', 'footprint_spec'], 'Resistor_SMD:R_1206_3216Metric'),
(['control', 'isense', 'ranges[0]', 'isense', 'res', 'res', 'require_basic_part'], False),
(['control', 'isense', 'ranges[1]', 'isense', 'res', 'res', 'footprint_spec'], ParamValue(['control', 'isense', 'ranges[0]', 'isense', 'res', 'res', 'footprint_spec'])),
(['control', 'isense', 'ranges[1]', 'isense', 'res', 'res', 'require_basic_part'], False),

(['control', 'driver', 'high_fet', 'footprint_spec'], 'Package_TO_SOT_SMD:TO-252-2'),
(['control', 'driver', 'high_fet', 'part_spec'], 'SQD50N10-8M9L_GE3'),
Expand All @@ -830,7 +830,7 @@ def refinements(self) -> Refinements:
(['oled', 'iref_res', 'require_basic_part'], False),

# these are since the auto-assigned parts are OOS
(['control', 'isense', 'ranges[1]', 'res', 'res', 'res', 'part'], "1206W4F220LT5E"),
(['control', 'isense', 'ranges[1]', 'isense', 'res', 'res', 'part'], "1206W4F220LT5E"),
(['conv', 'boost_sw', 'low_fet', 'part'], "KIA50N03BD"),
(['prot_3v3', 'diode', 'part'], "1SMA4730AG")
],
Expand Down

0 comments on commit 34c08e3

Please sign in to comment.