esp_flasher_uart.h 419 B

1234567891011121314
  1. #pragma once
  2. #include "furi_hal.h"
  3. #define RX_BUF_SIZE (2048)
  4. typedef struct EspFlasherUart EspFlasherUart;
  5. void esp_flasher_uart_set_handle_rx_data_cb(
  6. EspFlasherUart* uart,
  7. void (*handle_rx_data_cb)(uint8_t* buf, size_t len, void* context));
  8. void esp_flasher_uart_tx(uint8_t* data, size_t len);
  9. EspFlasherUart* esp_flasher_usart_init(EspFlasherApp* app);
  10. void esp_flasher_uart_free(EspFlasherUart* uart);