nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ SHELL_BT_NUS_DEFINE

#define SHELL_BT_NUS_DEFINE ( _name,
_tx_ringbuf_size,
_rx_ringbuf_size )

#include <include/shell/shell_bt_nus.h>

Value:
static struct shell_bt_nus_ctrl_blk _name##_ctrl_blk; \
RING_BUF_DECLARE(_name##_tx_ringbuf, _tx_ringbuf_size); \
RING_BUF_DECLARE(_name##_rx_ringbuf, _rx_ringbuf_size); \
static const struct shell_bt_nus _name##_shell_bt_nus = { \
.ctrl_blk = &_name##_ctrl_blk, \
.tx_ringbuf = &_name##_tx_ringbuf, \
.rx_ringbuf = &_name##_rx_ringbuf, \
}; \
struct shell_transport _name = { \
.ctx = (struct shell_bt_nus *)&_name##_shell_bt_nus \
}
const struct shell_transport_api shell_bt_nus_transport_api
Instance control block (RW data).
Definition shell_bt_nus.h:29
Instance structure.
Definition shell_bt_nus.h:37

Macro for creating an instance of the module.