Simple single-color 8x8x8 LED Cube with AVRs
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

serialInterface.h 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #include <jni.h>
  2. /* Header for class HelperUtility */
  3. #ifdef winHelper
  4. #ifdef BUILDINGDLL
  5. #define DLL __declspec(dllexport)
  6. #else
  7. #define DLL __declspec(dllimport)
  8. #endif
  9. #else
  10. #define DLL
  11. #endif
  12. #ifndef _Included_HelperUtility
  13. #define _Included_HelperUtility
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. /*
  18. * Class: HelperUtility
  19. * Method: getThePorts
  20. * Signature: (Ljava/lang/String;)Ljava/lang/String;
  21. */
  22. JNIEXPORT jstring DLL JNICALL Java_HelperUtility_getThePorts
  23. (JNIEnv *, jclass, jstring);
  24. /*
  25. * Class: HelperUtility
  26. * Method: openPortNative
  27. * Signature: (Ljava/lang/String;)Z
  28. */
  29. JNIEXPORT jboolean DLL JNICALL Java_HelperUtility_openPortNative
  30. (JNIEnv *, jclass, jstring);
  31. /*
  32. * Class: HelperUtility
  33. * Method: closePortNative
  34. * Signature: ()V
  35. */
  36. JNIEXPORT void DLL JNICALL Java_HelperUtility_closePortNative
  37. (JNIEnv *, jclass);
  38. /*
  39. * Class: HelperUtility
  40. * Method: readDataNative
  41. * Signature: (I)[S
  42. */
  43. JNIEXPORT jshortArray DLL JNICALL Java_HelperUtility_readDataNative
  44. (JNIEnv *, jclass, jint);
  45. /*
  46. * Class: HelperUtility
  47. * Method: writeDataNative
  48. * Signature: ([SI)V
  49. */
  50. JNIEXPORT jboolean DLL JNICALL Java_HelperUtility_writeDataNative
  51. (JNIEnv *, jclass, jshortArray, jint);
  52. #ifdef __cplusplus
  53. }
  54. #endif
  55. #endif