12#include <mgmt/mcumgr/transport/smp_internal.h>
int smp_client_object_init(struct smp_client_object *smp_client, int smp_type)
Initialize a SMP client object.
int smp_client_single_response(struct net_buf *nb, const struct smp_hdr *res_hdr)
SMP client response handler.
struct net_buf * smp_client_buf_allocation(struct smp_client_object *smp_client, uint16_t group, uint8_t command_id, uint8_t op, enum smp_mcumgr_version_t version)
Allocate buffer and initialize with SMP header.
void smp_client_buf_free(struct net_buf *nb)
Free a SMP client buffer.
int(* smp_client_res_fn)(struct net_buf *nb, void *user_data)
Response callback for SMP send.
Definition: smp_client.h:61
int smp_client_send_cmd(struct smp_client_object *smp_client, struct net_buf *nb, smp_client_res_fn cb, void *user_data, int timeout_in_sec)
SMP client data send request.
SMP - Simple Management Protocol.
smp_mcumgr_version_t
SMP MCUmgr protocol version, part of the SMP header.
Definition: smp.h:39
__UINT8_TYPE__ uint8_t
Definition: stdint.h:88
__UINT16_TYPE__ uint16_t
Definition: stdint.h:89
Definition: kernel.h:2391
A structure used to submit work.
Definition: kernel.h:3880
Network buffer representation.
Definition: buf.h:1004
uint8_t user_data[]
System metadata for this buffer.
Definition: buf.h:1051
SMP client object.
Definition: smp_client.h:26
struct smp_transport * smpt
SMP transport object.
Definition: smp_client.h:32
uint8_t smp_seq
SMP SEQ.
Definition: smp_client.h:34
struct k_fifo tx_fifo
FIFO for client TX queue.
Definition: smp_client.h:30
struct k_work work
Must be the first member.
Definition: smp_client.h:28
SMP transport object for sending SMP responses.
Definition: smp.h:118