TUsb Respiration Belt plugin 1.0
Functions

Scol functions definition

Functions

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 _CBTUsbDisconnected (mmachine m)
 _CBTUsbDisconnected : This function sets the Callback for a Disconnected event received from TUsb respiration belt
int _CBTUsbNewData (mmachine m)
 _CBTUsbNewData : This function sets the Callback for new data available from TUsb respiration belt
int _CBTUsbBatteryLevel (mmachine m)
 _CBTUsbBatteryLevel : This function sets the Callback for a Battery level event received from TUsb respiration belt

Detailed Description

Scol functions definition


Function Documentation

int _CBTUsbBatteryLevel ( mmachine  m)

_CBTUsbBatteryLevel : This function sets the Callback for a Battery level event received from TUsb respiration belt

Prototype: fun [ObjTUsb fun [ObjTUsb u0 F] u1 u0] ObjTUsb

Parameters:
ObjTUsb: the current ObjTUsb
fun[ObjTUsb u0 F] : SCOL CallBack function to call

  • ObjTUsb : respiration belt object
  • u0 : user parameter
  • F : battery level
u1: user parameter
u0: user parameter
Returns:
I : ObjTUsb if success

Definition at line 356 of file Plugin.cpp.

int _CBTUsbConnected ( mmachine  m)

_CBTUsbConnected : This function sets the Callback for a connected event received from TUsb respiration belt

Prototype: fun [ObjTUsb fun [ObjTUsb u0] u1 u0] ObjTUsb

Parameters:
ObjTUsb: the current ObjTUsb
fun[ObjTUsb u0] : SCOL CallBack function to call

  • ObjTUsb : respiration belt object
  • u0 : user parameter
u1: user parameter
u0: user parameter
Returns:
I : ObjTUsb if success

Definition at line 215 of file Plugin.cpp.

int _CBTUsbDisconnected ( mmachine  m)

_CBTUsbDisconnected : This function sets the Callback for a Disconnected event received from TUsb respiration belt

Prototype: fun [ObjTUsb fun [ObjTUsb u0] u1 u0] ObjTUsb

Parameters:
ObjTUsb: the current ObjTUsb
fun[ObjTUsb u0] : SCOL CallBack function to call

  • ObjTUsb : respiration belt object
  • u0 : user parameter
u1: user parameter
u0: user parameter
Returns:
I : ObjTUsb if success

Definition at line 248 of file Plugin.cpp.

int _CBTUsbNewData ( mmachine  m)

_CBTUsbNewData : This function sets the Callback for new data available from TUsb respiration belt

Prototype: fun [ObjTUsb fun [ObjTUsb u0 [F r1]] u1 u0] ObjTUsb

Parameters:
ObjTUsb: the current ObjTUsb
fun[ObjTUsb u0 [F r1]] : SCOL CallBack function to call

  • ObjTUsb : respiration belt object
  • u0 : user parameter
  • [F r1] : list of chest extension values
u1: user parameter
u0: user parameter
Returns:
I : ObjTUsb if success

Definition at line 282 of file Plugin.cpp.

int _CRTUsbDevice ( mmachine  m)

_CRTUsbDevice : This function creates a new TUsb respiration belt instance

Prototype: fun [Chn] ObjTUsb

Parameters:
Chn: the current channel
Returns:
ObjTUsb : The RespirationBelt object or NIL if creation fails

Definition at line 121 of file Plugin.cpp.

int _DSTUsbDevice ( mmachine  m)

_DSTUsbDevice : This function deletes the TUsb respiration system instance

Prototype: fun [ObjTUsb] I

Parameters:
ObjTUsb: the current ObjTUsb
Returns:
I : 0 if success, NIL otherwise

Definition at line 175 of file Plugin.cpp.