tt808.h 839 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef __TT808_H
  2. #define __TT808_H
  3. #include "main.h"
  4. char *bin2hex(char *hex, const unsigned char *bin, int size);
  5. int hex2bin(unsigned char *bin, const char *hex);
  6. void tt808FsFunc(uint8_t* Message, uint8_t length, uint16_t MessageID);
  7. void MIPURCHandle(void);
  8. void ReMIPURC(void);
  9. void time_bj(void);
  10. void ReU4Proces(void);
  11. void printBytes(uint8_t *data, size_t length);
  12. void reconn(void);
  13. uint8_t testHex2Asc(const char *hex) ;
  14. void hexArrayToBcd(uint8_t* array, size_t length, uint8_t* out);
  15. void Regular_reporting_Loc(void);
  16. void pushpullWork(void);
  17. extern bool Retrans;
  18. extern bool Offline ;
  19. void Test485Re(void);
  20. extern bool Online;
  21. void hexToBcd_arr(uint8_t* array, size_t length, uint8_t* out);
  22. extern bool phonenull;
  23. uint16_t swapBytes16(uint16_t value);
  24. uint32_t swapBytes32(uint32_t value);
  25. #endif /*__TT808_H*/