PageSourceSearch

https://elfo-fw-upgrade.netlify.app/_next/static/chunks/188.044f88982a30edb1.js

js elfo-fw-upgrade.netlify.app collected 2026-10-03 10:41:42 UTC 2,060 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[188],{5188:(t,e,s)=>{s.d(e,{ESP32C3ROM:()=>h});var i=s(5521);class h extends i.n{constructor(){super(...arguments),this.CHIP_NAME="ESP32-C3",this.IMAGE_CHIP_ID=5,this.EFUSE_BASE=0x60008800,this.MAC_EFUSE_REG=this.EFUSE_BASE+68,this.UART_CLKDIV_REG=0x3ff40014,this.UART_CLKDIV_MASK=1048575,this.UART_DATE_REG_ADDR=0x6000007c,this.FLASH_WRITE_SIZE=1024,this.BOOTLOADER_FLASH_OFFSET=0,this.FLASH_SIZES={"1MB":0,"2MB":16,"4MB":32,"8MB":48,"16MB":64},this.SPI_REG_BASE=0x60002000,this.SPI_USR_OFFS=24,this.SPI_USR1_OFFS=28,this.SPI_USR2_OFFS=32,this.SPI_MOSI_DLEN_OFFS=36,this.SPI_MISO_DLEN_OFFS=40,this.SPI_W0_OFFS=88}async getPkgVersion(t){let e=this.EFUSE_BASE+68;return await t.readReg(e+12)>>21&7}async getChipRevision(t){let e=this.EFUSE_BASE+68;return(await t.readReg(e+12)&1835008)>>18}async getChipDescription(t){let e;return(0===await this.getPkgVersion(t)?"ESP32-C3":"unknown ESP32-C3")+(" (revision "+await this.getChipRevision(t)+")")}async getFlashCap(t){let e=this.EFUSE_BASE+68;return await t.readReg(e+12)>>27&7}async getFlashVendor(t){let e=this.EFUSE_BASE+68;return({1:"XMC",2:"GD",3:"FM",4:"TT",5:"ZBIT"})[await t.readReg(e+16)>>0&7]||""}async getChipFeatures(t){let e=["Wi-Fi","BLE"],s=await this.getFlashCap(t),i=await this.getFlashVendor(t),h={0:null,1:"Embedded Flash 4MB",2:"Embedded Flash 2MB",3:"Embedded Flash 1MB",4:"Embedded Flash 8MB"}[s];return null!==h&&e.push(`${void 0!==h?h:"Unknown Embedded Flash"} (${i})`),e}async getCrystalFreq(t){return 40}_d2h(t){let e=(+t).toString(16);return 1===e.length?"0"+e:e}async readMac(t){let e=await t.readReg(this.MAC_EFUSE_REG);e>>>=0;let s=await t.readReg(this.MAC_EFUSE_REG+4);s=s>>>0&65535;let i=new Uint8Array(6);return i[0]=s>>8&255,i[1]=255&s,i[2]=e>>24&255,i[3]=e>>16&255,i[4]=e>>8&255,i[5]=255&e,this._d2h(i[0])+":"+this._d2h(i[1])+":"+this._d2h(i[2])+":"+this._d2h(i[3])+":"+this._d2h(i[4])+":"+this._d2h(i[5])}getEraseSize(t,e){return e}}},5521:(t,e,s)=>{s.d(e,{n:()=>i});class i{getEraseSize(t,e){return e}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.