mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-18 04:52:18 +02:00
update per design review
This commit is contained in:
@ -3,12 +3,26 @@
|
||||
//
|
||||
|
||||
#include "cxx_include/esp_modem_dce_module.hpp"
|
||||
#include "generate/esp_modem_command_declare.inc"
|
||||
|
||||
command_result SIM7600::get_module_name(std::string& name)
|
||||
{
|
||||
name = "7600";
|
||||
return command_result::OK;
|
||||
}
|
||||
#define ARGS0
|
||||
#define ARGS1 , x
|
||||
#define _ARGS(x) ARGS ## x
|
||||
#define ARGS(x) _ARGS(x)
|
||||
#define TEMPLATE_ARG
|
||||
#define ESP_MODEM_DECLARE_DCE_COMMAND(name, return_type, arg_nr, MUX_ARG, ...) \
|
||||
return_type GenericModule::name(__VA_ARGS__) { return esp_modem::dce_commands::name(dte.get() ARGS(arg_nr) ); }
|
||||
|
||||
DECLARE_ALL_COMMAND_APIS(return_type name(...) { forwards to esp_modem::dce_commands::name(...) } )
|
||||
|
||||
#undef ESP_MODEM_DECLARE_DCE_COMMAND
|
||||
|
||||
|
||||
//command_result SIM7600::get_module_name(std::string& name)
|
||||
//{
|
||||
// name = "7600";
|
||||
// return command_result::OK;
|
||||
//}
|
||||
|
||||
command_result SIM800::get_module_name(std::string& name)
|
||||
{
|
||||
|
Reference in New Issue
Block a user