![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| int bm_lpuarte_rx_enable | ( | struct bm_lpuarte * | lpu | ) |
#include <bm_lpuarte.h>
Enable the receiver.
The event handler will be called from the caller context with the NRFX_UARTE_EVT_RX_BUF_REQUEST event. The user may respond and provide a buffer using bm_lpuarte_rx_buffer_set. An error is returned if buffer is not provided. After that, the receiver is started and another NRFX_UARTE_EVT_RX_BUF_REQUEST is generated. If a new buffer is not provided, then the receiver is disabled once the first buffer becomes full. If a new buffer is provided, then the receiver will seamlessly switch to a new buffer (using a hardware shortcut).
| [in] | lpu | Low Power UARTE driver instance structure. |
| 0 | Receiver successfully enabled. |
| -EBUSY | When receiver is already enabled. |