ESPHome 2025.5.0
Loading...
Searching...
No Matches
stm32flash.h File Reference

Go to the source code of this file.

Data Structures

struct  esphome::shelly_dimmer::VarlenCmd
 

Namespaces

namespace  esphome
 Providing packet encoding functions for exchanging data with a remote host.
 
namespace  esphome::shelly_dimmer
 

Typedefs

using esphome::shelly_dimmer::stm32_err_t
 
using esphome::shelly_dimmer::flags_t
 
using esphome::shelly_dimmer::stm32_cmd_t
 
using esphome::shelly_dimmer::stm32_dev_t
 
using esphome::shelly_dimmer::stm32_t
 
using esphome::shelly_dimmer::stm32_unique_ptr = std::unique_ptr<stm32_t, void (*)(stm32_t *)>
 

Functions

stm32_unique_ptr esphome::shelly_dimmer::stm32_init (uart::UARTDevice *stream, const uint8_t flags, const char init)
 
stm32_err_t esphome::shelly_dimmer::stm32_read_memory (const stm32_unique_ptr &stm, const uint32_t address, uint8_t *data, const unsigned int len)
 
stm32_err_t esphome::shelly_dimmer::stm32_write_memory (const stm32_unique_ptr &stm, uint32_t address, const uint8_t *data, const unsigned int len)
 
stm32_err_t esphome::shelly_dimmer::stm32_wunprot_memory (const stm32_unique_ptr &stm)
 
stm32_err_t esphome::shelly_dimmer::stm32_wprot_memory (const stm32_unique_ptr &stm)
 
stm32_err_t esphome::shelly_dimmer::stm32_erase_memory (const stm32_unique_ptr &stm, uint32_t spage, uint32_t pages)
 
stm32_err_t esphome::shelly_dimmer::stm32_go (const stm32_unique_ptr &stm, const uint32_t address)
 
stm32_err_t esphome::shelly_dimmer::stm32_reset_device (const stm32_unique_ptr &stm)
 
stm32_err_t esphome::shelly_dimmer::stm32_readprot_memory (const stm32_unique_ptr &stm)
 
stm32_err_t esphome::shelly_dimmer::stm32_runprot_memory (const stm32_unique_ptr &stm)
 
stm32_err_t esphome::shelly_dimmer::stm32_crc_memory (const stm32_unique_ptr &stm, const uint32_t address, const uint32_t length, uint32_t *const crc)
 
stm32_err_t esphome::shelly_dimmer::stm32_crc_wrapper (const stm32_unique_ptr &stm, uint32_t address, uint32_t length, uint32_t *crc)
 
uint32_t esphome::shelly_dimmer::stm32_sw_crc (uint32_t crc, uint8_t *buf, unsigned int len)
 

Variables

constexpr auto esphome::shelly_dimmer::STREAM_OPT_BYTE = (1 << 0)
 
constexpr auto esphome::shelly_dimmer::STREAM_OPT_GVR_ETX = (1 << 1)
 
constexpr auto esphome::shelly_dimmer::STREAM_OPT_CMD_INIT = (1 << 2)
 
constexpr auto esphome::shelly_dimmer::STREAM_OPT_RETRY = (1 << 3)
 
constexpr auto esphome::shelly_dimmer::STREAM_OPT_I2C = (1 << 4)
 
constexpr auto esphome::shelly_dimmer::STREAM_OPT_STRETCH_W = (1 << 5)
 
constexpr auto esphome::shelly_dimmer::STREAM_SERIAL = (STREAM_OPT_BYTE | STREAM_OPT_GVR_ETX | STREAM_OPT_CMD_INIT | STREAM_OPT_RETRY)
 
constexpr auto esphome::shelly_dimmer::STREAM_I2C = (STREAM_OPT_I2C | STREAM_OPT_STRETCH_W)
 
constexpr auto esphome::shelly_dimmer::STM32_MAX_RX_FRAME = 256
 
constexpr auto esphome::shelly_dimmer::STM32_MAX_TX_FRAME = (1 + 256 + 1)
 
constexpr auto esphome::shelly_dimmer::STM32_MAX_PAGES = 0x0000ffff
 
constexpr auto esphome::shelly_dimmer::STM32_MASS_ERASE = 0x00100000