esp_modem: Dual DTE support

Modems can expose 2 terminals, which can be used simultaneously.
One for AT commands, the other one for data.
This commit is contained in:
Tomas Rezucha
2023-03-07 13:35:34 +01:00
parent 08f1f0175d
commit 01c26c82fa
5 changed files with 21 additions and 6 deletions

View File

@ -39,9 +39,12 @@ public:
* @brief Creates a DTE instance from the terminal
* @param config DTE config structure
* @param t unique-ptr to Terminal
* @param s unique-ptr to secondary Terminal
*/
explicit DTE(const esp_modem_dte_config *config, std::unique_ptr<Terminal> t);
explicit DTE(std::unique_ptr<Terminal> t);
explicit DTE(const esp_modem_dte_config *config, std::unique_ptr<Terminal> t, std::unique_ptr<Terminal> s);
explicit DTE(std::unique_ptr<Terminal> t, std::unique_ptr<Terminal> s);
~DTE() = default;