nRF5 SDK v14.0.0
Modules | Data Structures | Macros | Typedefs | Variables
UART command line interface transport layer.

Modules

 UART command line interface transport. configuration
 

Data Structures

struct  nrf_cli_uart_internal_cb_t
 
struct  nrf_cli_uart_internal_s
 

Macros

#define NRF_CLI_UART_DEF(_name, _uart_id, _tx_buf_sz, _rx_buf_sz)
 CLI UART transport definition. More...
 

Typedefs

typedef struct
nrf_cli_uart_internal_s 
nrf_cli_uart_internal_t
 
typedef nrf_drv_uart_config_t nrf_cli_uart_config_t
 

Variables

const nrf_cli_transport_api_t nrf_cli_uart_transport_api
 Command line interface transport.
 

Detailed Description

Macro Definition Documentation

#define NRF_CLI_UART_DEF (   _name,
  _uart_id,
  _tx_buf_sz,
  _rx_buf_sz 
)
Value:
APP_TIMER_DEF(CONCAT_2(_name, _timer)); \
NRF_RINGBUF_DEF(CONCAT_2(_name,_tx_ringbuf), _tx_buf_sz); \
NRF_RINGBUF_DEF(CONCAT_2(_name,_rx_ringbuf), _rx_buf_sz); \
static const nrf_drv_uart_t CONCAT_2(_name,_uart) = \
NRF_DRV_UART_INSTANCE(_uart_id); \
static nrf_cli_uart_internal_cb_t CONCAT_2(_name, _cb); \
static const nrf_cli_uart_internal_t _name = { \
.transport = {.p_api = &nrf_cli_uart_transport_api}, \
.p_cb = &CONCAT_2(_name, _cb), \
.p_timer = &CONCAT_2(_name, _timer), \
.p_rx_ringbuf = &CONCAT_2(_name,_rx_ringbuf), \
.p_tx_ringbuf = &CONCAT_2(_name,_tx_ringbuf), \
.p_uart = &CONCAT_2(_name,_uart), \
}

CLI UART transport definition.

Parameters
_nameName of instance.
_uart_idUART instance ID.
_tx_buf_szSize of TX ring buffer.
_rx_buf_szSize of RX ring buffer.

Documentation feedback | Developer Zone | Subscribe | Updated