esp-modem: c++ dce added

This commit is contained in:
David Cermak
2021-02-26 20:23:29 +01:00
parent 86b8cfd6f5
commit 7807770d50
7 changed files with 164 additions and 12 deletions

View File

@ -0,0 +1,30 @@
//
// Created by david on 2/26/21.
//
#ifndef SIMPLE_CXX_CLIENT_PPP_NETIF_HPP
#define SIMPLE_CXX_CLIENT_PPP_NETIF_HPP
#include "esp_netif.h"
class dte;
//struct ppp_netif_driver;
struct ppp_netif_driver {
esp_netif_driver_base_t base;
dte *e;
};
class ppp {
public:
explicit ppp(std::shared_ptr<dte> e, esp_netif_t *netif);
private:
esp_netif_t *netif;
std::shared_ptr<dte> _dte;
struct ppp_netif_driver driver;
};
#endif //SIMPLE_CXX_CLIENT_PPP_NETIF_HPP