23 #ifdef USE_SHD_FIRMWARE_DATA 30 namespace shelly_dimmer {
131 #endif // USE_SHD_FIRMWARE_DATA
constexpr auto STREAM_OPT_CMD_INIT
stm32_err_t stm32_wprot_memory(const stm32_unique_ptr &stm)
enum Stm32Err { STM32_ERR_OK=0, STM32_ERR_UNKNOWN, STM32_ERR_NACK, STM32_ERR_NO_CMD, } stm32_err_t
stm32_err_t stm32_wunprot_memory(const stm32_unique_ptr &stm)
struct VarlenCmd * cmd_get_reply
stm32_err_t stm32_crc_wrapper(const stm32_unique_ptr &stm, uint32_t address, uint32_t length, uint32_t *crc)
stm32_err_t stm32_write_memory(const stm32_unique_ptr &stm, uint32_t address, const uint8_t *data, const unsigned int len)
constexpr auto STREAM_OPT_RETRY
struct Stm32Cmd { uint8_t get stm32_cmd_t
struct Stm32Dev { const uint16_t id stm32_dev_t
T id(T value)
Helper function to make id(var) known from lambdas work in custom components.
stm32_err_t stm32_crc_memory(const stm32_unique_ptr &stm, const uint32_t address, const uint32_t length, uint32_t *const crc)
constexpr auto STREAM_SERIAL
constexpr auto STM32_MAX_TX_FRAME
stm32_err_t stm32_readprot_memory(const stm32_unique_ptr &stm)
constexpr auto STREAM_OPT_BYTE
uint32_t stm32_sw_crc(uint32_t crc, uint8_t *buf, unsigned int len)
stm32_err_t stm32_go(const stm32_unique_ptr &stm, const uint32_t address)
constexpr auto STREAM_I2C
constexpr auto STM32_MAX_PAGES
constexpr auto STREAM_OPT_STRETCH_W
stm32_unique_ptr stm32_init(uart::UARTDevice *stream, const uint8_t flags, const char init)
std::unique_ptr< stm32_t, void(*)(stm32_t *)> stm32_unique_ptr
constexpr auto STM32_MASS_ERASE
constexpr auto STREAM_OPT_GVR_ETX
stm32_err_t stm32_read_memory(const stm32_unique_ptr &stm, const uint32_t address, uint8_t *data, const unsigned int len)
enum Flags { F_NO_ME=1<< 0, F_OBLL=1<< 1, } flags_t
constexpr auto STREAM_OPT_I2C
stm32_err_t stm32_erase_memory(const stm32_unique_ptr &stm, uint32_t spage, uint32_t pages)
struct Stm32 { uart::UARTDevice *stream stm32_t
stm32_err_t stm32_runprot_memory(const stm32_unique_ptr &stm)
Implementation of SPI Controller mode.
stm32_err_t stm32_reset_device(const stm32_unique_ptr &stm)
constexpr auto STM32_MAX_RX_FRAME