Zephyr API Documentation
4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
handlers.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2022 Nordic Semiconductor ASA
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef H_MCUMGR_MGMT_HANDLERS_
8
#define H_MCUMGR_MGMT_HANDLERS_
9
10
#include <
zephyr/kernel.h
>
11
#include <
zephyr/sys/util_macro.h
>
12
#include <
zephyr/sys/iterable_sections.h
>
13
14
#ifdef __cplusplus
15
extern
"C"
{
16
#endif
/* __cplusplus */
17
26
typedef
void (*
mcumgr_handler_init_t
)(void);
27
29
struct
mcumgr_handler {
31
const
mcumgr_handler_init_t
init;
32
};
43
#define MCUMGR_HANDLER_DEFINE(name, _init) \
44
STRUCT_SECTION_ITERABLE(mcumgr_handler, name) = { \
45
.init = _init, \
46
}
47
48
#ifdef __cplusplus
49
}
50
#endif
/* __cplusplus */
51
56
#endif
/* H_MCUMGR_MGMT_HANDLERS_ */
mcumgr_handler_init_t
void(* mcumgr_handler_init_t)(void)
Type definition for a MCUmgr handler initialisation function.
Definition
handlers.h:26
kernel.h
Public kernel APIs.
iterable_sections.h
util_macro.h
Macro utilities.
zephyr
mgmt
mcumgr
mgmt
handlers.h
Generated on Sat Nov 23 2024 09:02:27 for Zephyr API Documentation by
1.12.0