Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
smp_raw_dummy.h
Go to the documentation of this file.
1/*
2 * Copyright Runtime.io 2018. All rights reserved.
3 * Copyright Laird Connectivity 2021-2022. All rights reserved.
4 * Copyright (c) 2026 Nordic Semiconductor ASA
5 *
6 * SPDX-License-Identifier: Apache-2.0
7 */
8
13#ifndef ZEPHYR_INCLUDE_MGMT_MCUMGR_TRANSPORT_RAW_DUMMY_H_
14#define ZEPHYR_INCLUDE_MGMT_MCUMGR_TRANSPORT_RAW_DUMMY_H_
15
23
24#include <zephyr/kernel.h>
25#include <zephyr/net_buf.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
37
45
53
64
69
76
83
93
98
103
110
111#ifdef __cplusplus
112}
113#endif
114
118
119#endif /* ZEPHYR_INCLUDE_MGMT_MCUMGR_TRANSPORT_RAW_DUMMY_H_ */
bool smp_raw_dummy_wait_for_data(uint32_t wait_time_s)
Waits for a period of time for outgoing SMPC data to be ready and returns either when a full message ...
uint16_t smp_raw_dummy_get_receive_pos(void)
Gets current receive buffer position.
void smp_raw_dummy_enable(void)
Enabled the dummy SMP module (will process sent/received data).
void smp_raw_dummy_clear_state(void)
Clears internal dummy SMP state and resets semaphore.
bool smp_raw_dummy_get_status(void)
Returns status on if the dummy SMP system is active.
void smp_raw_dummy_add_data(void)
Calls dummy_mcumgr_add_data with the internal SMPC receive buffer.
int smp_raw_dummy_tx_pkt(const uint8_t *data, int len)
Converts input data to go out through the internal SMPC buffer.
void smp_raw_dummy_mcumgr_add_data(uint8_t *data, uint16_t data_size)
Adds SMPC data to the internal buffer to be processed.
uint16_t smp_raw_dummy_get_send_pos(void)
Gets current send buffer position.
void smp_raw_dummy_disable(void)
Disables the dummy SMP module (will not process sent/received data).
struct net_buf * smp_raw_dummy_get_outgoing(void)
Processes a single line (fragment) coming from the mcumgr response to be used in tests.
Public kernel APIs.
Buffer management.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
Network buffer representation.
Definition net_buf.h:1006
uint8_t * data
Pointer to the start of data in the buffer.
Definition net_buf.h:1032
uint16_t len
Length of the data behind the data pointer.
Definition net_buf.h:1035