2020-05-21 01:55:56 -04:00
|
|
|
// Copyright 2019 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.
|
|
|
|
|
|
|
|
#ifndef _ESP_NETIF_LWIP_SLIP_H_
|
|
|
|
#define _ESP_NETIF_LWIP_SLIP_H_
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Creates new SLIP related structure
|
|
|
|
*
|
|
|
|
* @param[in] esp_netif pointer esp-netif instance
|
|
|
|
* @param[in] stack_config TCP/IP stack configuration structure
|
|
|
|
*
|
|
|
|
* @return
|
|
|
|
* - pointer to slip-netif object on success
|
|
|
|
* - NULL otherwise
|
|
|
|
*/
|
2020-06-12 10:43:34 -04:00
|
|
|
netif_related_data_t * esp_netif_new_slip(esp_netif_t *esp_netif, const esp_netif_netstack_config_t *esp_netif_stack_config);
|
2020-05-21 01:55:56 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Destroys the slip netif object
|
|
|
|
*
|
|
|
|
* @param[in] slip pointer to internal slip context instance
|
|
|
|
*/
|
2020-06-12 10:43:34 -04:00
|
|
|
void esp_netif_destroy_slip(netif_related_data_t *slip);
|
2020-05-21 01:55:56 -04:00
|
|
|
|
|
|
|
/**
|
2020-06-12 10:43:34 -04:00
|
|
|
* @brief Stop the esp slip netif
|
2020-05-21 01:55:56 -04:00
|
|
|
*
|
2020-06-12 10:43:34 -04:00
|
|
|
* @param[in] esp_netif handle to slip esp-netif instance
|
2020-05-21 01:55:56 -04:00
|
|
|
*
|
|
|
|
* @return
|
|
|
|
* - ESP_OK on success
|
|
|
|
*/
|
2020-06-12 10:43:34 -04:00
|
|
|
esp_err_t esp_netif_stop_slip(esp_netif_t *esp_netif);
|
2020-05-21 01:55:56 -04:00
|
|
|
|
|
|
|
|
2020-06-12 10:43:34 -04:00
|
|
|
#endif // _ESP_NETIF_LWIP_SLIP_H_
|