Die versiegelte Klasse K8055 enthält alle Funktionen der k8055d.dll
public sealed class K8055
{
[DllImport("K8055D.DLL")]
public static extern int OpenDevice(int addr);
[DllImport("K8055D.DLL")]
public static extern void CloseDevice();
[DllImport("K8055D.DLL")]
public static extern int ReadAnalogChannel(int channel);
[DllImport("K8055D.DLL")]
public static extern int ReadAllAnalog(int data1, int data2);
[DllImport("K8055D.DLL")]
public static extern void OutputAnalogChannel(int channel, int data);
[DllImport("K8055D.DLL")]
public static extern void OutputAllAnalog(int data1, int data2);
[DllImport("K8055D.DLL")]
public static extern void ClearAnalogChannel(int channel);
[DllImport("K8055D.DLL")]
public static extern void SetAllAnalog();
[DllImport("K8055D.DLL")]
public static extern void ClearAllAnalog();
[DllImport("K8055D.DLL")]
public static extern void SetAnalogChannel(int channel);
[DllImport("K8055D.DLL")]
public static extern void WriteAllDigital(int data);
[DllImport("K8055D.DLL")]
public static extern void ClearDigitalChannel(int channel);
[DllImport("K8055D.DLL")]
public static extern void ClearAllDigital();
[DllImport("K8055D.DLL")]
public static extern void SetDigitalChannel(int channel);
[DllImport("K8055D.DLL")]
public static extern void SetAllDigital();
[DllImport("K8055D.DLL")]
public static extern bool ReadDigitalChannel(int channel);
[DllImport("K8055D.DLL")]
public static extern int ReadAllDigital();
[DllImport("K8055D.DLL")]
public static extern int ReadCounter(int nr);
[DllImport("K8055D.DLL")]
public static extern void ResetCounter(int nr);
[DllImport("K8055D.DLL")]
public static extern void SetCounterDebouncetime(int nr, int debtime);
}
Kommentare zum Snippet