BLE UART command line interface transport layer

nRF5 SDK v15.0.0

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
_name Name of the instance.
_p_gatt Pointer to the nrf_ble_gatt module.
_tx_buf_sz Size of TX ring buffer.
_rx_buf_sz Size of RX ring buffer.