[fpc-pascal] Linux USB programming using FPC
henry.vermaak at gmail.com
Mon Jun 15 11:23:15 CEST 2009
2009/6/15 <fpclist at silvermono.co.za>:
> Hi guys,
> I'm interested in exploring the USB interface from within Linux using FPC.
> I have looked at libusb and am aware of the functionality which it exposes.
> I would appreciate it if someone with USB programming experience could help by
> pointing me to a website or documentation that reveals a bit more than just
> iterating through connected devices on a USB bus. A code snippet or two would
> be most helpful.
> While I am aware that specific device drivers are required in order to access
> specific USB devices, code samples demonstrating reading and writing to and
> from a file system on USB stick would be most welcome.
the kernel already provides a driver for usb mass storage devices.
this is not a trivial driver, so trying to implement that in user
space is probably not what you want to do. just mount the drive
somewhere and use your favourite input/output functions/syscalls to
write to the filesystem.
More information about the fpc-pascal