|
TUsb Respiration Belt plugin 1.0
|
The file contains the sources for TUsb respiration belt Scol plugin and the definition of each function of the DLL. More...
#include "Plugin.h"Go to the source code of this file.
Functions | |
| int | destroyTUsbObj (mmachine m, int handsys, int respirationBeltTab) |
| Scol CallBack for ObjTUsb destruction. | |
| int | _CRTUsbDevice (mmachine m) |
| _CRTUsbDevice : This function creates a new TUsb respiration belt instance | |
| int | _DSTUsbDevice (mmachine m) |
| _DSTUsbDevice : This function deletes the TUsb respiration system instance | |
| int | _CBTUsbConnected (mmachine m) |
| _CBTUsbConnected : This function sets the Callback for a connected event received from TUsb respiration belt | |
| int | getTUsbConnectedCb (mmachine m, HWND h, unsigned msg, UINT id, LONG param, int *ret) |
| int | _CBTUsbDisconnected (mmachine m) |
| _CBTUsbDisconnected : This function sets the Callback for a Disconnected event received from TUsb respiration belt | |
| int | getTUsbDisconnectedCb (mmachine m, HWND h, unsigned msg, UINT id, LONG param, int *ret) |
| int | _CBTUsbNewData (mmachine m) |
| _CBTUsbNewData : This function sets the Callback for new data available from TUsb respiration belt | |
| int | getTUsbNewDataCb (mmachine m, HWND h, unsigned msg, UINT id, LONG param, int *ret) |
| int | _CBTUsbBatteryLevel (mmachine m) |
| _CBTUsbBatteryLevel : This function sets the Callback for a Battery level event received from TUsb respiration belt | |
| int | getTUsbBatteryLevelCb (mmachine m, HWND h, unsigned msg, UINT id, LONG param, int *ret) |
| __declspec (dllexport) int ScolLoadPlugin(mmachine m | |
| Starting point of the DLL. | |
| cbmachine w | SCOLinitplugin (w) |
| LoadTUsb (m) | |
Variables | |
| cbmachine | ww |
| Scol machine declaration for MM macros. | |
| HWND | HScol = NULL |
| int | OBJTUSBSCOL |
| Scol object declaration. | |
| int | SCOL_TUSB_CONNECTED_CB = 0 |
| Scol CallBacks declaration. | |
| int | TUSB_CONNECTED_CB |
| int | SCOL_TUSB_DISCONNECTED_CB = 1 |
| int | TUSB_DISCONNECTED_CB |
| int | SCOL_TUSB_NEW_DATA_CB = 2 |
| int | TUSB_NEW_DATA_CB |
| int | SCOL_TUSB_BATTERY_LEVEL_CB = 3 |
| int | TUSB_BATTERY_LEVEL_CB |
| char * | TplName [NbTplPKG] |
| int(* | TplFunc [NbTplPKG])(mmachine m) |
| int | TplNArg [NbTplPKG] |
| char * | TplType [NbTplPKG] |
| return | |
The file contains the sources for TUsb respiration belt Scol plugin and the definition of each function of the DLL.
Definition in file Plugin.cpp.
| __declspec | ( | dllexport | ) |
Starting point of the DLL.
Ending point of the DLL.
//// DLL CALL FUNCTIONS ///
Definition at line 516 of file Plugin.cpp.
| int(* TplFunc[NbTplPKG])(mmachine m) |
{
NULL,
_CRTUsbDevice,
_DSTUsbDevice,
_CBTUsbConnected,
_CBTUsbDisconnected,
_CBTUsbNewData,
_CBTUsbBatteryLevel
}
Pointers to C functions that manipulate the VM for each scol function previously defined
Definition at line 410 of file Plugin.cpp.
| char* TplName[NbTplPKG] |
{
"ObjTUsb",
"_CRTUsbDevice",
"_DSTUsbDevice",
"_CBTUsbConnected",
"_CBTUsbDisconnected",
"_CBTUsbNewData",
"_CBTUsbBatteryLevel"
}
Scol function names
Definition at line 395 of file Plugin.cpp.
| int TplNArg[NbTplPKG] |
{
TYPTYPE,
1,
1,
3,
3,
3,
3
}
Nb of arguments of each scol function
Definition at line 425 of file Plugin.cpp.
| char* TplType[NbTplPKG] |
{
NULL,
"fun [Chn] ObjTUsb",
"fun [ObjTUsb] I",
"fun [ObjTUsb fun [ObjTUsb u0] u1 u0] ObjTUsb",
"fun [ObjTUsb fun [ObjTUsb u0] u1 u0] ObjTUsb",
"fun [ObjTUsb fun [ObjTUsb u0 [F r1]] u1 u0] ObjTUsb",
"fun [ObjTUsb fun [ObjTUsb u0 F] u1 u0] ObjTUsb"
}
Prototypes of the scol functions
Definition at line 440 of file Plugin.cpp.
1.7.3