nRF Connect SDK API
3.4.99
Toggle main menu visibility
Loading...
Searching...
No Matches
◆
SHELL_BT_NUS_DEFINE
#define SHELL_BT_NUS_DEFINE
(
_name
,
_tx_ringbuf_size
,
_rx_ringbuf_size
)
#include <
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 = { \
.api = &
shell_bt_nus_transport_api
, \
.ctx = (
struct
shell_bt_nus
*)&_name##_shell_bt_nus \
}
shell_bt_nus_transport_api
const struct shell_transport_api shell_bt_nus_transport_api
shell_bt_nus_ctrl_blk
Instance control block (RW data).
Definition
shell_bt_nus.h:29
shell_bt_nus
Instance structure.
Definition
shell_bt_nus.h:37
Macro for creating an instance of the module.
Nordic UART Service (NUS) shell transport
Generated on
for nRF Connect SDK API by
1.17.0