mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-17 04:22:14 +02:00
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:
@ -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;
|
||||
|
||||
|
@ -27,8 +27,9 @@ namespace esp_modem {
|
||||
*/
|
||||
enum class modem_mode {
|
||||
UNDEF,
|
||||
COMMAND_MODE, /*!< Command mode -- the modem is supposed to send AT commands in this mode */
|
||||
COMMAND_MODE, /*!< Command mode -- the modem is supposed to send AT commands in this mode */
|
||||
DATA_MODE, /*!< Data mode -- the modem communicates with network interface on PPP protocol */
|
||||
DUAL_MODE, /*!< Dual mode -- the modem has two real terminals. Data and commands work at the same time */
|
||||
CMUX_MODE, /*!< CMUX (Multiplex mode) -- Simplified CMUX mode, which creates two virtual terminals,
|
||||
* assigning one solely to command interface and the other to the data mode */
|
||||
CMUX_MANUAL_MODE, /*!< Enter CMUX mode manually -- just creates two virtual terminals */
|
||||
|
Reference in New Issue
Block a user