mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-23 15:27:28 +02:00
51 lines
1.3 KiB
C++
51 lines
1.3 KiB
C++
![]() |
// Copyright 2021 Espressif Systems (Shanghai) PTE LTD
|
||
|
//
|
||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||
|
// you may not use this file except in compliance with the License.
|
||
|
// You may obtain a copy of the License at
|
||
|
|
||
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||
|
//
|
||
|
// Unless required by applicable law or agreed to in writing, software
|
||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
|
// See the License for the specific language governing permissions and
|
||
|
// limitations under the License.
|
||
|
|
||
|
#include "cxx_include/esp_modem_netif.hpp"
|
||
|
|
||
|
namespace esp_modem {
|
||
|
|
||
|
void Netif::on_ppp_changed(void *arg, esp_event_base_t event_base,
|
||
|
int32_t event_id, void *event_data) {
|
||
|
}
|
||
|
|
||
|
esp_err_t Netif::esp_modem_dte_transmit(void *h, void *buffer, size_t len) {
|
||
|
return ESP_OK;
|
||
|
}
|
||
|
|
||
|
esp_err_t Netif::esp_modem_post_attach(esp_netif_t *esp_netif, void *args) {
|
||
|
return ESP_OK;
|
||
|
}
|
||
|
|
||
|
void Netif::receive(uint8_t *data, size_t len) {
|
||
|
}
|
||
|
|
||
|
Netif::Netif(std::shared_ptr<DTE> e, esp_netif_t *ppp_netif) :
|
||
|
ppp_dte(std::move(e)), netif(ppp_netif) {
|
||
|
}
|
||
|
|
||
|
void Netif::start() {
|
||
|
}
|
||
|
|
||
|
void Netif::stop() {
|
||
|
}
|
||
|
|
||
|
Netif::~Netif() {
|
||
|
}
|
||
|
|
||
|
void Netif::wait_until_ppp_exits() {
|
||
|
|
||
|
}
|
||
|
|
||
|
} // namespace esp_modem
|