tinyusb
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
tusb_errors.h
Go to the documentation of this file.
1
/**************************************************************************/
37
/**************************************************************************/
38
44
#ifndef _TUSB_ERRORS_H_
45
#define _TUSB_ERRORS_H_
46
47
#include "
tusb_option.h
"
48
49
#ifdef __cplusplus
50
extern
"C"
{
51
#endif
52
53
#define ERROR_ENUM(x) x,
54
#define ERROR_STRING(x) #x,
55
56
#define ERROR_TABLE(ENTRY) \
57
ENTRY(TUSB_ERROR_NONE )\
58
ENTRY(TUSB_ERROR_INVALID_PARA )\
59
ENTRY(TUSB_ERROR_DEVICE_NOT_READY )\
60
ENTRY(TUSB_ERROR_INTERFACE_IS_BUSY )\
61
ENTRY(TUSB_ERROR_HCD_FAILED )\
62
ENTRY(TUSB_ERROR_HCD_OPEN_PIPE_FAILED )\
63
ENTRY(TUSB_ERROR_USBH_MOUNT_DEVICE_NOT_RESPOND )\
64
ENTRY(TUSB_ERROR_USBH_MOUNT_CONFIG_DESC_TOO_LONG )\
65
ENTRY(TUSB_ERROR_USBH_DESCRIPTOR_CORRUPTED )\
66
ENTRY(TUSB_ERROR_USBH_XFER_STALLED )\
67
ENTRY(TUSB_ERROR_USBH_XFER_FAILED )\
68
ENTRY(TUSB_ERROR_OSAL_TIMEOUT )\
69
ENTRY(TUSB_ERROR_OSAL_WAITING )
/* only used by OSAL_NONE in the subtask */
\
70
ENTRY(TUSB_ERROR_OSAL_TASK_FAILED )\
71
ENTRY(TUSB_ERROR_OSAL_TASK_CREATE_FAILED )\
72
ENTRY(TUSB_ERROR_OSAL_QUEUE_FAILED )\
73
ENTRY(TUSB_ERROR_OSAL_SEMAPHORE_FAILED )\
74
ENTRY(TUSB_ERROR_OSAL_MUTEX_FAILED )\
75
ENTRY(TUSB_ERROR_EHCI_NOT_ENOUGH_QTD )\
76
ENTRY(TUSB_ERROR_HIDD_DESCRIPTOR_INTERFACE )\
77
ENTRY(TUSB_ERROR_HIDH_NOT_SUPPORTED_PROTOCOL )\
78
ENTRY(TUSB_ERROR_HIDH_NOT_SUPPORTED_SUBCLASS )\
79
ENTRY(TUSB_ERROR_CDC_UNSUPPORTED_SUBCLASS )\
80
ENTRY(TUSB_ERROR_CDC_UNSUPPORTED_PROTOCOL )\
81
ENTRY(TUSB_ERROR_CDCH_DEVICE_NOT_MOUNTED )\
82
ENTRY(TUSB_ERROR_MSC_UNSUPPORTED_PROTOCOL )\
83
ENTRY(TUSB_ERROR_MSCH_UNKNOWN_SCSI_COMMAND )\
84
ENTRY(TUSB_ERROR_MSCH_DEVICE_NOT_MOUNTED )\
85
ENTRY(TUSB_ERROR_HUB_FEATURE_NOT_SUPPORTED )\
86
ENTRY(TUSB_ERROR_DESCRIPTOR_CORRUPTED )\
87
ENTRY(TUSB_ERROR_DCD_FAILED )\
88
ENTRY(TUSB_ERROR_DCD_CONTROL_REQUEST_NOT_SUPPORT )\
89
ENTRY(TUSB_ERROR_DCD_NOT_ENOUGH_QTD )\
90
ENTRY(TUSB_ERROR_DCD_OPEN_PIPE_FAILED )\
91
ENTRY(TUSB_ERROR_NOT_SUPPORTED_YET )\
92
ENTRY(TUSB_ERROR_USBD_DEVICE_NOT_CONFIGURED )\
93
ENTRY(TUSB_ERROR_NOT_ENOUGH_MEMORY )\
94
ENTRY(TUSB_ERROR_FAILED )\
95
96
100
typedef
enum
{
101
ERROR_TABLE(ERROR_ENUM)
102
TUSB_ERROR_COUNT
103
}
tusb_error_t
;
104
105
#if TUSB_CFG_DEBUG == 3
106
extern
char
const
*
const
TUSB_ErrorStr[TUSB_ERROR_COUNT];
108
#endif
109
110
#ifdef __cplusplus
111
}
112
#endif
113
114
#endif
/* _TUSB_ERRORS_H_ */
115
tusb_option.h
tusb_error_t
tusb_error_t
Error Code returned.
Definition:
tusb_errors.h:100
tinyusb
common
tusb_errors.h
Generated on Wed Mar 26 2014 16:23:16 for tinyusb by
1.8.6