Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. WhaleTeq SECG(Single Channel ECG System) SDK for Linux platform:
  2. 0. SECG USB connection on Linux:
  3. A. "/dev/ttyACM0" would be linked after the SECG device be connected through USB cable:
  4. [cloud-user@localhost dev]$ ls -l ttyA*
  5. crw-rw----. 1 root dialout 166, 0 Feb 21 09:57 ttyACM0
  6.  
  7. B. Add user account into "dialout" group to grant access permission for "/dev/ttyACM0":
  8. [cloud-user@localhost dev]$ cat ttyACM0
  9. cat: ttyACM0: Permission denied
  10. [cloud-user@localhost dev]$ sudo "usermod -a -G dialout cloud-user"
  11. [cloud-user@localhost dev]$ cat ttyACM0
  12.  
  13. 1. Build Environment:
  14. Linux version : 2.6.32-696.el6.x86_64
  15. gcc version : 4.4.7
  16.  
  17. 2. Package Structure:
  18. Header : SECG_SDK/include/WhaleTeqSECG_SDK.h
  19. 32 bits library : SECG_SDK/lib/libSECG_SDK.so
  20. 64 bits library : SECG_SDK/lib64/libSECG_SDK.so
  21.  
  22. 3. Compiler Defined (-D) for WhaleTeqSECG_SDK.h : LINUX_GCC
  23. #ifdef WHALETEQSECG_SDK_EXPORTS
  24. # ifdef LINUX_GCC
  25. # define WHALETEQSECG_SDK_API __attribute__ ((visibility ("default")))
  26. # else
  27. # define WHALETEQSECG_SDK_API __declspec(dllexport)
  28. # endif
  29. #else
  30. # if defined(LINUX_GCC) || defined(ANDROID)
  31. # define WHALETEQSECG_SDK_API
  32. # else
  33. # define WHALETEQSECG_SDK_API __declspec(dllimport)
  34. # endif
  35. #endif
  36.  
  37. 4. Thread for "TimeAmplitudeCB" :
  38. WHALETEQSECG_SDK_API void RegisterTimeAmpCB(TimeAmplitudeCB cb);
  39. The callback would be triggered from another thread. Please take care the GUI thread limitation if do GUI drawing in "TimeAmplitudeCB" for output signal display.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement