ec_errno.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  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_NOSUPP 4 /**< Not supported */
  13. #define EC_ERR_IO 5 /**< I/O error */
  14. #define EC_ERR_WC 6 /**< working counter error */
  15. #define EC_ERR_ALERR 7 /**< AL status error */
  16. #define EC_ERR_SII 8 /**< SII error */
  17. #define EC_ERR_MBOX 9 /**< mailbox error */
  18. #define EC_ERR_MBOX_EMPTY 10 /**< mailbox is empty */
  19. #define EC_ERR_COE_TYPE 11 /**< COE type error */
  20. #define EC_ERR_COE_SIZE 12 /**< COE size error */
  21. #define EC_ERR_COE_REQUEST 13 /**< COE request & index & subindex error */
  22. #define EC_ERR_COE_TOGGLE 14 /**< COE toggle error */
  23. #define EC_ERR_COE_ABORT 15 /**< COE abort error */
  24. #define EC_ERR_FOE_TYPE 16 /**< FOE type error */
  25. #define EC_ERR_FOE_SIZE 17 /**< FOE size error */
  26. #define EC_ERR_FOE_OPCODE 18 /**< FOE opcode error */
  27. #define EC_ERR_FOE_PACKNO 19 /**< FOE packet number error */
  28. #define EC_ERR_EOE_TYPE 20 /**< EOE type error */
  29. #define EC_ERR_EOE_SIZE 21 /**< EOE size error */
  30. #define EC_ERR_EOE_FRAME 22 /**< EOE frametype error */
  31. #define EC_ERR_UNKNOWN 255
  32. #endif