SciSDK Library
SDK for SciCompiler projects
NIErrorCode.h
Go to the documentation of this file.
1 #ifndef __NIERRORCODE_H
2 #define __NIERRORCODE_H
3 #include <stdint.h>
4 
5 #pragma once
6 typedef int NI_RESULT;
7 
8 #define NI_OK 0x00000000
9 #define NI_ERROR_GENERIC 0x00000001
10 #define NI_ERROR_INTERFACE 0x00000002
11 #define NI_ERROR_FPGA 0x00000003
12 #define NI_ERROR_TRANSFER_MAX_LENGTH 0x00000004
13 #define NI_ERROR_NOTCONNECTED 0x00000005
14 #define NI_NO_DATA_AVAILABLE 0x00000006
15 #define NI_TOO_MANY_DEVICES_CONNECTED 0x00000007
16 #define NI_INVALID_HANDLE 0x00000008
17 #define NI_INVALID_KEY 0x00000009
18 #define NI_INVALID_PARAMETER 0x0000000A
19 #define NI_PARAMETER_OUT_OF_RANGE 0x0000000B
20 #define NI_INCOMPLETE_READ 0x0000000C
21 #define NI_INVALID_COMMAND 0x0000000D
22 #define NI_PARAMETER_CAN_NOT_BE_CANGHED_IN_RUN 0x0000000E
23 #define NI_PARAMETER_CAN_NOT_BE_SET_WITH_THIS_CONFIG 0x0000000F
24 #define NI_PARAMETER_CAN_NOT_BE_SET 0x00000010
25 #define NI_PARAMETER_MIN_MAX_NOT_SET 0x00000011
26 #define NI_UNABLE_TO_LOAD_EXTERNAL_LIBRARY 0x00000012
27 #define NI_INVALID_PARAMETER_PATH 0x00000013
28 #define NI_INVALID_PARAMETER_ROOT 0x00000014
29 #define NI_NOT_SUPPORTED 0x00000015
30 #define NI_INVALID_ACQ_MODE 0x00000016
31 #define NI_INVALID_METHOD 0x00000017
32 #define NI_MISSALIGNED 0x00000018
33 #define NI_ALREADY_CONNECTED 0x00000100
34 #define NI_ALLOC_FAILED 0x00000200
35 #define NI_MEMORY_NOT_ALLOCATED 0x00000201
36 #define NI_INVALID_BUFFER_TYPE 0x00000202
37 #define NI_INVALID_BUFFER_SIZE 0x00000203
38 #define NI_INCOMPATIBLE_BUFFER 0x00000204
39 #define NI_INVALID_BUFFER 0x00000205
40 #define NI_NOT_ARMED 0x00000206
41 #define NI_TIMEOUT 0x00000300
42 #define NI_INVALID_CFG_JSON 0x10000000
43 #define NI_CFG_JSON_NOT_FOUND 0x10000001
44 #define NI_DEVICE_NAME_ALREADY_EXISTS 0x10000002
45 #define NI_INVALID_PATH 0x10001000
46 #define NI_NOT_FOUND 0x10001FFE
47 #define NI_INVALID_TYPE 0x10001FFF
48 #define NI_ALREADY_RUNNING 0x10003000
49 #define NI_NOT_RUNNING 0x10003001
50 #define NI_FEELIB_INTERNAL_ERROR 0x20000000
51 #define NI_THIS_CODE_SHOULDNOT_BE_EXECUTED 0xF1F1F1F1
52 
53 
54 
55 
56 #define NI_SPECIFIC_ERROR 0xFFFFFFFD
57 
58 typedef uint32_t NI_STATUS;
59 #define NI_ONLINE 0x00000000
60 #define NI_ERROR 0x00000001
61 #define NI_OFFLINE 0x00000002
62 #define NI_NOT_IMPLEMENTED 0x000000FF
63 
64 #define NI_CONNECTED 0x00000001
65 #define NI_NOTCONNECTED 0x00000000
66 
67 
68 
69 typedef struct _tUSBDevice
70 {
71  long id;
72  char SN[64];
73  char DESC[128];
75 
76 
77 #define NI_CONNECT_USB 0x00000000
78 
79 #endif // __NIERRORCODE_H
int NI_RESULT
Definition: NIErrorCode.h:6
struct _tUSBDevice tUSBDevice
uint32_t NI_STATUS
Definition: NIErrorCode.h:58
Definition: NIErrorCode.h:70
char DESC[128]
Definition: NIErrorCode.h:73
long id
Definition: NIErrorCode.h:71
char SN[64]
Definition: NIErrorCode.h:72