32#include <zcbor_common.h>
52 zcbor_state_t
zs[CONFIG_MCUMGR_SMP_CBOR_MAX_DECODING_LEVELS + 2];
57 zcbor_state_t
zs[CONFIG_MCUMGR_SMP_CBOR_MAX_ENCODING_LEVELS + 2];
59#if defined(CONFIG_MCUMGR_SMP_SUPPORT_ORIGINAL_PROTOCOL)
88#ifdef CONFIG_MCUMGR_SMP_VERBOSE_ERR_RESPONSE
124#if defined(CONFIG_MCUMGR_SMP_SUPPORT_ORIGINAL_PROTOCOL)
132typedef int (*smp_translate_error_fn)(
uint16_t err);
bool smp_add_cmd_err(zcbor_state_t *zse, uint16_t group, uint16_t ret)
Appends an "err" response.
int smp_process_request_packet(struct smp_streamer *streamer, void *req)
Processes a single SMP request packet and sends all corresponding responses.
smp_mcumgr_version_t
SMP MCUmgr protocol version, part of the SMP header.
Definition smp.h:39
@ SMP_MCUMGR_VERSION_2
Version 2: adds more detailed error reporting capabilities.
Definition smp.h:44
@ SMP_MCUMGR_VERSION_1
Version 1: the original protocol.
Definition smp.h:41
struct net_buf * smp_packet_alloc(void)
Allocates a net_buf for holding an mcumgr request or response.
void smp_packet_free(struct net_buf *nb)
Frees an mcumgr net_buf.
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
struct net_buf * nb
Definition smp.h:48
zcbor_state_t zs[CONFIG_MCUMGR_SMP_CBOR_MAX_DECODING_LEVELS+2]
Definition smp.h:52
zcbor_state_t zs[CONFIG_MCUMGR_SMP_CBOR_MAX_ENCODING_LEVELS+2]
Definition smp.h:57
struct net_buf * nb
Definition smp.h:56
Group structure.
Definition grp.h:18
Network buffer representation.
Definition net_buf.h:1006
Decodes, encodes, and transmits SMP packets.
Definition smp.h:83
struct cbor_nb_writer * writer
Definition smp.h:86
struct smp_transport * smpt
Definition smp.h:84
struct cbor_nb_reader * reader
Definition smp.h:85
SMP transport object for sending SMP responses.
Definition smp.h:118