You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

494 lines
12 KiB

5 years ago
  1. /* DO NOT EDIT THIS FILE - it is machine generated */
  2. #include <jni.h>
  3. /* Header for class gnu_io_RXTXPort */
  4. #ifndef _Included_gnu_io_RXTXPort
  5. #define _Included_gnu_io_RXTXPort
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. #undef gnu_io_RXTXPort_DATABITS_5
  10. #define gnu_io_RXTXPort_DATABITS_5 5L
  11. #undef gnu_io_RXTXPort_DATABITS_6
  12. #define gnu_io_RXTXPort_DATABITS_6 6L
  13. #undef gnu_io_RXTXPort_DATABITS_7
  14. #define gnu_io_RXTXPort_DATABITS_7 7L
  15. #undef gnu_io_RXTXPort_DATABITS_8
  16. #define gnu_io_RXTXPort_DATABITS_8 8L
  17. #undef gnu_io_RXTXPort_STOPBITS_1
  18. #define gnu_io_RXTXPort_STOPBITS_1 1L
  19. #undef gnu_io_RXTXPort_STOPBITS_2
  20. #define gnu_io_RXTXPort_STOPBITS_2 2L
  21. #undef gnu_io_RXTXPort_STOPBITS_1_5
  22. #define gnu_io_RXTXPort_STOPBITS_1_5 3L
  23. #undef gnu_io_RXTXPort_PARITY_NONE
  24. #define gnu_io_RXTXPort_PARITY_NONE 0L
  25. #undef gnu_io_RXTXPort_PARITY_ODD
  26. #define gnu_io_RXTXPort_PARITY_ODD 1L
  27. #undef gnu_io_RXTXPort_PARITY_EVEN
  28. #define gnu_io_RXTXPort_PARITY_EVEN 2L
  29. #undef gnu_io_RXTXPort_PARITY_MARK
  30. #define gnu_io_RXTXPort_PARITY_MARK 3L
  31. #undef gnu_io_RXTXPort_PARITY_SPACE
  32. #define gnu_io_RXTXPort_PARITY_SPACE 4L
  33. #undef gnu_io_RXTXPort_FLOWCONTROL_NONE
  34. #define gnu_io_RXTXPort_FLOWCONTROL_NONE 0L
  35. #undef gnu_io_RXTXPort_FLOWCONTROL_RTSCTS_IN
  36. #define gnu_io_RXTXPort_FLOWCONTROL_RTSCTS_IN 1L
  37. #undef gnu_io_RXTXPort_FLOWCONTROL_RTSCTS_OUT
  38. #define gnu_io_RXTXPort_FLOWCONTROL_RTSCTS_OUT 2L
  39. #undef gnu_io_RXTXPort_FLOWCONTROL_XONXOFF_IN
  40. #define gnu_io_RXTXPort_FLOWCONTROL_XONXOFF_IN 4L
  41. #undef gnu_io_RXTXPort_FLOWCONTROL_XONXOFF_OUT
  42. #define gnu_io_RXTXPort_FLOWCONTROL_XONXOFF_OUT 8L
  43. #undef gnu_io_RXTXPort_debug
  44. #define gnu_io_RXTXPort_debug 0L
  45. #undef gnu_io_RXTXPort_debug_verbose
  46. #define gnu_io_RXTXPort_debug_verbose 0L
  47. #undef gnu_io_RXTXPort_debug_events
  48. #define gnu_io_RXTXPort_debug_events 0L
  49. /* Inaccessible static: dsrFlag */
  50. /*
  51. * Class: gnu_io_RXTXPort
  52. * Method: Initialize
  53. * Signature: ()V
  54. */
  55. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_Initialize
  56. (JNIEnv *, jclass);
  57. /*
  58. * Class: gnu_io_RXTXPort
  59. * Method: open
  60. * Signature: (Ljava/lang/String;)I
  61. */
  62. JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_open
  63. (JNIEnv *, jobject, jstring);
  64. /*
  65. * Class: gnu_io_RXTXPort
  66. * Method: nativeSetSerialPortParams
  67. * Signature: (IIII)V
  68. */
  69. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetSerialPortParams
  70. (JNIEnv *, jobject, jint, jint, jint, jint);
  71. /*
  72. * Class: gnu_io_RXTXPort
  73. * Method: setflowcontrol
  74. * Signature: (I)V
  75. */
  76. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_setflowcontrol
  77. (JNIEnv *, jobject, jint);
  78. /*
  79. * Class: gnu_io_RXTXPort
  80. * Method: NativegetReceiveTimeout
  81. * Signature: ()I
  82. */
  83. JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_NativegetReceiveTimeout
  84. (JNIEnv *, jobject);
  85. /*
  86. * Class: gnu_io_RXTXPort
  87. * Method: NativeisReceiveTimeoutEnabled
  88. * Signature: ()Z
  89. */
  90. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_NativeisReceiveTimeoutEnabled
  91. (JNIEnv *, jobject);
  92. /*
  93. * Class: gnu_io_RXTXPort
  94. * Method: NativeEnableReceiveTimeoutThreshold
  95. * Signature: (III)V
  96. */
  97. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_NativeEnableReceiveTimeoutThreshold
  98. (JNIEnv *, jobject, jint, jint, jint);
  99. /*
  100. * Class: gnu_io_RXTXPort
  101. * Method: isDTR
  102. * Signature: ()Z
  103. */
  104. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_isDTR
  105. (JNIEnv *, jobject);
  106. /*
  107. * Class: gnu_io_RXTXPort
  108. * Method: setDTR
  109. * Signature: (Z)V
  110. */
  111. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_setDTR
  112. (JNIEnv *, jobject, jboolean);
  113. /*
  114. * Class: gnu_io_RXTXPort
  115. * Method: setRTS
  116. * Signature: (Z)V
  117. */
  118. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_setRTS
  119. (JNIEnv *, jobject, jboolean);
  120. /*
  121. * Class: gnu_io_RXTXPort
  122. * Method: setDSR
  123. * Signature: (Z)V
  124. */
  125. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_setDSR
  126. (JNIEnv *, jobject, jboolean);
  127. /*
  128. * Class: gnu_io_RXTXPort
  129. * Method: isCTS
  130. * Signature: ()Z
  131. */
  132. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_isCTS
  133. (JNIEnv *, jobject);
  134. /*
  135. * Class: gnu_io_RXTXPort
  136. * Method: isDSR
  137. * Signature: ()Z
  138. */
  139. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_isDSR
  140. (JNIEnv *, jobject);
  141. /*
  142. * Class: gnu_io_RXTXPort
  143. * Method: isCD
  144. * Signature: ()Z
  145. */
  146. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_isCD
  147. (JNIEnv *, jobject);
  148. /*
  149. * Class: gnu_io_RXTXPort
  150. * Method: isRI
  151. * Signature: ()Z
  152. */
  153. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_isRI
  154. (JNIEnv *, jobject);
  155. /*
  156. * Class: gnu_io_RXTXPort
  157. * Method: isRTS
  158. * Signature: ()Z
  159. */
  160. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_isRTS
  161. (JNIEnv *, jobject);
  162. /*
  163. * Class: gnu_io_RXTXPort
  164. * Method: sendBreak
  165. * Signature: (I)V
  166. */
  167. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_sendBreak
  168. (JNIEnv *, jobject, jint);
  169. /*
  170. * Class: gnu_io_RXTXPort
  171. * Method: writeByte
  172. * Signature: (IZ)V
  173. */
  174. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_writeByte
  175. (JNIEnv *, jobject, jint, jboolean);
  176. /*
  177. * Class: gnu_io_RXTXPort
  178. * Method: writeArray
  179. * Signature: ([BIIZ)V
  180. */
  181. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_writeArray
  182. (JNIEnv *, jobject, jbyteArray, jint, jint, jboolean);
  183. /*
  184. * Class: gnu_io_RXTXPort
  185. * Method: nativeDrain
  186. * Signature: (Z)Z
  187. */
  188. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeDrain
  189. (JNIEnv *, jobject, jboolean);
  190. /*
  191. * Class: gnu_io_RXTXPort
  192. * Method: nativeavailable
  193. * Signature: ()I
  194. */
  195. JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_nativeavailable
  196. (JNIEnv *, jobject);
  197. /*
  198. * Class: gnu_io_RXTXPort
  199. * Method: readByte
  200. * Signature: ()I
  201. */
  202. JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_readByte
  203. (JNIEnv *, jobject);
  204. /*
  205. * Class: gnu_io_RXTXPort
  206. * Method: readArray
  207. * Signature: ([BII)I
  208. */
  209. JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_readArray
  210. (JNIEnv *, jobject, jbyteArray, jint, jint);
  211. /*
  212. * Class: gnu_io_RXTXPort
  213. * Method: eventLoop
  214. * Signature: ()V
  215. */
  216. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_eventLoop
  217. (JNIEnv *, jobject);
  218. /*
  219. * Class: gnu_io_RXTXPort
  220. * Method: interruptEventLoop
  221. * Signature: ()V
  222. */
  223. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_interruptEventLoop
  224. (JNIEnv *, jobject);
  225. /*
  226. * Class: gnu_io_RXTXPort
  227. * Method: nativeSetEventFlag
  228. * Signature: (IIZ)V
  229. */
  230. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeSetEventFlag
  231. (JNIEnv *, jobject, jint, jint, jboolean);
  232. /*
  233. * Class: gnu_io_RXTXPort
  234. * Method: nativeClose
  235. * Signature: (Ljava/lang/String;)V
  236. */
  237. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeClose
  238. (JNIEnv *, jobject, jstring);
  239. /*
  240. * Class: gnu_io_RXTXPort
  241. * Method: nativeStaticSetSerialPortParams
  242. * Signature: (Ljava/lang/String;IIII)V
  243. */
  244. JNIEXPORT void JNICALL Java_gnu_io_RXTXPort_nativeStaticSetSerialPortParams
  245. (JNIEnv *, jclass, jstring, jint, jint, jint, jint);
  246. /*
  247. * Class: gnu_io_RXTXPort
  248. * Method: nativeStaticSetDSR
  249. * Signature: (Ljava/lang/String;Z)Z
  250. */
  251. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticSetDSR
  252. (JNIEnv *, jclass, jstring, jboolean);
  253. /*
  254. * Class: gnu_io_RXTXPort
  255. * Method: nativeStaticSetDTR
  256. * Signature: (Ljava/lang/String;Z)Z
  257. */
  258. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticSetDTR
  259. (JNIEnv *, jclass, jstring, jboolean);
  260. /*
  261. * Class: gnu_io_RXTXPort
  262. * Method: nativeStaticSetRTS
  263. * Signature: (Ljava/lang/String;Z)Z
  264. */
  265. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticSetRTS
  266. (JNIEnv *, jclass, jstring, jboolean);
  267. /*
  268. * Class: gnu_io_RXTXPort
  269. * Method: nativeStaticIsDSR
  270. * Signature: (Ljava/lang/String;)Z
  271. */
  272. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticIsDSR
  273. (JNIEnv *, jclass, jstring);
  274. /*
  275. * Class: gnu_io_RXTXPort
  276. * Method: nativeStaticIsDTR
  277. * Signature: (Ljava/lang/String;)Z
  278. */
  279. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticIsDTR
  280. (JNIEnv *, jclass, jstring);
  281. /*
  282. * Class: gnu_io_RXTXPort
  283. * Method: nativeStaticIsRTS
  284. * Signature: (Ljava/lang/String;)Z
  285. */
  286. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticIsRTS
  287. (JNIEnv *, jclass, jstring);
  288. /*
  289. * Class: gnu_io_RXTXPort
  290. * Method: nativeStaticIsCTS
  291. * Signature: (Ljava/lang/String;)Z
  292. */
  293. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticIsCTS
  294. (JNIEnv *, jclass, jstring);
  295. /*
  296. * Class: gnu_io_RXTXPort
  297. * Method: nativeStaticIsCD
  298. * Signature: (Ljava/lang/String;)Z
  299. */
  300. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticIsCD
  301. (JNIEnv *, jclass, jstring);
  302. /*
  303. * Class: gnu_io_RXTXPort
  304. * Method: nativeStaticIsRI
  305. * Signature: (Ljava/lang/String;)Z
  306. */
  307. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeStaticIsRI
  308. (JNIEnv *, jclass, jstring);
  309. /*
  310. * Class: gnu_io_RXTXPort
  311. * Method: nativeStaticGetBaudRate
  312. * Signature: (Ljava/lang/String;)I
  313. */
  314. JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_nativeStaticGetBaudRate
  315. (JNIEnv *, jclass, jstring);
  316. /*
  317. * Class: gnu_io_RXTXPort
  318. * Method: nativeStaticGetDataBits
  319. * Signature: (Ljava/lang/String;)I
  320. */
  321. JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_nativeStaticGetDataBits
  322. (JNIEnv *, jclass, jstring);
  323. /*
  324. * Class: gnu_io_RXTXPort
  325. * Method: nativeStaticGetParity
  326. * Signature: (Ljava/lang/String;)I
  327. */
  328. JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_nativeStaticGetParity
  329. (JNIEnv *, jclass, jstring);
  330. /*
  331. * Class: gnu_io_RXTXPort
  332. * Method: nativeStaticGetStopBits
  333. * Signature: (Ljava/lang/String;)I
  334. */
  335. JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_nativeStaticGetStopBits
  336. (JNIEnv *, jclass, jstring);
  337. /*
  338. * Class: gnu_io_RXTXPort
  339. * Method: nativeGetParityErrorChar
  340. * Signature: ()B
  341. */
  342. JNIEXPORT jbyte JNICALL Java_gnu_io_RXTXPort_nativeGetParityErrorChar
  343. (JNIEnv *, jobject);
  344. /*
  345. * Class: gnu_io_RXTXPort
  346. * Method: nativeSetParityErrorChar
  347. * Signature: (B)Z
  348. */
  349. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetParityErrorChar
  350. (JNIEnv *, jobject, jbyte);
  351. /*
  352. * Class: gnu_io_RXTXPort
  353. * Method: nativeGetEndOfInputChar
  354. * Signature: ()B
  355. */
  356. JNIEXPORT jbyte JNICALL Java_gnu_io_RXTXPort_nativeGetEndOfInputChar
  357. (JNIEnv *, jobject);
  358. /*
  359. * Class: gnu_io_RXTXPort
  360. * Method: nativeSetEndOfInputChar
  361. * Signature: (B)Z
  362. */
  363. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetEndOfInputChar
  364. (JNIEnv *, jobject, jbyte);
  365. /*
  366. * Class: gnu_io_RXTXPort
  367. * Method: nativeSetUartType
  368. * Signature: (Ljava/lang/String;Z)Z
  369. */
  370. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetUartType
  371. (JNIEnv *, jobject, jstring, jboolean);
  372. /*
  373. * Class: gnu_io_RXTXPort
  374. * Method: nativeGetUartType
  375. * Signature: ()Ljava/lang/String;
  376. */
  377. JNIEXPORT jstring JNICALL Java_gnu_io_RXTXPort_nativeGetUartType
  378. (JNIEnv *, jobject);
  379. /*
  380. * Class: gnu_io_RXTXPort
  381. * Method: nativeSetBaudBase
  382. * Signature: (I)Z
  383. */
  384. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetBaudBase
  385. (JNIEnv *, jobject, jint);
  386. /*
  387. * Class: gnu_io_RXTXPort
  388. * Method: nativeGetBaudBase
  389. * Signature: ()I
  390. */
  391. JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_nativeGetBaudBase
  392. (JNIEnv *, jobject);
  393. /*
  394. * Class: gnu_io_RXTXPort
  395. * Method: nativeSetDivisor
  396. * Signature: (I)Z
  397. */
  398. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetDivisor
  399. (JNIEnv *, jobject, jint);
  400. /*
  401. * Class: gnu_io_RXTXPort
  402. * Method: nativeGetDivisor
  403. * Signature: ()I
  404. */
  405. JNIEXPORT jint JNICALL Java_gnu_io_RXTXPort_nativeGetDivisor
  406. (JNIEnv *, jobject);
  407. /*
  408. * Class: gnu_io_RXTXPort
  409. * Method: nativeSetLowLatency
  410. * Signature: ()Z
  411. */
  412. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetLowLatency
  413. (JNIEnv *, jobject);
  414. /*
  415. * Class: gnu_io_RXTXPort
  416. * Method: nativeGetLowLatency
  417. * Signature: ()Z
  418. */
  419. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeGetLowLatency
  420. (JNIEnv *, jobject);
  421. /*
  422. * Class: gnu_io_RXTXPort
  423. * Method: nativeSetCallOutHangup
  424. * Signature: (Z)Z
  425. */
  426. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeSetCallOutHangup
  427. (JNIEnv *, jobject, jboolean);
  428. /*
  429. * Class: gnu_io_RXTXPort
  430. * Method: nativeGetCallOutHangup
  431. * Signature: ()Z
  432. */
  433. JNIEXPORT jboolean JNICALL Java_gnu_io_RXTXPort_nativeGetCallOutHangup
  434. (JNIEnv *, jobject);
  435. #ifdef __cplusplus
  436. }
  437. #endif
  438. #endif