nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ SLM_AT_CMD_CUSTOM

#define SLM_AT_CMD_CUSTOM ( entry,
_filter,
_callback )
Value:
static int _callback(enum at_parser_cmd_type cmd_type, struct at_parser *parser, \
uint32_t); \
static int _callback##_wrapper_##entry(char *buf, size_t len, char *at_cmd) \
{ \
return slm_at_cb_wrapper(buf, len, at_cmd, _callback); \
} \
AT_CMD_CUSTOM(entry, _filter, _callback##_wrapper_##entry);
at_parser_cmd_type
Identifies the type of a given AT command prefix.
Definition at_parser.h:26
int slm_at_cb_wrapper(char *buf, size_t len, char *at_cmd, slm_at_callback cb)
Generic wrapper for a custom SLM AT command callback.
AT parser.
Definition at_parser.h:45
Set of parser variables needed for parser framework to operate.
Definition parser.h:55

Define a wrapper for a SLM custom AT command callback.

Wrapper will call the generic wrapper, which will call the actual AT command handler.

Parameters
entryThe entry name.
_filterThe (partial) AT command on which the callback should trigger.
_callbackThe AT command handler callback.