Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
|
#include <inttypes.h>
#include <zephyr/sys/slist.h>
#include <zephyr/mgmt/mcumgr/smp/smp.h>
#include <zephyr/mgmt/mcumgr/mgmt/mgmt_defines.h>
Go to the source code of this file.
Data Structures | |
struct | mgmt_handler |
Read handler and write handler for a single command ID. More... | |
struct | mgmt_group |
A collection of handlers for an entire command group. More... | |
Macros | |
#define | MGMT_CTXT_SET_RC_RSN(mc, rsn) |
#define | MGMT_CTXT_RC_RSN(mc) |
Typedefs | |
typedef void *(* | mgmt_alloc_rsp_fn) (const void *src_buf, void *arg) |
Allocates a buffer suitable for holding a response. | |
typedef void(* | mgmt_reset_buf_fn) (void *buf, void *arg) |
Resets a buffer to a length of 0. | |
typedef int(* | mgmt_handler_fn) (struct smp_streamer *ctxt) |
Processes a request and writes the corresponding response. | |
typedef bool(* | mgmt_groups_cb_t) (const struct mgmt_group *group, void *user_data) |
Group iteration callback. | |
Functions | |
void | mgmt_register_group (struct mgmt_group *group) |
Registers a full command group. | |
void | mgmt_unregister_group (struct mgmt_group *group) |
Unregisters a full command group. | |
void | mgmt_groups_foreach (mgmt_groups_cb_t user_cb, void *user_data) |
Iterate over groups. | |
const struct mgmt_handler * | mgmt_find_handler (uint16_t group_id, uint16_t command_id) |
Finds a registered command handler. | |
const struct mgmt_group * | mgmt_find_group (uint16_t group_id) |
Finds a registered command group. | |
const struct mgmt_handler * | mgmt_get_handler (const struct mgmt_group *group, uint16_t command_id) |
Finds a registered command handler. | |