12#include "core/autogen/mmagic_core_types.h"
224#define CONTROL_STREAM 0
227#define MMAGIC_SYS_MAX_APP_VERSION_LENGTH (31)
256 void (*
tx_cb)(
const char *
buf,
size_t len,
void *cb_arg);
bool(* mmagic_set_deep_sleep_mode_cb_t)(enum mmagic_deep_sleep_mode mode, void *cb_arg)
Typedef for callback function that is invoked by MMAGIC to request a change in deep sleep mode.
#define MMAGIC_SYS_MAX_APP_VERSION_LENGTH
Maximum length of the app_version string (excluding null terminator).
struct mmagic_m2m_agent * mmagic_m2m_agent_init(const struct mmagic_m2m_agent_init_args *args)
Initialize the M2M agent.
struct mmagic_cli * mmagic_cli_init(const struct mmagic_cli_init_args *args)
Initialize and enable the CLI.
void mmagic_cli_rx(struct mmagic_cli *ctx, const char *buf, size_t len)
This function is used to pass received characters to the MMAGIC CLI.
mmagic_deep_sleep_mode
Deep sleep modes for the agent MCU.
char buf[1408]
Statically allocated buffer for HTTP GET request, just under 1 packet size.
CLI initialization arguments structure.
void * tx_cb_arg
Opaque arg to pass to tx_cb.
const struct mmwlan_regulatory_db * reg_db
Reference to the regulatory database, used to initialize wlan.
char app_version[MMAGIC_SYS_MAX_APP_VERSION_LENGTH+1]
Application version string.
void * set_deep_sleep_mode_cb_arg
Opaque arg to pass to set_deep_sleep_mode_cb.
void(* tx_cb)(const char *buf, size_t len, void *cb_arg)
Transmit callback.
mmagic_set_deep_sleep_mode_cb_t set_deep_sleep_mode_cb
Set deep sleep mode callback.
const struct mmwlan_regulatory_db * reg_db
Reference to the regulatory database, used to initialize wlan.
char app_version[MMAGIC_SYS_MAX_APP_VERSION_LENGTH+1]
Application version string.
Regulatory database data structure.