ec_errno.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2025, sakumisu
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #ifndef EC_ERRNO_H
  7. #define EC_ERRNO_H
  8. #define EC_ERR_OK 0 /**< No error */
  9. #define EC_ERR_NOMEM 1 /**< Out of memory */
  10. #define EC_ERR_INVAL 2 /**< Invalid argument */
  11. #define EC_ERR_TIMEOUT 3 /**< Timeout */
  12. #define EC_ERR_IO 4 /**< I/O error */
  13. #define EC_ERR_WC 5 /**< working counter error */
  14. #define EC_ERR_ALERR 6 /**< AL status error */
  15. #define EC_ERR_SII 7 /**< SII error */
  16. #define EC_ERR_MBOX 8 /**< mailbox error */
  17. #define EC_ERR_MBOX_EMPTY 9 /**< mailbox is empty */
  18. #define EC_ERR_COE_TYPE 10 /**< COE type error */
  19. #define EC_ERR_COE_SIZE 11 /**< COE size error */
  20. #define EC_ERR_COE_REQUEST 12 /**< COE request & index & subindex error */
  21. #define EC_ERR_COE_TOGGLE 13 /**< COE toggle error */
  22. #define EC_ERR_COE_ABORT 14 /**< COE abort error */
  23. #define EC_ERR_FOE_TYPE 15 /**< FOE type error */
  24. #define EC_ERR_FOE_SIZE 16 /**< FOE size error */
  25. #define EC_ERR_FOE_OPCODE 17 /**< FOE opcode error */
  26. #define EC_ERR_FOE_PACKNO 18 /**< FOE packet number error */
  27. #define EC_ERR_EOE_TYPE 19 /**< EOE type error */
  28. #define EC_ERR_EOE_SIZE 20 /**< EOE size error */
  29. #define EC_ERR_EOE_FRAME 21 /**< EOE frametype error */
  30. #define EC_ERR_UNKNOWN 255
  31. #endif