forked from scream3r/java-simple-serial-connector
-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathjssc_SerialNativeInterface.h
More file actions
175 lines (156 loc) · 4.83 KB
/
jssc_SerialNativeInterface.h
File metadata and controls
175 lines (156 loc) · 4.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class jssc_SerialNativeInterface */
#ifndef _Included_jssc_SerialNativeInterface
#define _Included_jssc_SerialNativeInterface
#ifdef __cplusplus
extern "C" {
#endif
#undef jssc_SerialNativeInterface_OS_LINUX
#define jssc_SerialNativeInterface_OS_LINUX 0L
#undef jssc_SerialNativeInterface_OS_WINDOWS
#define jssc_SerialNativeInterface_OS_WINDOWS 1L
#undef jssc_SerialNativeInterface_OS_SOLARIS
#define jssc_SerialNativeInterface_OS_SOLARIS 2L
#undef jssc_SerialNativeInterface_OS_MAC_OS_X
#define jssc_SerialNativeInterface_OS_MAC_OS_X 3L
#undef jssc_SerialNativeInterface_OS_UNKNOWN
#define jssc_SerialNativeInterface_OS_UNKNOWN -1L
#undef jssc_SerialNativeInterface_ERR_PORT_BUSY
#define jssc_SerialNativeInterface_ERR_PORT_BUSY -1LL
#undef jssc_SerialNativeInterface_ERR_PORT_NOT_FOUND
#define jssc_SerialNativeInterface_ERR_PORT_NOT_FOUND -2LL
#undef jssc_SerialNativeInterface_ERR_PERMISSION_DENIED
#define jssc_SerialNativeInterface_ERR_PERMISSION_DENIED -3LL
#undef jssc_SerialNativeInterface_ERR_INCORRECT_SERIAL_PORT
#define jssc_SerialNativeInterface_ERR_INCORRECT_SERIAL_PORT -4LL
/*
* Class: jssc_SerialNativeInterface
* Method: getNativeLibraryVersion
* Signature: ()Ljava/lang/String;
*/
JNIEXPORT jstring JNICALL Java_jssc_SerialNativeInterface_getNativeLibraryVersion
(JNIEnv *, jclass);
/*
* Class: jssc_SerialNativeInterface
* Method: openPort
* Signature: (Ljava/lang/String;Z)J
*/
JNIEXPORT jlong JNICALL Java_jssc_SerialNativeInterface_openPort
(JNIEnv *, jobject, jstring, jboolean);
/*
* Class: jssc_SerialNativeInterface
* Method: setParams
* Signature: (JIIIIZZI)Z
*/
JNIEXPORT jboolean JNICALL Java_jssc_SerialNativeInterface_setParams
(JNIEnv *, jobject, jlong, jint, jint, jint, jint, jboolean, jboolean, jint);
/*
* Class: jssc_SerialNativeInterface
* Method: purgePort
* Signature: (JI)Z
*/
JNIEXPORT jboolean JNICALL Java_jssc_SerialNativeInterface_purgePort
(JNIEnv *, jobject, jlong, jint);
/*
* Class: jssc_SerialNativeInterface
* Method: closePort
* Signature: (J)Z
*/
JNIEXPORT jboolean JNICALL Java_jssc_SerialNativeInterface_closePort
(JNIEnv *, jobject, jlong);
/*
* Class: jssc_SerialNativeInterface
* Method: setEventsMask
* Signature: (JI)Z
*/
JNIEXPORT jboolean JNICALL Java_jssc_SerialNativeInterface_setEventsMask
(JNIEnv *, jobject, jlong, jint);
/*
* Class: jssc_SerialNativeInterface
* Method: getEventsMask
* Signature: (J)I
*/
JNIEXPORT jint JNICALL Java_jssc_SerialNativeInterface_getEventsMask
(JNIEnv *, jobject, jlong);
/*
* Class: jssc_SerialNativeInterface
* Method: waitEvents
* Signature: (J)[[I
*/
JNIEXPORT jobjectArray JNICALL Java_jssc_SerialNativeInterface_waitEvents
(JNIEnv *, jobject, jlong);
/*
* Class: jssc_SerialNativeInterface
* Method: setRTS
* Signature: (JZ)Z
*/
JNIEXPORT jboolean JNICALL Java_jssc_SerialNativeInterface_setRTS
(JNIEnv *, jobject, jlong, jboolean);
/*
* Class: jssc_SerialNativeInterface
* Method: setDTR
* Signature: (JZ)Z
*/
JNIEXPORT jboolean JNICALL Java_jssc_SerialNativeInterface_setDTR
(JNIEnv *, jobject, jlong, jboolean);
/*
* Class: jssc_SerialNativeInterface
* Method: readBytes
* Signature: (JI)[B
*/
JNIEXPORT jbyteArray JNICALL Java_jssc_SerialNativeInterface_readBytes
(JNIEnv *, jobject, jlong, jint);
/*
* Class: jssc_SerialNativeInterface
* Method: writeBytes
* Signature: (J[B)I
*/
JNIEXPORT jint JNICALL Java_jssc_SerialNativeInterface_writeBytes
(JNIEnv *, jobject, jlong, jbyteArray);
/*
* Class: jssc_SerialNativeInterface
* Method: getBuffersBytesCount
* Signature: (J)[I
*/
JNIEXPORT jintArray JNICALL Java_jssc_SerialNativeInterface_getBuffersBytesCount
(JNIEnv *, jobject, jlong);
/*
* Class: jssc_SerialNativeInterface
* Method: setFlowControlMode
* Signature: (JI)Z
*/
JNIEXPORT jboolean JNICALL Java_jssc_SerialNativeInterface_setFlowControlMode
(JNIEnv *, jobject, jlong, jint);
/*
* Class: jssc_SerialNativeInterface
* Method: getFlowControlMode
* Signature: (J)I
*/
JNIEXPORT jint JNICALL Java_jssc_SerialNativeInterface_getFlowControlMode
(JNIEnv *, jobject, jlong);
/*
* Class: jssc_SerialNativeInterface
* Method: getSerialPortNames
* Signature: ()[Ljava/lang/String;
*/
JNIEXPORT jobjectArray JNICALL Java_jssc_SerialNativeInterface_getSerialPortNames
(JNIEnv *, jobject);
/*
* Class: jssc_SerialNativeInterface
* Method: getLinesStatus
* Signature: (J)[I
*/
JNIEXPORT jintArray JNICALL Java_jssc_SerialNativeInterface_getLinesStatus
(JNIEnv *, jobject, jlong);
/*
* Class: jssc_SerialNativeInterface
* Method: sendBreak
* Signature: (JI)Z
*/
JNIEXPORT jboolean JNICALL Java_jssc_SerialNativeInterface_sendBreak
(JNIEnv *, jobject, jlong, jint);
#ifdef __cplusplus
}
#endif
#endif