-
Notifications
You must be signed in to change notification settings - Fork 205
Description
We have automated script that executes various test cases and much of it is implemented in Python script which uses aSpiDev object to perform IOCTL with Raspberry Pi devices.
The automated script needs to run at 1024 Hz (eventually to 2048 Hz) and thus the critical portions are implemented in C code and invoked via Cython as a bridging interface (adapter) between Python script and C code.
Missing is capability of the SpiDev object to provide its underlying file descriptor (fd) that is missing.
The C code won't compete with Python script for the file descriptor such as both using it at the same, nor does the C code close the the file descriptor, but leaves that to Python script via SpiDev.close or upon destruction of the SpiDev object.
Regards,
Steven