2022-07-29 14:48:51 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "furi_hal.h"
|
|
|
|
|
2023-03-28 01:21:53 +00:00
|
|
|
#define RX_BUF_SIZE (2048)
|
2022-07-29 14:48:51 +00:00
|
|
|
|
|
|
|
typedef struct WifiMarauderUart WifiMarauderUart;
|
|
|
|
|
2022-07-29 16:34:41 +00:00
|
|
|
void wifi_marauder_uart_set_handle_rx_data_cb(
|
|
|
|
WifiMarauderUart* uart,
|
|
|
|
void (*handle_rx_data_cb)(uint8_t* buf, size_t len, void* context));
|
|
|
|
void wifi_marauder_uart_tx(uint8_t* data, size_t len);
|
2023-03-15 21:00:10 +00:00
|
|
|
void wifi_marauder_lp_uart_tx(uint8_t* data, size_t len);
|
|
|
|
WifiMarauderUart* wifi_marauder_usart_init(WifiMarauderApp* app);
|
|
|
|
WifiMarauderUart* wifi_marauder_lp_uart_init(WifiMarauderApp* app);
|
2022-07-29 14:48:51 +00:00
|
|
|
void wifi_marauder_uart_free(WifiMarauderUart* uart);
|