8#ifndef H_MGMT_MGMT_DEFINES_
9#define H_MGMT_MGMT_DEFINES_
26#define MGMT_RETURN_CHECK(ok) ok ? MGMT_ERR_EOK : MGMT_ERR_EMSGSIZE
141#define MGMT_HDR_SIZE 8
mcumgr_group_t
MCUmgr groups.
Definition mgmt_defines.h:47
mcumgr_err_t
MCUmgr error codes.
Definition mgmt_defines.h:94
mcumgr_op_t
Opcodes; encoded in first byte of header.
Definition mgmt_defines.h:29
@ MGMT_GROUP_ID_SETTINGS
Settings management (config) group, used for reading/writing settings.
Definition mgmt_defines.h:58
@ MGMT_GROUP_ID_ENUM
Enumeration management group, used for listing supported command groups.
Definition mgmt_defines.h:79
@ MGMT_GROUP_ID_SPLIT
Split image management group (unused)
Definition mgmt_defines.h:67
@ MGMT_GROUP_ID_IMAGE
Image management group, used for uploading firmware images.
Definition mgmt_defines.h:52
@ MGMT_GROUP_ID_RUN
Run group (unused)
Definition mgmt_defines.h:70
@ MGMT_GROUP_ID_OS
OS (operating system) group.
Definition mgmt_defines.h:49
@ MGMT_GROUP_ID_SHELL
Shell management group, used for executing shell commands.
Definition mgmt_defines.h:76
@ MGMT_GROUP_ID_STAT
Statistic management group, used for retrieving statistics.
Definition mgmt_defines.h:55
@ ZEPHYR_MGMT_GRP_BASIC
Zephyr-specific groups decrease from PERUSER to avoid collision with upstream and user-defined groups...
Definition mgmt_defines.h:88
@ MGMT_GROUP_ID_FS
FS (file system) group, used for performing file IO operations.
Definition mgmt_defines.h:73
@ MGMT_GROUP_ID_LOG
Log management group (unused)
Definition mgmt_defines.h:61
@ MGMT_GROUP_ID_PERUSER
User groups defined from 64 onwards.
Definition mgmt_defines.h:82
@ MGMT_GROUP_ID_CRASH
Crash group (unused)
Definition mgmt_defines.h:64
@ MGMT_ERR_EPERUSER
User errors defined from 256 onwards.
Definition mgmt_defines.h:138
@ MGMT_ERR_EMSGSIZE
Response too large.
Definition mgmt_defines.h:117
@ MGMT_ERR_ENOTSUP
Command not supported.
Definition mgmt_defines.h:120
@ MGMT_ERR_EINVAL
Error in input value.
Definition mgmt_defines.h:105
@ MGMT_ERR_EOK
No error (success).
Definition mgmt_defines.h:96
@ MGMT_ERR_EBADSTATE
Current state disallows command.
Definition mgmt_defines.h:114
@ MGMT_ERR_ENOENT
No such file/entry.
Definition mgmt_defines.h:111
@ MGMT_ERR_EUNKNOWN
Unknown error.
Definition mgmt_defines.h:99
@ MGMT_ERR_EBUSY
Command blocked by processing of other command.
Definition mgmt_defines.h:126
@ MGMT_ERR_UNSUPPORTED_TOO_OLD
Requested SMP MCUmgr protocol version is not supported (too old)
Definition mgmt_defines.h:132
@ MGMT_ERR_EACCESSDENIED
Access to specific function, command or resource denied.
Definition mgmt_defines.h:129
@ MGMT_ERR_ECORRUPT
Corrupt.
Definition mgmt_defines.h:123
@ MGMT_ERR_ETIMEOUT
Operation timed out.
Definition mgmt_defines.h:108
@ MGMT_ERR_ENOMEM
Insufficient memory (likely not enough space for CBOR object).
Definition mgmt_defines.h:102
@ MGMT_ERR_UNSUPPORTED_TOO_NEW
Requested SMP MCUmgr protocol version is not supported (too new)
Definition mgmt_defines.h:135
@ MGMT_OP_WRITE
Write op-code.
Definition mgmt_defines.h:37
@ MGMT_OP_WRITE_RSP
Write response op-code.
Definition mgmt_defines.h:40
@ MGMT_OP_READ
Read op-code.
Definition mgmt_defines.h:31
@ MGMT_OP_READ_RSP
Read response op-code.
Definition mgmt_defines.h:34