1 /* 2 * Copyright (C) 2015-2018 Alibaba Group Holding Limited 3 */ 4 5 #ifndef __ZCONFIG_UTILS_H__ 6 #define __ZCONFIG_UTILS_H__ 7 8 #include "os.h" 9 10 #if defined(__cplusplus) /* If this is a C++ compiler, use C linkage */ 11 extern "C" { 12 #endif 13 14 void dump_mac(uint8_t *src, uint8_t *dst); 15 void dump_hex(uint8_t *data, int len, int tab_num); 16 void dump_ascii(uint8_t *data, int len, int tab_num); 17 18 uint16_t zconfig_checksum_v3(uint8_t *data, uint8_t len); 19 uint16_t zconfig_checksum_v5(uint8_t *data, uint8_t len); 20 char is_utf8(const char *ansi_str, int length); 21 22 #if defined(__cplusplus) /* If this is a C++ compiler, use C linkage */ 23 } 24 #endif 25 26 #endif 27