Module for sending BSP events over CLI. More...
Functions |
|
| ret_code_t | bsp_cli_init ( bsp_event_callback_t callback) |
|
Function for initializing the BSP over CLI Module.
More...
|
|
Detailed Description
Module for sending BSP events over CLI.
The module uses Command Line Interface and enables user to send events to BSP. They are later handled by the event handler provided. Available commands:
- bsp btn X (where X is button number) - sends BSP_EVENT_KEY_X
- bsp evt X (where X is event number) - sends BSP event with X id
Function Documentation
| ret_code_t bsp_cli_init | ( | bsp_event_callback_t | callback | ) |
Function for initializing the BSP over CLI Module.
Before calling this function, the BSP module must be initialized.
- Parameters
-
[in] callback Function to be called when event is recevied.
- Return values
-
NRF_SUCCESS If initialization was successful.