All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.silverspoon.bulldog.linux.jni.NativeSpi Maven / Gradle / Ivy

There is a newer version: 0.3.0
Show newest version
package io.silverspoon.bulldog.linux.jni;

import java.nio.ByteBuffer;

public class NativeSpi {

   public static native int spiOpen(String filename, int mode, int speed, int bitsPerWord, boolean lsbFirst);

   public static native int spiConfig(int fileDescriptor, int mode, int speed, int bitsPerWord, boolean lsbFirst);

   public static native int spiClose(int fileDescriptor);

   public static native int spiTransfer(int fileDescriptor, ByteBuffer txBuffer, ByteBuffer rxBuffer, int transferLength, int delay, int speed, int bitsPerWord);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy