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

@ -88,6 +88,7 @@ bool DCE_Mode::set_unsafe(DTE *dte, ModuleIf *device, Netif &netif, modem_mode m
{
switch (m) {
case modem_mode::UNDEF:
case modem_mode::DUAL_MODE: // Only DTE can be in Dual mode
break;
case modem_mode::COMMAND_MODE:
if (mode == modem_mode::COMMAND_MODE || mode >= modem_mode::CMUX_MANUAL_MODE) {