Sign in Join

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

Mailing lists / fpc-pascal / 2010-03

Comedi hardware support

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Hartmut Eilers

Hi everybody,

I want to support the comedi hardware lib to access I/O hardware from my project OpenMSR.
( http://www.comedi.org )
I googled for anything regards that but had no success. So I decided to write a unit which interfaces to the c library.

But I have really no idea how to translate the c headerfile with its structures to freepascal.
Is there anybody out who can help me to translate the header file into a unit ?

Is somebody else working on that ?

Thanks for your help

Hartmut

Alberto Narduzzi
to Hartmut Eilers

Hi,

But I have really no idea how to translate the c headerfile with its structures to freepascal. Is there anybody out who can help me to translate the header file into a unit ?

Can you pass over the .h file? Maybe I can help.

Please, check the rules of the ML, as I can't tell you for sure you are allowed to attach files. Although a .h file is small...

Cheers, A.

Roland Schaefer
to Hartmut Eilers: I want to support the comedi hardware lib to access I/O hardware from my project OpenMSR.…

Hello,

Hartmut Eilers wrote 12 lines
Hi everybody, I want to support the comedi hardware lib to access I/O hardware from my project OpenMSR. ( http://www.comedi.org ) I googled for anything regards that but had no success. So I decided to write a unit which interfaces to the c library. But I have really no idea how to translate the c headerfile with its structures to freepascal. Is there anybody out who can help me to translate the header file into a unit ?

I don't know if anyone is already working on comedi, but I managed to successfully create many bindings after reading this: ftp://ftp.freepascal.org/pub/fpc/docs-pdf/CinFreePascal.pdf

A good starting point for using translation tools is this: http://wiki.freepascal.org/Creating_bindings_for_C_libraries

I've looked into the comedi headers using their SVN browser, and they seemed pretty short and straightforward, so translation should go smoothly.

Cheers!
Roland