-
Couldn't load subscription status.
- Fork 70
Open
Labels
Description
Request by @stefanhaustein related to pi4j-drivers
Would it be feasible to have a "generic" ioctrl(int fd, int id, ByteBuffer) exposed to java via JNI (or new native bindings mechanisms)? I think the max buffer size is limited to 8k, so it should be feasible expose a safe variant that uses one fixed buffer internally. This might make it easier to provide Java access to some device descriptions (such as framebuffer) via get() and the right offset....?
For instance: The sensor hat matrix display is mapped to a framebuffer, and this would allow the driver to query the size and color depth...