8#ifndef ZEPHYR_INCLUDE_MGMT_SMP_H_
9#define ZEPHYR_INCLUDE_MGMT_SMP_H_
25struct zephyr_smp_transport;
128#ifdef CONFIG_MCUMGR_TRANSPORT_REASSEMBLY
int(* smp_transport_ud_copy_fn)(struct net_buf *dst, const struct net_buf *src)
SMP copy user_data callback.
Definition: smp.h:67
void smp_rx_clear(struct smp_transport *zst)
Used to clear pending queued requests for an SMP transport.
void(* smp_transport_ud_free_fn)(void *ud)
SMP free user_data callback.
Definition: smp.h:79
void smp_rx_remove_invalid(struct smp_transport *zst, void *arg)
Used to remove queued requests for an SMP transport that are no longer valid. A smp_transport_query_v...
int(* smp_transport_out_fn)(struct net_buf *nb)
SMP transmit callback for transport.
Definition: smp.h:37
bool(* smp_transport_query_valid_check_fn)(struct net_buf *nb, void *arg)
Function for checking if queued data is still valid.
Definition: smp.h:92
uint16_t(* smp_transport_get_mtu_fn)(const struct net_buf *nb)
SMP MTU query callback for transport.
Definition: smp.h:52
int smp_transport_init(struct smp_transport *smpt)
Initializes a Zephyr SMP transport object.
#define bool
Definition: stdbool.h:13
__UINT16_TYPE__ uint16_t
Definition: stdint.h:89
Definition: kernel.h:2310
A structure used to submit work.
Definition: kernel.h:3765
Network buffer representation.
Definition: buf.h:906
Function pointers of SMP transport functions, if a handler is NULL then it is not supported/implement...
Definition: smp.h:98
smp_transport_get_mtu_fn get_mtu
Definition: smp.h:103
smp_transport_query_valid_check_fn query_valid_check
Definition: smp.h:112
smp_transport_out_fn output
Definition: smp.h:100
smp_transport_ud_free_fn ud_free
Definition: smp.h:109
smp_transport_ud_copy_fn ud_copy
Definition: smp.h:106
SMP transport object for sending SMP responses.
Definition: smp.h:118
struct k_work work
Definition: smp.h:120
struct k_fifo fifo
Definition: smp.h:123
struct smp_transport_api_t functions
Definition: smp.h:126
static ZTEST_BMEM struct thread_data expected