#include <inttypes.h>
#include "tinycbor/cbor.h"
#include "tinycbor/cbor_buf_writer.h"
Go to the source code of this file.
◆ cbor_nb_reader_init()
Initializes a CBOR reader with the specified net_buf.
- Parameters
-
cnr | The reader to initialize. |
nb | The net_buf that the reader will read from. |
◆ cbor_nb_writer_init()
Initializes a CBOR writer with the specified net_buf.
- Parameters
-
cnw | The writer to initialize. |
nb | The net_buf that the writer will write to. |
◆ mcumgr_buf_alloc()
struct net_buf * mcumgr_buf_alloc |
( |
void |
| ) |
|
Allocates a net_buf for holding an mcumgr request or response.
- Returns
- A newly-allocated buffer net_buf on success; NULL on failure.
◆ mcumgr_buf_free()
void mcumgr_buf_free |
( |
struct net_buf * |
nb | ) |
|
Frees an mcumgr net_buf.
- Parameters
-