Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2003-09

Linux USB?

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Paul Aviles

Hello, guys, I am working on a project to control a MatrixOrbital LCD panel and keyboard from FPC and I got it working great with a serial interface, but what about a USB unit? Is it possible to use USB devices directly from FPC? Any samples out there?

Thanks

Paul Aviles http://folding.stanford.edu Team # 33187

Reply by email

Sebastian Günther
to Paul Aviles
Hello, guys, I am working on a project to control a MatrixOrbital LCD panel and keyboard from FPC and I got it working great with a serial interface, but what about a USB unit? Is it possible to use USB devices directly from FPC?

Normally yes. How you can access a USB device depends on the kind of device. For example, serial converters will work just as ordinary COM ports, just with different device names.
Can you find out the device class? Which driver is responsible for accessing the device?

- Sebastian

Reply by email

Michael Van Canneyt
to Paul Aviles: Hello, guys, I am working on a project to control a MatrixOrbital LCD panel and keyboard…
Paul Aviles wrote
Hello, guys, I am working on a project to control a MatrixOrbital LCD panel and keyboard from FPC and I got it working great with a serial interface, but what about a USB unit? Is it possible to use USB devices directly from FPC?

USB doesn't require special FPC support.
You should be able to use IOCTL and regular device files to access a USB device. You may need to look up some IOCTL call numbers, but that is it.

Any samples out there?

Not that I am aware of.

Michael.

Reply by email