1 #ifndef _CORE_DIAG_H_
2 #define _CORE_DIAG_H_
3 
4 #if defined(__cplusplus)
5 extern "C" {
6 #endif
7 
8 #include "core_stdinc.h"
9 #include "core_log.h"
10 
11 typedef void (*core_diag_callback)(void * diag_handle, uint64_t timestamp, int32_t code, uint8_t *data, uint32_t data_len);
12 
13 void core_diag_set_cb(void *diag_handle, core_diag_callback cb);
14 void core_diag(aiot_sysdep_portfile_t *sysdep, int32_t code, uint8_t *data, uint32_t data_len);
15 
16 #if defined(__cplusplus)
17 }
18 #endif
19 
20 #endif
21