Zephyr Project API
4.4.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
12
13
#ifndef H_MCUMGR_MGMT_HANDLERS_
14
#define H_MCUMGR_MGMT_HANDLERS_
15
16
#include <
zephyr/kernel.h
>
17
#include <
zephyr/sys/util_macro.h
>
18
#include <
zephyr/sys/iterable_sections.h
>
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
/* __cplusplus */
23
30
32
typedef
void (*
mcumgr_handler_init_t
)(void);
33
35
struct
mcumgr_handler {
37
const
mcumgr_handler_init_t
init;
38
};
40
49
#define MCUMGR_HANDLER_DEFINE(name, _init) \
50
const STRUCT_SECTION_ITERABLE(mcumgr_handler, name) = { \
51
.init = _init, \
52
}
53
54
#ifdef __cplusplus
55
}
56
#endif
/* __cplusplus */
57
61
62
#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:32
kernel.h
Public kernel APIs.
iterable_sections.h
Iterable sections helpers.
util_macro.h
Macro utilities.
include
zephyr
mgmt
mcumgr
mgmt
handlers.h
Generated on
for Zephyr Project API by
1.16.1