Giter Club home page Giter Club logo

usb-relay-1's Introduction

USB-Relay

This project is based on usb-relay-hid repository for USB HID devices control. All licence information, docs, wiki can be found there. This project is addition – it provides managed DLL library for USB-Relay control for Standard .NET applications.

Contents

Here are provided 3 projects:

  1. lib – folder, containing C project for unmanaged DLL. It can be used in C/C++ projects, but the USB_RELAY_DEVICE.dll can't be used directly in .NET managed application.
  2. NetDLL – project for building managed DLL library – USBRelay.dll, it uses unmanaged dll (USB_RELAY_DEVICE.dll), and tested for .NET Framework 4.6. There are some issues about using managed and unmanaged libraries together, so please read notice below carefully.
  3. NetDLLTest – simple C# console application, demonstrates usage of USBRealy.dll.
  4. bin – pre-built binaries (if you don't want to build it by yourself).

For documentation please see Help.md.

Configurations

There two typical configurations to build projects:

  1. If you are intending to use this library in your Standard .NET application with «AnyCPU» target, it's recommended to build usb-relay-dll project for x86 target (it's pure C, so it hasn't AnyCPU target option), then NetDLL for AnyCPU target, it should work. NetDLLTest also should be built for AnyCPU target.
  2. In several cases the library should be built for x64 target. For example, builded for AnyCPU target DLL won't work with PascalABC.Net – because, instead of C#, it can't mix underlying x86 code (unmanaged DLL) with x64 managed code. So you should build all projects with x64 targer.
  3. Both DLL's can be found in «bin» folder, builded for «AnyCPU» and «x64» targets.

Help

Some improvements were made to the original project library, so you don't need to work with Relay handlers – basic functions allow you to manage relay board with just two indexes – relay board index (if you have more then one board connected), and relay port. For more information see Docs folder.

usb-relay-1's People

Contributors

mmcs-robotics avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.