 |
CC3000
1.14
|
35 #ifndef __ERROR_CODES__
36 #define __ERROR_CODES__
51 #define ERROR_WIFI_ALREADY_DISCONNECTED -129
52 #define NOT_ENOUGH_SOCKETS -128
53 #define SOCKET_ALREADY_EXISTS -127
54 #define NOT_SUPPORTED -126
55 #define TCP_OPEN_FAILED -124
56 #define BAD_SOCKET_DATA -123
57 #define SOCKET_NOT_FOUND -122
58 #define SOCKET_TIMED_OUT -121
59 #define BAD_IP_HEADER -120
60 #define NEED_TO_LISTEN -119
61 #define RECV_TIMED_OUT -118
62 #define NEED_TO_SEND -114
63 #define UNABLE_TO_SEND -113
64 #define DHCP_ERROR -100
65 #define DHCP_LEASE_EXPIRED -99
66 #define ARP_REQUEST_FAILED -95
67 #define DHCP_LEASE_RENEWING -92
68 #define IGMP_ERROR -91
69 #define INVALID_VALUE -85
70 #define DNS_ID_ERROR -75
71 #define DNS_OPCODE_ERROR -74
72 #define DNS_RCODE_ERROR -73
73 #define DNS_COUNT_ERROR -72
74 #define DNS_TYPE_ERROR -71
75 #define DNS_CLASS_ERROR -70
76 #define DNS_NOT_FOUND -69
77 #define SOCKET_BUFFER_TOO_SMALL -68
78 #define REASSEMBLY_ERROR -64
79 #define REASSEMBLY_TIMED_OUT -63
80 #define BAD_REASSEMBLY_DATA -62
81 #define UNABLE_TO_TCP_SEND -60
82 #define ERROR_WIFI_NOT_CONNECTED -59
83 #define SEND_FAILED_ARP_IN_PROCESS -58
84 #define RECV_FAILED_SOCKET_INACTIVE -57
90 #define ERROR_SOCKET_INACTIVE RECV_FAILED_SOCKET_INACTIVE
96 #define TCP_TOO_LONG -2
97 #define TCP_BAD_HEADER -3
98 #define TCP_BAD_CSUM -4
99 #define TCP_BAD_FCS -5
100 #define TCP_NO_CONNECT -6
106 #define UDP_TOO_LONG -2
107 #define UDP_BAD_CSUM -4
108 #define UDP_BAD_FCS -5
114 #define RAW_TOO_LONG -2
119 #define SL_INVALID_INTERFACE -1
120 #define SL_NO_MORE_DATA_TO_READ -2
121 #define SL_OUT_OF_RESOURCES (-150)
122 #define SL_NOT_ENOUGH_SPACE (-151)
123 #define SL_INCORRECT_IF (-152)
124 #define SL_NOTHING_TO_SEND (-153)
125 #define SL_WILL_SEND_LATER (100) // This is not an error - just an indication that we can't send data now
126 #define SL_TX_ALLOC_FAILED (-161)
128 #define SL_INVALID_COMMAND_ARGUMENTS (-170)