Files
esp-protocols/components/esp_modem/include/esp_modem_api.h

41 lines
1.1 KiB
C
Raw Normal View History

2021-03-29 19:34:45 +02:00
// Copyright 2021 Espressif Systems (Shanghai) PTE LTD
//
2021-03-29 19:34:45 +02:00
// 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
//
2021-03-29 19:34:45 +02:00
// 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_MODEM_API_H_
#define _ESP_MODEM_API_H_
2021-05-18 19:10:32 +02:00
#include "esp_err.h"
2021-03-16 21:36:13 +01:00
#include "generate/esp_modem_command_declare.inc"
2021-03-30 08:25:16 +02:00
#include "esp_modem_c_api_types.h"
#ifdef __cplusplus
extern "C" {
#endif
2021-04-15 14:59:30 +02:00
#define ESP_MODEM_DECLARE_DCE_COMMAND(name, return_type, num, ...) \
2021-03-16 21:36:13 +01:00
esp_err_t esp_modem_ ## name(esp_modem_dce_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
2021-03-29 19:34:45 +02:00
#endif // _CLIENT_ESP_MODEM_API_H_