38 #ifndef MESH_APP_UTILS_H__ 39 #define MESH_APP_UTILS_H__ 42 #include "toolchain.h" 43 #if defined(S130) || defined(S132) || defined(S140) 56 extern void app_error_handler(uint32_t error_code, uint32_t line_number,
const uint8_t * filename);
58 #define ERROR_CHECK(__error_code) \ 61 const uint32_t __local_code = (__error_code); \ 62 if (__local_code != NRF_SUCCESS) \ 64 app_error_handler(__local_code, __LINE__, (const uint8_t *) __FILE__); \ 68 #define RETURN_ON_ERROR(status) \ 70 uint32_t result = status; \ 71 if (result != NRF_SUCCESS) \ 77 #if defined(S130) || defined(S132) || defined(S140) || defined(S112) 79 extern nrf_nvic_state_t nrf_nvic_state;
101 uint32_t
mesh_app_uuid_gen(uint8_t * p_uuid_dest,
const uint8_t * p_uuid_prefix, uint8_t uuid_prefix_len);
uint32_t mesh_app_uuid_gen(uint8_t *p_uuid_dest, const uint8_t *p_uuid_prefix, uint8_t uuid_prefix_len)
Generates a 16-byte number using FICR DEVICEID-0 Register and the given prefix bytes.