12#include "core/autogen/mmagic_core_types.h"
225#define CONTROL_STREAM 0
228#define MMAGIC_SYS_MAX_APP_VERSION_LENGTH (31)
257 void (*
tx_cb)(
const char *
buf,
size_t len,
void *cb_arg);
330 void (*cb)(
struct mmagic_data *core,
void *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.
enum mmagic_status mmagic_m2m_agent_local_command(struct mmagic_m2m_agent *agent, void(*cb)(struct mmagic_data *core, void *arg), void *cb_arg, uint32_t timeout)
Queue a callback to execute in the CONTROL_STREAM context.
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.
enum MM_PACKED mmagic_status
Enumeration of return status codes.
enum MM_PACKED mmagic_deep_sleep_mode
Deep sleep modes for the agent MCU.
static unsigned char buf[1024]
Statically allocated buffer for MQTT.
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.