#pragma once #include "stdafx.h" extern "C" { #include "MotorHeader/BodyActuator.h" } #include #include #define DllExport extern "C" __declspec( dllexport ) DllExport int setupArmband(); DllExport void startVibrate(int tactor, float intensity); DllExport void stopVibrate(int tactor); class ArmbandInterface { /* typedef void(__cdecl *InitFunctionType)(BodyActuator*, BodyActuator_Type, char*, int); static InitFunctionType initFunctionHandle; typedef void(__cdecl *StartFunctionType)(BodyActuator*, uint8_t, float); static StartFunctionType startFunctionHandle; typedef void(__cdecl *StopFunctionType)(BodyActuator*, uint8_t); static StopFunctionType stopFunctionHandle; */ public: __declspec(dllexport) int __cdecl setupArmband(); __declspec(dllexport) void __cdecl startVibrate(int tactor, float intensity); __declspec(dllexport) void __cdecl stopVibrate(int tactor); void setupMotors(); };