NCP User Commands#

Demonstrates the communication between an NCP host and NCP target using BGAPI user messages, responses and events. Can be used as a starting point for creating custom commands or for testing purposes.

Functions#

void
ncp_cmd_to_target_handler(void *data, bool *cmd_handled)

Function Documentation#

sl_ncp_app_user_cmd_message_to_target_cb#

void sl_ncp_app_user_cmd_message_to_target_cb (void * data)
Parameters
TypeDirectionArgument NameDescription
void *[in]data

Data received from NCP through UART.

Application user command (message_to_target) handler callback.

Handle user defined commands received from NCP-host in application.


ncp_cmd_to_target_handler#

void ncp_cmd_to_target_handler (void * data, bool * cmd_handled)
Parameters
TypeDirectionArgument NameDescription
void *[in]data

Pointer to the data received from NCP host

bool *[out]cmd_handled

Flag to indicate if the command is handled

This function handles user defined commands received from NCP host.