I need to write Java binding for GPIO library. Decided to go with JNI for the purpose. All of the references have examples with using standard C libraries with functions such as printf or, from scientific library with method such as multiply. The library for which I need to write Java binding has macros, structs, with types such as __u32 which I am unable to see mapped to Java. Until now have watched some youtube videos, looking at JNI programmers's guide which was recommended(but it is very old) and looking at an ibm documentation on JNI https://docs.oracle.com/javase/8/docs/technotes/guides/jni/spec/types.html has not been very helpful. https://github.com/java-native-access/jna/blob/master/www/Mappings.md has mappings but in the library there are types such as __u32 for which there is no corresponding Java type https://docs.oracle.com/javase/8/docs/technotes/guides/jni/spec/types.html, even the official documentation has no mappingfor __u32 or unsigned 32/64 bit
Is there any tools that can help me?
Where can I find a good reference for this?
Or am I approaching this completely wrong?
Should I go for JNA or some other option?