import{r as s,c as t,g as i}from"./p-823ca21f.js";import{PMBusCodec as c,deviceAddressChangedEvent as e}from"../gc-codec-pmbus/lib/PMBusCodec";import{c as h}from"./p-ab62068b.js";let a=class{constructor(i){s(this,i);this.deviceAddressChanged=t(this,"device-address-changed",7);this.busSpeed=100;this.pecEnabled=false;this.alertPullUpResistor="Open Drain";this.clockPullUpResistor="Open Drain";this.dataPullUpResistor="Open Drain";this.verifyReadOption="block";this.connectTimeout=250;this.maxConsecutiveErrors=2;this.optional=false}connectedCallback(){this.impl=new c(h(this.el));this.impl.addEventListener(e,(s=>{this.deviceAddress=s.deviceAddress;this.deviceAddressChanged.emit(s)}))}disconnectedCallback(){this.impl.dispose()}get el(){return i(this)}};export{a as gc_codec_pmbus};
//# sourceMappingURL=p-0ff4a336.entry.js.map