thanhtam-h / soem-w5500-rpi

Realtime ethercat master for Raspberry pi
GNU General Public License v3.0
218 stars 87 forks source link

Usage with a cython wrapper. #20

Closed Roiki11 closed 3 years ago

Roiki11 commented 3 years ago

Hi,

Would it be possible to use a cython wrapper for python for writing user applications? I find c to be a bit hard to use.

The wrapper in question: https://github.com/bnjmnp/pysoem

thanhtam-h commented 3 years ago

I think it is possible with some extra works. You may try.

Roiki11 commented 3 years ago

I see. I assume the C api is untouched so the fuction calls should be the same? Or is there something different there compared to normal SOEM?

thanhtam-h commented 3 years ago

The difference is the driver for W5500 Ethernet chip, but it lies at very low level that you may not need to touch.

Roiki11 commented 3 years ago

Thanks. I think I'll give it a try when I get the hardware for it.