aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.MachineDesigner/Properties/AssemblyInfo.cs
blob: e0203d2bd4b4b9f312508a0f062c34f990438e5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;

[assembly: AssemblyTitle("Tango - Machine Studio Machine Designer Module")]
[assembly: AssemblyVersion("2.0.11.1737")]

[assembly: ComVisible(false)]

[assembly:ThemeInfo(
    ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
                             //(used if a resource is not found in the page,
                             // or application resource dictionaries)
    ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
                                      //(used if a resource is not found in the page,
                                      // app, or any theme specific resource dictionaries)
)]
ue); uint32_t DriverActionWithCallback (uint32_t deviceId, uint32_t parameter, callback_fptr callback) { assert (callback); assert (isValid(deviceId)); //call driver action to device id with the parameter //SetMotorSpeed (deviceId, parameter); KeepParameter = parameter; ModuleCallback = callback; //start control: uint32_t ControlId = AddControlCallback( callback, eOneMillisecond, NULL, (IfTypeNone*0x100+deviceId),deviceId, parameter ); return ControlId; } uint32_t ControlCallBackFunction(uint32_t deviceId, uint32_t ReadValue) { if (ReadValue == KeepParameter) { //stop this control loop RemoveControlCallback(deviceId, ControlCallBackFunction ); //possibly: start regular control (speed etc) //uint32_t ControlId = AddControlCallback(ControlCBFunction Callback, eOneMillisecond, NULL, deviceId, Parameter ); //call the module callback ModuleCallback(deviceId,ReadValue); } return OK; } bool isValid (uint32_t deviceID) { return true; }