![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| int bm_lpuarte_rx_buffer_set | ( | struct bm_lpuarte * | lpu, |
| uint8_t * | data, | ||
| size_t | length ) |
#include <bm_lpuarte.h>
Provide reception buffer.
The function should be called as a response to the NRFX_UARTE_EVT_RX_BUF_REQUEST event. If the function is called before enabling the receiver, the first buffer is configured. If the function is called and there is no active buffer but the receiver is enabled but not started, it starts reception.
| [in] | lpu | Low Power UARTE driver instance structure. |
| [in] | data | Pointer to a buffer. |
| [in] | length | Buffer length. |
| 0 | Buffer successfully set. |
| -EINPROGRESS | Buffer provided without pending request. |
| -EACCES | No cache buffer provided or blocking mode is used, transfer cannot be handled. |
| -EBUSY | Previous buffer is still in use. |
| -EPERM | Provided uncached buffer after providing cached one. |