Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
Esp32BootloaderState Struct Reference

ESP32 Bootloader internal data. More...

#include <Esp32BootloaderHal.hxx>

Public Attributes

esp_chip_id_t chip_id
 Chip identifier for the currently running firmware.
 
struct app_header app_header
 Currently running application header information.
 
uint64_t node_id
 Node ID to use for the bootloader.
 
esp_partition_t * current
 Partition where the firmware is currently running from.
 
esp_partition_t * target
 Partition where the new firmware should be written to.
 
esp_ota_handle_t ota_handle
 OTA handle used to track the firmware update progress.
 
bool twai_initialized
 Internal flag to indicate that we have initialized the TWAI peripheral and should deinit it before exit.
 
gpio_num_t tx_pin
 GPIO pin connected to the CAN transceiver TX pin.
 
gpio_num_t rx_pin
 GPIO pin connected to the CAN transceiver RX pin.
 

Detailed Description

ESP32 Bootloader internal data.

Definition at line 83 of file Esp32BootloaderHal.hxx.

Member Data Documentation

◆ app_header

struct app_header Esp32BootloaderState::app_header

Currently running application header information.

NOTE: Only the size is populated in this structure, the checksum values are initialized to zero as they are not used.

Definition at line 92 of file Esp32BootloaderHal.hxx.

◆ chip_id

esp_chip_id_t Esp32BootloaderState::chip_id

Chip identifier for the currently running firmware.

Definition at line 86 of file Esp32BootloaderHal.hxx.

◆ current

esp_partition_t* Esp32BootloaderState::current

Partition where the firmware is currently running from.

Definition at line 98 of file Esp32BootloaderHal.hxx.

◆ node_id

uint64_t Esp32BootloaderState::node_id

Node ID to use for the bootloader.

Definition at line 95 of file Esp32BootloaderHal.hxx.

◆ ota_handle

esp_ota_handle_t Esp32BootloaderState::ota_handle

OTA handle used to track the firmware update progress.

Definition at line 104 of file Esp32BootloaderHal.hxx.

◆ rx_pin

gpio_num_t Esp32BootloaderState::rx_pin

GPIO pin connected to the CAN transceiver RX pin.

Definition at line 114 of file Esp32BootloaderHal.hxx.

◆ target

esp_partition_t* Esp32BootloaderState::target

Partition where the new firmware should be written to.

Definition at line 101 of file Esp32BootloaderHal.hxx.

◆ twai_initialized

bool Esp32BootloaderState::twai_initialized

Internal flag to indicate that we have initialized the TWAI peripheral and should deinit it before exit.

Definition at line 108 of file Esp32BootloaderHal.hxx.

◆ tx_pin

gpio_num_t Esp32BootloaderState::tx_pin

GPIO pin connected to the CAN transceiver TX pin.

Definition at line 111 of file Esp32BootloaderHal.hxx.


The documentation for this struct was generated from the following file: