Feedback

C# - Velleman k8055 csharp dll import

Veröffentlicht von am 12/31/2010
(0 Bewertungen)
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);
    }
Abgelegt unter k8055, k8055d.dll, csharp, velleman.

Kommentare zum Snippet

 

Logge dich ein, um hier zu kommentieren!