ESPHome  2024.4.1
Data Structures | Namespaces | Typedefs | Functions | Variables
stm32flash.h File Reference

Go to the source code of this file.

Data Structures

struct  esphome::shelly_dimmer::VarlenCmd
 

Namespaces

 esphome
 This is a workaround until we can figure out a way to get the tflite-micro idf component code available in CI.
 
 esphome::shelly_dimmer
 

Typedefs

using esphome::shelly_dimmer::stm32_err_t = enum Stm32Err { STM32_ERR_OK=0, STM32_ERR_UNKNOWN, STM32_ERR_NACK, STM32_ERR_NO_CMD, }
 
using esphome::shelly_dimmer::flags_t = enum Flags { F_NO_ME=1<< 0, F_OBLL=1<< 1, }
 
using esphome::shelly_dimmer::stm32_cmd_t = struct Stm32Cmd { uint8_t get
 
using esphome::shelly_dimmer::stm32_dev_t = struct Stm32Dev { const uint16_t id
 
using esphome::shelly_dimmer::stm32_t = struct Stm32 { uart::UARTDevice *stream
 
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
 
uint8_t esphome::shelly_dimmer::gvr
 
uint8_t esphome::shelly_dimmer::gid
 
uint8_t esphome::shelly_dimmer::rm
 
uint8_t esphome::shelly_dimmer::go
 
uint8_t esphome::shelly_dimmer::wm
 
uint8_t esphome::shelly_dimmer::er
 
uint8_t esphome::shelly_dimmer::wp
 
uint8_t esphome::shelly_dimmer::uw
 
uint8_t esphome::shelly_dimmer::rp
 
uint8_t esphome::shelly_dimmer::ur
 
uint8_t esphome::shelly_dimmer::crc
 
const char * esphome::shelly_dimmer::name
 
const uint32_t esphome::shelly_dimmer::ram_start
 
const uint32_t esphome::shelly_dimmer::ram_end
 
const uint32_t esphome::shelly_dimmer::fl_start
 
const uint32_t esphome::shelly_dimmer::fl_end
 
const uint16_t esphome::shelly_dimmer::fl_pps
 
const uint32_t * esphome::shelly_dimmer::fl_ps
 
const uint32_t esphome::shelly_dimmer::opt_start
 
const uint32_t esphome::shelly_dimmer::opt_end
 
const uint32_t esphome::shelly_dimmer::mem_start
 
const uint32_t esphome::shelly_dimmer::mem_end
 
const uint32_t esphome::shelly_dimmer::flags
 
struct VarlenCmd * esphome::shelly_dimmer::cmd_get_reply
 
uint8_t esphome::shelly_dimmer::bl_version
 
uint8_t esphome::shelly_dimmer::version
 
uint8_t esphome::shelly_dimmer::option1
 
uint8_t esphome::shelly_dimmer::option2
 
uint16_t esphome::shelly_dimmer::pid
 
stm32_cmd_t * esphome::shelly_dimmer::cmd
 
const stm32_dev_t * esphome::shelly_dimmer::dev