![]() |
nRF Connect SDK API 3.3.99
|
| 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.
| buf | Pointer to claimed ranging data buffer. |
| out_buf | Destination to copy up to max_data_len bytes to. |
| max_data_len | Maximum amount of bytes to copy from the buffer. |
| read_cursor | Current offset into procedure subevent buffer, will be read and written to. |
| empty | Set to true if all data has been read from the ranging data buffer. |