hm_error.h 832 B

123456789101112131415161718192021222324
  1. #ifndef HM_ERROR_H
  2. #define HM_ERROR_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #define HM_SUCCESS 0 /* Success */
  7. #define HM_NOT_OPEN 1 /* Device not open */
  8. #define HM_NO_MEMORY 2 /* Memory is not enough */
  9. #define HM_THREAD_ERROR 3 /* Thread error */
  10. #define HM_UART_SEND_ERR 4 /* Uart send error */
  11. #define HM_HCI_CMD_ERROR 5 /* HCI command error */
  12. #define HM_CHIPSET_INIT_ERROR 6 /* Chipset init error */
  13. #define HM_OPEN_FILE_ERROR 7 /* Open file error */
  14. #define HM_CHIPSET_INIT_FILE_ERROR 8 /* Chipset init file is error */
  15. #define HM_TIMEOUT 9 /* Timeout */
  16. #define HM_NOT_SUPPORT 10 /* HCI Middleware not support now */
  17. #ifdef __cplusplus
  18. }
  19. #endif
  20. #endif /* HM_ERROR_H */