at_cfw_log.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
  2. * All rights reserved.
  3. *
  4. * This software is supplied "AS IS" without any warranties.
  5. * RDA assumes no responsibility or liability for the use of the software,
  6. * conveys no license or title under any patent, copyright, or mask work
  7. * right to the product. RDA reserves the right to make changes in the
  8. * software without notification. RDA also make no representation or
  9. * warranty that such application will be suitable for the specified use
  10. * without further testing or modification.
  11. */
  12. #ifndef __AT_CFW_LOG_H__
  13. #define __AT_CFW_LOG_H__
  14. typedef enum
  15. {
  16. AT_LOG_GC = 0,
  17. AT_LOG_EMOD = 1,
  18. AT_LOG_NW = 2,
  19. AT_LOG_SIM = 3,
  20. AT_LOG_CFG = 4,
  21. AT_LOG_CC = 5,
  22. AT_LOG_SMS = 6,
  23. AT_LOG_SS = 7,
  24. AT_LOG_PS = 8, //GPRS,LTE...
  25. AT_LOG_ML = 9,
  26. AT_LOG_PM = 10,
  27. AT_LOG_DM = 11,
  28. AT_LOG_DRV = 12,
  29. AT_LOG_SAT = 13,
  30. AT_LOG_MISC = 14,
  31. AT_LOG_PBK = 15
  32. } AT_LOG_ID;
  33. // Mapping of character [0x0~0xF] to {'0'~'9','A'~'F','a'~'f'}.
  34. #define BTOH(b) ((b) <= 9 ? ((b) + '0') : ((b)-10 + 'A'))
  35. #ifdef OSI_LOCAL_LOG_TAG
  36. #undef OSI_LOCAL_LOG_TAG
  37. #endif
  38. #endif