Class SPIJNI


public class SPIJNI
extends JNIWrapper
  • Constructor Details

  • Method Details

    • spiInitialize

      public static void spiInitialize​(int port)
    • spiTransaction

      public static int spiTransaction​(int port, ByteBuffer dataToSend, ByteBuffer dataReceived, byte size)
    • spiTransactionB

      public static int spiTransactionB​(int port, byte[] dataToSend, byte[] dataReceived, byte size)
    • spiWrite

      public static int spiWrite​(int port, ByteBuffer dataToSend, byte sendSize)
    • spiWriteB

      public static int spiWriteB​(int port, byte[] dataToSend, byte sendSize)
    • spiRead

      public static int spiRead​(int port, boolean initiate, ByteBuffer dataReceived, byte size)
    • spiReadB

      public static int spiReadB​(int port, boolean initiate, byte[] dataReceived, byte size)
    • spiClose

      public static void spiClose​(int port)
    • spiSetSpeed

      public static void spiSetSpeed​(int port, int speed)
    • spiSetOpts

      public static void spiSetOpts​(int port, int msbFirst, int sampleOnTrailing, int clkIdleHigh)
    • spiSetChipSelectActiveHigh

      public static void spiSetChipSelectActiveHigh​(int port)
    • spiSetChipSelectActiveLow

      public static void spiSetChipSelectActiveLow​(int port)
    • spiInitAuto

      public static void spiInitAuto​(int port, int bufferSize)
    • spiFreeAuto

      public static void spiFreeAuto​(int port)
    • spiStartAutoRate

      public static void spiStartAutoRate​(int port, double period)
    • spiStartAutoTrigger

      public static void spiStartAutoTrigger​(int port, int digitalSourceHandle, int analogTriggerType, boolean triggerRising, boolean triggerFalling)
    • spiStopAuto

      public static void spiStopAuto​(int port)
    • spiSetAutoTransmitData

      public static void spiSetAutoTransmitData​(int port, byte[] dataToSend, int zeroSize)
    • spiForceAutoRead

      public static void spiForceAutoRead​(int port)
    • spiReadAutoReceivedData

      public static int spiReadAutoReceivedData​(int port, ByteBuffer buffer, int numToRead, double timeout)
    • spiReadAutoReceivedData

      public static int spiReadAutoReceivedData​(int port, int[] buffer, int numToRead, double timeout)
    • spiGetAutoDroppedCount

      public static int spiGetAutoDroppedCount​(int port)
    • spiConfigureAutoStall

      public static void spiConfigureAutoStall​(int port, int csToSclkTicks, int stallTicks, int pow2BytesPerRead)