Files
esp-protocols/components/esp_modem/private_include/uart_resource.hpp
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
604 B
C++
Raw Normal View History

2021-05-17 18:24:35 +02:00
/*
* SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
*
2021-05-17 18:24:35 +02:00
* SPDX-License-Identifier: Apache-2.0
*/
2021-05-26 15:57:25 +02:00
#pragma once
2021-05-17 18:24:35 +02:00
#include "cxx_include/esp_modem_dte.hpp"
#include "esp_modem_config.h"
struct esp_modem_uart_term_config;
2021-05-17 18:24:35 +02:00
namespace esp_modem {
/**
* @brief Uart Resource is a platform specific struct which is implemented separately for ESP_PLATFORM and linux target
*/
struct uart_resource {
2021-06-01 10:21:51 +02:00
explicit uart_resource(const esp_modem_uart_term_config *config, QueueHandle_t *event_queue, int fd);
2021-05-17 18:24:35 +02:00
~uart_resource();
2021-05-17 18:24:35 +02:00
uart_port_t port{};
};
} // namespace esp_modem