mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-17 12:32:14 +02:00
34 lines
709 B
C
34 lines
709 B
C
![]() |
//
|
||
|
// Created by david on 3/8/21.
|
||
|
//
|
||
|
|
||
|
#ifndef SIMPLE_CXX_CLIENT_ESP_MODEM_API_H
|
||
|
#define SIMPLE_CXX_CLIENT_ESP_MODEM_API_H
|
||
|
#pragma once
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
typedef struct esp_modem_dce_wrap esp_modem_t;
|
||
|
|
||
|
esp_modem_t *esp_modem_new(const dte_config *config, esp_netif_t *netif, const char* apn);
|
||
|
|
||
|
void esp_modem_destroy(esp_modem_t * dce);
|
||
|
|
||
|
|
||
|
#define ESP_MODEM_DECLARE_DCE_COMMAND(name, return_type, TEMPLATE_ARG, MUX_ARG, ...) \
|
||
|
esp_err_t esp_modem_ ## name(esp_modem_t *dce, ##__VA_ARGS__);
|
||
|
|
||
|
DECLARE_ALL_COMMAND_APIS(declares esp_modem_<API>(esp_modem_t * dce, ...);)
|
||
|
|
||
|
#undef ESP_MODEM_DECLARE_DCE_COMMAND
|
||
|
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
|
||
|
#endif //SIMPLE_CXX_CLIENT_ESP_MODEM_API_H
|