Class ROMAbstract

Represents a chip ROM with basic registers field and abstract functions.

Hierarchy

  • ROM

Constructors

Properties

BOOTLOADER_FLASH_OFFSET: number
CHIP_NAME: string
DATA_START: number
ENTRY: number
FLASH_SIZES: {
    [key: string]: number;
}

Type declaration

  • [key: string]: number
FLASH_WRITE_SIZE: number
ROM_DATA: string
ROM_TEXT: string
SPI_MISO_DLEN_OFFS: number
SPI_MOSI_DLEN_OFFS: number
SPI_REG_BASE: number
SPI_USR1_OFFS: number
SPI_USR2_OFFS: number
SPI_USR_OFFS: number
SPI_W0_OFFS: number
TEXT_START: number
UART_CLKDIV_MASK: number
UART_CLKDIV_REG: number
UART_DATE_REG_ADDR: number

Methods

  • Convert a number to hex string.

    Parameters

    • d: number

      Number to convert to hex string.

    Returns string

    The hex string.

  • Get the chip description.

    Parameters

    • loader: ESPLoader

      Loader class to communicate with chip.

    Returns Promise<string>

    The chip description as string.

  • Get the chip features.

    Parameters

    • loader: ESPLoader

      Loader class to communicate with chip.

    Returns Promise<string[]>

    The chip features as string.

  • Get the chip revision number.

    Parameters

    • loader: ESPLoader

      Loader class to communicate with chip.

    Returns Promise<number>

    The chip revision number.

  • Get the crystal frequency for the chip.

    Parameters

    • loader: ESPLoader

      Loader class to communicate with chip.

    Returns Promise<number>

    The crystal frequency as number.

  • Get the chip erase size.

    Parameters

    • offset: number

      Offset to start erase.

    • size: number

      Size to erase.

    Returns number

    The erase size of the chip as number.

  • Get the package version number.

    Parameters

    • loader: ESPLoader

      Loader class to communicate with chip.

    Returns Promise<number>

    The package version number.

  • Function to be executed after chip connection

    Parameters

    • loader: ESPLoader

      Loader class to communicate with chip.

    Returns Promise<void>

  • Read ESP32 eFuse.

    Parameters

    • loader: ESPLoader

      Loader class to communicate with chip.

    • offset: number

      Offset to start erase.

    Returns Promise<number>

    The eFuse number.

  • Get the chip mac address.

    Parameters

    • loader: ESPLoader

      Loader class to communicate with chip.

    Returns Promise<string>

    The mac address string.

Generated using TypeDoc