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

Modules

 BLE UART command line interface transport configuration
 

Data Structures

struct  nrf_cli_ble_uart_internal_cb_t
 
struct  nrf_cli_ble_uart_internal_s
 
struct  nrf_cli_ble_uart_config_t
 

Macros

#define NRF_CLI_BLE_UART_DEF(_name, _p_gatt, _tx_buf_sz, _rx_buf_sz)
 CLI Bluetooth transport definition. More...
 

Typedefs

typedef struct
nrf_cli_ble_uart_internal_s 
nrf_cli_ble_uart_internal_t
 

Functions

ret_code_t nrf_cli_ble_uart_service_init (void)
 Command line interface transport.
 

Variables

const nrf_cli_transport_api_t nrf_cli_ble_uart_transport_api
 

Detailed Description

Macro Definition Documentation

#define NRF_CLI_BLE_UART_DEF (   _name,
  _p_gatt,
  _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_cli_ble_uart_internal_t _name = { \
.transport = {.p_api = &nrf_cli_ble_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_gatt = _p_gatt, \
}

CLI Bluetooth transport definition.

Parameters
_nameName of the instance.
_p_gattPointer to the nrf_ble_gatt module.
_tx_buf_szSize of TX ring buffer.
_rx_buf_szSize of RX ring buffer.

Documentation feedback | Developer Zone | Subscribe | Updated