7#ifndef ZEPHYR_INCLUDE_MGMT_BUF_H_
8#define ZEPHYR_INCLUDE_MGMT_BUF_H_
11#include <zcbor_common.h>
12#include <zcbor_encode.h>
20 zcbor_state_t
zs[CONFIG_MGMT_MAX_DECODING_LEVELS + 2];
void cbor_nb_writer_init(struct cbor_nb_writer *cnw, struct net_buf *nb)
Initializes a CBOR writer with the specified net_buf.
void mcumgr_buf_free(struct net_buf *nb)
Frees an mcumgr net_buf.
struct net_buf * mcumgr_buf_alloc(void)
Allocates a net_buf for holding an mcumgr request or response.
void cbor_nb_reader_init(struct cbor_nb_reader *cnr, struct net_buf *nb)
Initializes a CBOR reader with the specified net_buf.
struct net_buf * nb
Definition: buf.h:16
zcbor_state_t zs[CONFIG_MGMT_MAX_DECODING_LEVELS+2]
Definition: buf.h:20
zcbor_state_t zs[2]
Definition: buf.h:25
struct net_buf * nb
Definition: buf.h:24
Network buffer representation.
Definition: buf.h:914