OpenCores
URL https://opencores.org/ocsvn/usb_fpga_2_14/usb_fpga_2_14/trunk

Subversion Repositories usb_fpga_2_14

[/] [usb_fpga_2_14/] [trunk/] [java/] [ztex/] [Fx3Errors.java] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 ZTEX
/*%
2
   Java host software API of ZTEX SDK
3
   Copyright (C) 2009-2017 ZTEX GmbH.
4
   http://www.ztex.de
5
 
6
   This Source Code Form is subject to the terms of the Mozilla Public
7
   License, v. 2.0. If a copy of the MPL was not distributed with this file,
8
   You can obtain one at http://mozilla.org/MPL/2.0/.
9
 
10
   Alternatively, the contents of this file may be used under the terms
11
   of the GNU General Public License Version 3, as described below:
12
 
13
   This program is free software; you can redistribute it and/or modify
14
   it under the terms of the GNU General Public License version 3 as
15
   published by the Free Software Foundation.
16
 
17
   This program is distributed in the hope that it will be useful, but
18
   WITHOUT ANY WARRANTY; without even the implied warranty of
19
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20
   General Public License for more details.
21
 
22
   You should have received a copy of the GNU General Public License
23
   along with this program; if not, see http://www.gnu.org/licenses/.
24
%*/
25
 
26
package ztex;
27
 
28
/**
29
  * FX3 runtime error strings
30
  */
31
public class Fx3Errors {
32
/**
33
  * Return FX3 runtime error string.
34
  * @param err error number
35
  * @return FX3 runtime error string.
36
  */
37
    public static String errStr (int err) {
38
        switch (err) {
39
            case   0: return "(No Error)";
40
            case   1: return "The OS object being accessed has been deleted";
41
            case   2: return "Bad memory pool passed to a function";
42
            case   3: return "Bad (NULL or unaligned) pointer passed to a function";
43
            case   4: return "Non-zero wait requested from interrupt context";
44
            case   5: return "Invalid size value passed into a function";
45
            case   6: return "Invalid event group passed into a function";
46
            case   7: return "Failed to set/get the event flags specified";
47
            case   8: return "Invalid task option value specified for the function";
48
            case   9: return "Invalid message queue passed to a function";
49
            case  10: return "The message queue being read is empty";
50
            case  11: return "The message queue being written to is full";
51
            case  12: return "Invalid semaphore pointer passed to a function";
52
            case  13: return "A semaphore get operation failed";
53
            case  14: return "Invalid thread pointer passed to a function";
54
            case  15: return "Invalid thread priority value passed to a function";
55
            case  16: return "Failed to allocate memory";
56
            case  17: return "Failed to delete an object because it is not idle";
57
            case  18: return "Failed to resume a thread";
58
            case  19: return "OS function failed because the current caller is not allowed";
59
            case  20: return "Failed to suspend a thread";
60
            case  21: return "Invalid timer pointer passed to a function";
61
            case  22: return "Invalid (0) tick value passed to a timer function";
62
            case  23: return "Failed to activate a timer";
63
            case  24: return "Invalid thread pre-emption threshold value specified";
64
            case  25: return "Thread suspension was cancelled";
65
            case  26: return "Wait operation was aborted";
66
            case  27: return "Failed to abort wait operation on a thread";
67
            case  28: return "Invalid Mutex pointer passed to a function";
68
            case  29: return "Failed to get a mutex";
69
            case  30: return "Failed to put a mutex because it is not currently owned";
70
            case  31: return "Error in priority inheritance";
71
            case  32: return "Operation failed because relevant object is not idle or done";
72
            case  64: return "One or more parameters to a function are invalid";
73
            case  65: return "A null pointer has been passed in unexpectedly";
74
            case  66: return "The object/module being referred to has not been started";
75
            case  67: return "An object/module that is already active is being started";
76
            case  68: return "Object/module referred to has not been configured";
77
            case  69: return "Timeout on relevant operation";
78
            case  70: return "Operation requested is not supported in current mode";
79
            case  71: return "Invalid function call sequence";
80
            case  72: return "Function call failed as it was aborted by another thread/isr";
81
            case  73: return "DMA engine failed to completed requested operation";
82
            case  74: return "Failure due to a non-specific system error";
83
            case  75: return "Bad index value was passed in as parameter. Ex: for string descriptor";
84
            case  76: return "Bad enumeration method specified";
85
            case  77: return "Invalid configuration specified";
86
            case  78: return "Internal DMA channel creation failed";
87
            case  79: return "Internal DMA channel destroy failed";
88
            case  80: return "Invalid descriptor type specified";
89
            case  81: return "USB transfer was cancelled";
90
            case  82: return "When a USB feature like remote wakeup is not enabled";
91
            case  83: return "When a USB request / data transfer is stalled";
92
            case  84: return "The block accessed has a fatal error and needs to be re-initialized";
93
            case  85: return "Loss of bus arbitration, invalid bus behaviour or bus busy";
94
            case  86: return "Failed to enter standby mode because one or more wakeup events are active";
95
            case  96: return "Storage device's voltage range does not meet FX3S requirements";
96
            case  97: return "Incorrect response received from storage device";
97
            case  98: return "Storage device features are not supported by FX3S host";
98
            case  99: return "Storage device failed to move to expected state";
99
            case 100: return "Storage device failed to support required commands";
100
            case 101: return "Response CRC error detected";
101
            case 102: return "Out of range address provided for read/write/erase access";
102
            case 103: return "Non-existent storage partition selected for transfer";
103
            case 104: return "Access to port with no connected storage device";
104
            case 105: return "Request to partition a device which is already partitioned";
105
            case 106: return "Request to remove partitions on an unpartitioned device";
106
            case 107: return "Incorrect partition selected";
107
            case 108: return "Read/write transfer was aborted (user cancellation or timeout)";
108
            case 109: return "Write request addressed to a write protected storage device";
109
            case 110: return "Storage driver initialization failed";
110
            case 111: return "Access to password locked SD card";
111
            case 112: return "Failure while locking/unlocking the SD card";
112
            case 113: return "Failure during SD force erase operation";
113
            case 114: return "Block size specified for SDIO device is not supported";
114
            case 115: return "Non-existent SDIO function being accessed";
115
            case 116: return "Non-existent tuple of SDIO card being accessed";
116
            case 117: return "IO operation to SDIO card aborted";
117
            case 118: return "IO operation to SDIO card suspended";
118
            case 119: return "Invalid command sent to the SDIO card";
119
            case 120: return "Generic error reported by SDIO card";
120
            case 121: return "SDIO command argument is out of range";
121
            case 122: return "Access to uninitialized SDIO function";
122
            case 123: return "Access to SDIO card which is not active";
123
            case 124: return "The storage device is busy handling another request";
124
            case 125: return "No metadata present on card";
125
            case 126: return "Card RD/WR Threshold error crossed";
126
            case 127: return "Card not responding to read/write transactions";
127
        }
128
        return "(Unknown Error)";
129
    }
130
}
131
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.