Skip to content

Making the SpiDev file descriptor accessible. #140

@sbelbin

Description

@sbelbin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions