nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ bt_ras_rd_buffer_bytes_pull()

int bt_ras_rd_buffer_bytes_pull ( struct ras_rd_buffer * buf,
uint8_t * out_buf,
uint16_t max_data_len,
uint16_t * read_cursor,
bool * empty )

#include <include/bluetooth/services/ras.h>

Pull bytes from a ranging data buffer.

Utility method to consume up to max_data_len bytes from a buffer. The provided read_cursor will be used as the initial offset and updated.

Parameters
bufPointer to claimed ranging data buffer.
out_bufDestination to copy up to max_data_len bytes to.
max_data_lenMaximum amount of bytes to copy from the buffer.
read_cursorCurrent offset into procedure subevent buffer, will be read and written to.
emptySet to true if all data has been read from the ranging data buffer.
Returns
Number of bytes written into out_buf.