38 #ifndef SERIAL_UART_H__ 39 #define SERIAL_UART_H__ 42 #include "nrf_mesh_serial.h" 90 NRF_UART0->EVENTS_TXDRDY = 0;
91 NRF_UART0->TASKS_STARTTX = 1;
97 NRF_UART0->TASKS_STOPTX = 1;
103 NRF_UART0->TXD = value;
static void serial_uart_tx_stop(void)
Stops a transfer.
void serial_uart_receive_set(bool enable_rx)
Enable/disable reception of data from the peer device.
static void serial_uart_byte_send(uint8_t value)
Sets the next byte to send.
static void serial_uart_tx_start(void)
Starts a transfer.
uint32_t serial_uart_init(serial_uart_rx_cb_t rx_cb, serial_uart_tx_cb_t tx_cb)
Initializes the serial interface.
void(* serial_uart_rx_cb_t)(uint8_t byte)
Serial UART RX callback type.
void serial_uart_process(void)
Sends and receives any pending data on the UART line if possible.
void(* serial_uart_tx_cb_t)(void)
Serial UART TX callback type.