nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ ble_nus_init()

uint32_t ble_nus_init ( struct ble_nus * nus,
const struct ble_nus_config * nus_config )

#include <ble_nus.h>

Function for initializing the Nordic UART Service.

Parameters
[out]nusNordic UART Service structure. This structure must be supplied by the application. It is initialized by this function and will later be used to identify this particular service instance.
[in]nus_configInformation needed to initialize the service.
Return values
NRF_SUCCESSOn success.
NRF_ERROR_NULLIf nus or nus_config is NULL.
Returns
In addition, this function may return any error returned by the following SoftDevice functions:
  • sd_ble_gatts_service_add()
  • sd_ble_gatts_characteristic_add()
  • sd_ble_uuid_vs_add()