yc_error.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright 2016, yichip Semiconductor(shenzhen office)
  3. * All Rights Reserved.
  4. *
  5. * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Yichip Semiconductor;
  6. * the contents of this file may not be disclosed to third parties, copied
  7. * or duplicated in any form, in whole or in part, without the prior
  8. * written permission of Yichip Semiconductor.
  9. */
  10. /**
  11. *@file error.h
  12. *@brief error support for application.
  13. */
  14. #ifndef YC_ERROR_H
  15. #define YC_ERROR_H
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. #define YC_ERROR_BASE_NUM (0x00) /*!< Global error base */
  20. /**
  21. *@brief Log type.
  22. */
  23. #define YC_SUCCESS (YC_ERROR_BASE_NUM + 0) /*!< Successful command */
  24. #define YC_ERROR_NOT_FOUND (YC_ERROR_BASE_NUM + 1) /*!< Not found error */
  25. #define YC_ERROR_OPENED (YC_ERROR_BASE_NUM + 2) /*!< Opened error */
  26. #define YC_ERROR_DATA_TOO_LOOG (YC_ERROR_BASE_NUM + 3) /*!< Data too loog error */
  27. #ifdef __cplusplus
  28. }
  29. #endif
  30. #endif