Unified CLI transport interface. More...
#include <nrf_cli.h>
Data Fields | |
ret_code_t(* | init )(nrf_cli_transport_t const *p_transport, void const *p_config, nrf_cli_transport_handler_t evt_handler, void *p_context) |
Function for initializing the CLI transport interface. More... | |
ret_code_t(* | uninit )(nrf_cli_transport_t const *p_transport) |
Function for uninitializing the CLI transport interface. More... | |
ret_code_t(* | enable )(nrf_cli_transport_t const *p_transport, bool blocking) |
Function for reconfiguring the transport to work in blocking mode. More... | |
ret_code_t(* | write )(nrf_cli_transport_t const *p_transport, const void *p_data, size_t length, size_t *p_cnt) |
Function for writing data to the transport interface. More... | |
ret_code_t(* | read )(nrf_cli_transport_t const *p_transport, void *p_data, size_t length, size_t *p_cnt) |
Function for reading data from the transport interface. More... | |
Unified CLI transport interface.
ret_code_t(* nrf_cli_transport_api_t::enable)(nrf_cli_transport_t const *p_transport, bool blocking) |
Function for reconfiguring the transport to work in blocking mode.
p_transport | Pointer to the transfer instance. |
blocking | If true, the transport is enabled in blocking mode. |
ret_code_t(* nrf_cli_transport_api_t::init)(nrf_cli_transport_t const *p_transport, void const *p_config, nrf_cli_transport_handler_t evt_handler, void *p_context) |
Function for initializing the CLI transport interface.
[in] | p_transport | Pointer to the transfer instance. |
[in] | p_config | Pointer to instance configuration. |
[in] | evt_handler | Event handler. |
[in] | p_context | Pointer to the context passed to event handler. |
ret_code_t(* nrf_cli_transport_api_t::read)(nrf_cli_transport_t const *p_transport, void *p_data, size_t length, size_t *p_cnt) |
Function for reading data from the transport interface.
[in] | p_transport | Pointer to the transfer instance. |
[in] | p_data | Pointer to the destination buffer. |
[in] | length | Destination buffer length. |
[in] | p_cnt | Pointer to the received bytes counter. |
ret_code_t(* nrf_cli_transport_api_t::uninit)(nrf_cli_transport_t const *p_transport) |
Function for uninitializing the CLI transport interface.
[in] | p_transport | Pointer to the transfer instance. |
ret_code_t(* nrf_cli_transport_api_t::write)(nrf_cli_transport_t const *p_transport, const void *p_data, size_t length, size_t *p_cnt) |
Function for writing data to the transport interface.
[in] | p_transport | Pointer to the transfer instance. |
[in] | p_data | Pointer to the source buffer. |
[in] | length | Source buffer length. |
[in] | p_cnt | Pointer to the sent bytes counter. |