Reworded DCE/DTE modes and switching

This commit is contained in:
David Cermak
2021-03-03 20:35:08 +01:00
parent 00662fcaea
commit 25f5541199
20 changed files with 677 additions and 408 deletions

View File

@ -6,15 +6,12 @@
#define SIMPLE_CXX_CLIENT_UART_TERMINAL_HPP
#include "cxx_include/esp_modem_dte.hpp"
#include "esp_modem_dte_config.h"
std::unique_ptr<terminal> create_uart_terminal(const struct dte_config *config);
class dte;
struct dte_config;
std::shared_ptr<dte> create_dte(const struct dte_config *config);
std::unique_ptr<terminal> create_uart_terminal(const dte_config *config);
std::unique_ptr<dce> create_dce(const std::shared_ptr<dte>& e, esp_netif_t *netif);
#endif //SIMPLE_CXX_CLIENT_UART_TERMINAL_HPP