Lines Matching +full:input +full:- +full:buffer

4  * SPDX-License-Identifier: Apache-2.0
18 * @brief Packed buffer API
19 * @defgroup pbuf Packed Buffer API
30 /* Minimal length of the data field in the buffer to store the smalest packet
33 * (+_PBUF_IDX_SIZE) to distinguish buffer full and buffer empty.
45 /** @brief Control block of packet buffer.
59 * Used for validation - TODO: To be
67 * @brief Data block of the packed buffer.
85 * @brief Scure packed buffer.
87 * The packet buffer implements lightweight unidirectional packet
88 * buffer with read/write semantics on top of a memory region shared
92 * This structure supports single writer and reader. Data stored in the buffer
98 * buffer.
101 * to the buffer
108 * It is recommended to use this macro to initialize packed buffer
122 .len = (uint32_t)((uint32_t)(size) - MAX(dcache_align, _PBUF_IDX_SIZE) - \
161 * @brief Initialize the Tx packet buffer.
163 * This function initializes the Tx packet buffer based on provided configuration.
168 * @param pb Pointer to the packed buffer containing
172 * @retval -EINVAL when the input parameter is incorrect.
177 * @brief Initialize the Rx packet buffer.
179 * This function initializes the Rx packet buffer.
184 * @param pb Pointer to the packed buffer containing
188 * @retval -EINVAL when the input parameter is incorrect.
193 * @brief Write specified amount of data to the packet buffer.
195 * This function call writes specified amount of data to the packet buffer if
196 * the buffer will fit the data.
198 * @param pb A buffer to which to write.
199 * @param buf Pointer to the data to be written to the buffer.
200 * @param len Number of bytes to be written to the buffer. Must be positive.
202 * -EINVAL, if any of input parameter is incorrect.
203 * -ENOMEM, if len is bigger than the buffer can fit.
209 * @brief Read specified amount of data from the packet buffer.
214 * @param pb A buffer from which data will be read.
217 * @param len Number of bytes to be read from the buffer.
220 * -EINVAL, if any of input parameter is incorrect.
221 * -ENOMEM, if message can not fit in provided buf.
222 * -EAGAIN, if not whole message is ready yet.