ArmbandInterface.h 933 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include "stdafx.h"
  3. extern "C" {
  4. #include "MotorHeader/BodyActuator.h"
  5. }
  6. #include <ctime>
  7. #include <stdio.h>
  8. #define DllExport extern "C" __declspec( dllexport )
  9. DllExport int setupArmband();
  10. DllExport void startVibrate(int tactor, float intensity);
  11. DllExport void stopVibrate(int tactor);
  12. class ArmbandInterface
  13. {
  14. /*
  15. typedef void(__cdecl *InitFunctionType)(BodyActuator*, BodyActuator_Type, char*, int);
  16. static InitFunctionType initFunctionHandle;
  17. typedef void(__cdecl *StartFunctionType)(BodyActuator*, uint8_t, float);
  18. static StartFunctionType startFunctionHandle;
  19. typedef void(__cdecl *StopFunctionType)(BodyActuator*, uint8_t);
  20. static StopFunctionType stopFunctionHandle; */
  21. public:
  22. __declspec(dllexport) int __cdecl setupArmband();
  23. __declspec(dllexport) void __cdecl startVibrate(int tactor, float intensity);
  24. __declspec(dllexport) void __cdecl stopVibrate(int tactor);
  25. void setupMotors();
  26. };