Zephyr Project API
4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
stat_mgmt.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2018-2021 mcumgr authors
3
* Copyright (c) 2023 Nordic Semiconductor ASA
4
*
5
* SPDX-License-Identifier: Apache-2.0
6
*/
7
8
#ifndef H_STAT_MGMT_
9
#define H_STAT_MGMT_
10
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
21
26
#define STAT_MGMT_ID_SHOW 0
27
#define STAT_MGMT_ID_LIST 1
33
enum
stat_mgmt_err_code_t
{
35
STAT_MGMT_ERR_OK
= 0,
36
38
STAT_MGMT_ERR_UNKNOWN
,
39
41
STAT_MGMT_ERR_INVALID_GROUP
,
42
44
STAT_MGMT_ERR_INVALID_STAT_NAME
,
45
47
STAT_MGMT_ERR_INVALID_STAT_SIZE
,
48
50
STAT_MGMT_ERR_WALK_ABORTED
,
51
};
52
56
struct
stat_mgmt_entry
{
58
const
char
*
name
;
59
61
uint64_t
value
;
62
};
63
64
#ifdef __cplusplus
65
}
66
#endif
67
72
#endif
/* H_STAT_MGMT_ */
stat_mgmt_err_code_t
stat_mgmt_err_code_t
Command result codes for statistics management group.
Definition
stat_mgmt.h:33
STAT_MGMT_ERR_INVALID_GROUP
@ STAT_MGMT_ERR_INVALID_GROUP
The provided statistic group name was not found.
Definition
stat_mgmt.h:41
STAT_MGMT_ERR_INVALID_STAT_NAME
@ STAT_MGMT_ERR_INVALID_STAT_NAME
The provided statistic name was not found.
Definition
stat_mgmt.h:44
STAT_MGMT_ERR_WALK_ABORTED
@ STAT_MGMT_ERR_WALK_ABORTED
Walk through of statistics was aborted.
Definition
stat_mgmt.h:50
STAT_MGMT_ERR_OK
@ STAT_MGMT_ERR_OK
No error, this is implied if there is no ret value in the response.
Definition
stat_mgmt.h:35
STAT_MGMT_ERR_UNKNOWN
@ STAT_MGMT_ERR_UNKNOWN
Unknown error occurred.
Definition
stat_mgmt.h:38
STAT_MGMT_ERR_INVALID_STAT_SIZE
@ STAT_MGMT_ERR_INVALID_STAT_SIZE
The size of the statistic cannot be handled.
Definition
stat_mgmt.h:47
uint64_t
__UINT64_TYPE__ uint64_t
Definition
stdint.h:91
stat_mgmt_entry
Represents a single value in a statistics group.
Definition
stat_mgmt.h:56
stat_mgmt_entry::name
const char * name
Name of the statistic.
Definition
stat_mgmt.h:58
stat_mgmt_entry::value
uint64_t value
Value of the statistic.
Definition
stat_mgmt.h:61
include
zephyr
mgmt
mcumgr
grp
stat_mgmt
stat_mgmt.h
Generated on Sun Aug 24 2025 06:52:31 for Zephyr Project API by
1.9.8