Zephyr Project API 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
MCUmgr handler API

MCUmgr handler registration API. More...

Macros

#define MCUMGR_HANDLER_DEFINE(name, _init)
 Define a MCUmgr handler to register.
 

Typedefs

typedef void(* mcumgr_handler_init_t) (void)
 Type definition for a MCUmgr handler initialisation function.
 

Detailed Description

MCUmgr handler registration API.

Macro Definition Documentation

◆ MCUMGR_HANDLER_DEFINE

#define MCUMGR_HANDLER_DEFINE (   name,
  _init 
)

#include <include/zephyr/mgmt/mcumgr/mgmt/handlers.h>

Value:
STRUCT_SECTION_ITERABLE(mcumgr_handler, name) = { \
.init = _init, \
}
#define STRUCT_SECTION_ITERABLE(struct_type, varname)
Defines a new element for an iterable section.
Definition iterable_sections.h:216

Define a MCUmgr handler to register.

This adds a new entry to the iterable section linker list of MCUmgr handers.

Parameters
nameName of the MCUmgr handler to registger.
_initInit function to be called (mcumgr_handler_init_t).

Typedef Documentation

◆ mcumgr_handler_init_t

typedef void(* mcumgr_handler_init_t) (void)

#include <include/zephyr/mgmt/mcumgr/mgmt/handlers.h>

Type definition for a MCUmgr handler initialisation function.