Giter VIP home page Giter VIP logo

pas-libusb's Introduction

!!! PLEASE USE GIT BRANCH "libusb-1.0" !!!

The code in the "master" branch (you are looking currently) supports version 0.1 of libusb. However, this is heavily outdated and not supported any more.

Please switch to branch "libusb-1.0" for the latest and greatest Pascal bindings for the current version of libusb.

pas-libusb -- Object Oriented wrapper for LibUSB

libusb 0.1 provides access to USB devices in user space.

This project provides Pascal header translations plus an object-oriented wrapper for convenience.

Note: In the current branch only the legacy version 0.1 of libusb is supported. The new version 1.0 introduced major changes in the API and is supported in branch "libusb-1.0".

License

Copyright (C) 2012 Johann Glaser <[email protected]>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Directory Structure

src/
Header translations and OOP wrapper.
src/examples/
Example for the direct usage of the OOP wrapper. This directory also has a Makefile.

Build

$ cd src/examples/
$ make

For further information see the comment at the top of src/examples/testfirmware.pas.

Usage

Simply add the units LibUSB and USB to the uses-clause of your program. Derive from the class TUSBDevice to implement your custom driver.

The unit EZUSB provdes the class TUSBDeviceEZUSB to interface to the Cypress EZ-USB AN2131 microcontrollers. It provides functions to access the on-chip SRAM and to download its firmware.

Platform

This project was compiled with FreePascal 2.6.0 on Linux.

Other Projects

k7103-usb
The USB Interface of the Velleman k7103 PC Storage Oscilloscope http://k7103.sourceforge.net/ uses these units to communicate with the hardware.
EZ-Tools
EZ-Tools is a command line tool for generic access to devices with a built in Cypress EZ-USB AN2131 microcontroller.

pas-libusb's People

Contributors

hansiglaser 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.