sys_common.h 665 B

12345678910111213141516171819
  1. #ifndef __SYS_COMMON_H__
  2. #define __SYS_COMMON_H__
  3. #include "stdint.h"
  4. #include "stdbool.h"
  5. int HAL_Vsnprintf(char *buffer, int n, const char *format, va_list ap);
  6. int HAL_Sprintf(char *buf, const char *fmt, ...);
  7. int8_t* SYS_Strcpy(int8_t *dst, const int8_t *src);
  8. int8_t *SYS_Strstr(const int8_t *haystack, const int8_t *needle);
  9. int8_t *SYS_Strcat(int8_t *dst, const int8_t *src);
  10. uint8_t *SYS_Hex2str(uint8_t *hex, int len);
  11. uint8_t *SYS_Str2hex(uint8_t *src, int len);
  12. void small_big_transfer32(uint32_t* data);
  13. void small_big_transfer16(uint16_t *data);
  14. uint8_t SYS_CheckStrLen(const char* buf, const char* key, uint8_t len);
  15. #endif /* __SYS_COMMON_H__ */