31#include <zcbor_common.h>
51 zcbor_state_t
zs[CONFIG_MCUMGR_SMP_CBOR_MAX_DECODING_LEVELS + 2];
58#ifdef CONFIG_MCUMGR_SMP_SUPPORT_ORIGINAL_PROTOCOL
87#ifdef CONFIG_MCUMGR_SMP_VERBOSE_ERR_RESPONSE
static ZTEST_BMEM volatile int ret
Definition: k_float_disable.c:29
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
Definition: smp.h:38
@ SMP_MCUMGR_VERSION_2
Definition: smp.h:43
@ SMP_MCUMGR_VERSION_1
Definition: smp.h:40
bool smp_add_cmd_ret(zcbor_state_t *zse, uint16_t group, uint16_t ret)
Appends a "ret" response.
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:47
zcbor_state_t zs[CONFIG_MCUMGR_SMP_CBOR_MAX_DECODING_LEVELS+2]
Definition: smp.h:51
zcbor_state_t zs[2]
Definition: smp.h:56
struct net_buf * nb
Definition: smp.h:55
Network buffer representation.
Definition: buf.h:906
Decodes, encodes, and transmits SMP packets.
Definition: smp.h:82
struct cbor_nb_writer * writer
Definition: smp.h:85
struct smp_transport * smpt
Definition: smp.h:83
struct cbor_nb_reader * reader
Definition: smp.h:84
SMP transport object for sending SMP responses.
Definition: smp.h:118