/** * AMPS-REGULATORS device cohort (Wave A4 phase 2): dcdc_converter, lm358, * mcp6002, lm386, lm393, linear_reg, lm317. * * Every handler body below is the engine's old switch-case / if-block body * MOVED VERBATIM, with identifier access adapted through DeviceContext * (this._pinNode -> ctx.pinNode, this._vAt -> ctx.vAt, this.vsrcIdx.get -> * ctx.vsrcRow, this._icPowerInfo -> ctx.icPowerInfo, this.state.icState -> * ctx.state.icState, this._currentLimitEntryClamps.has -> * ctx.currentLimitEntryClampActive, out[comp.id] = v -> * ctx.setElementCurrent(comp.id, v), loop break/continue -> handler * `return` — every legacy _updateState block is kind-exclusive, so the two * are equivalent). Do not simplify, reorder mna.add calls, or rewrite * algebra here: float accumulation order in the matrix is semantics, and * the bitwise oracle suite pins these exact trajectories. * * These kinds own branch rows (branchRows hooks reproduce the old * _buildMatrix chain conditions exactly — unconditional per kind) AND * committed active-set regimes. All regime state lives in engine state * reached only through the context: icState (committed regimes, op-amp * analogue memory), the per-solve current-limit/headroom active sets * (ctx.useCurrentLimitEntryClamp, ctx.useCurrentLimitComplianceClamp, and * ctx.regulatorHeadroomRegime — engine solve state cleared once per Newton * solve), and thermalDevices (read-only shutdown flag written by the * engine's package-thermal pass). * * Engine-owned machinery deliberately NOT moved: _icPowerInfo and * _stampDigitalOutput (shared with the unmigrated digital IC kinds, * reached via ctx), defaultIcState and the load()-time icState * carry-forward (defaultIcState covers every IC_STATE_KINDS kind, so the * whole table stays with the engine and is imported here), * regulatorQuiescentCurrent/analogIcQuiescentCurrent (also consumed by the * engine's _thermalDissipationW pass), and the _drivenOutputTargets lm393 * case (part of the generic output-sag scan, not a per-kind pass switch). * * Import layering (registry header, decision 7): pure helper FUNCTIONS * from sim-engine.ts are safe to import despite the module cycle because * handlers dereference them only at solve time. Never read sim-engine * bindings at module evaluation time from this file. */ import type { DeviceModel } from "../device-registry.js"; export declare const dcdcConverterModel: DeviceModel; export declare const dualOpAmpModel: DeviceModel; export declare const lm386Model: DeviceModel; export declare const lm393Model: DeviceModel; export declare const linearRegModel: DeviceModel; export declare const lm317Model: DeviceModel;