Package mcc.mccjna

Interface MCCJNA.MCCLibrary

All Superinterfaces:
com.sun.jna.Library
Enclosing class:
MCCJNA

public static interface MCCJNA.MCCLibrary extends com.sun.jna.Library
Interface to the MCCLibrary JNA calls. Note that these have to carefully match the calls in the C Universal library provided by MeasurementComputing. Each probably needs testing to make sure it works for both 332 and 64 bit platforms. While all calls have been copy pasted from the C header file, I've commented all of them out apart from the few that i've tested / used so far.

Constants from the header file are in MCCConstants

Author:
Doug Gillespie
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     

    Nested classes/interfaces inherited from interface com.sun.jna.Library

    com.sun.jna.Library.Handler
  • Field Summary

    Fields inherited from interface com.sun.jna.Library

    OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    cbAChanInputMode(int BoardNum, int Chan, int InputMode)
     
    int
    cbAConvertData(int BoardNum, com.sun.jna.NativeLong NumPoints, short[] ADData, short[] ChanTags)
     
    int
    cbAIn(int BoardNum, int Chan, int Gain, com.sun.jna.ptr.ShortByReference DataValue)
     
    int
    cbAIn32(int BoardNum, int Chan, int Gain, com.sun.jna.ptr.LongByReference DataValue, int Options)
     
    int
    cbAInputMode(int BoardNum, int InputMode)
     
    int
    cbAInScan(int BoardNum, int LowChan, int HighChan, com.sun.jna.NativeLong Count, com.sun.jna.ptr.NativeLongByReference Rate, int Gain, com.sun.jna.Pointer MemHandle, int Options)
     
    int
    cbDeclareRevision(com.sun.jna.ptr.FloatByReference RevNum)
     
    int
    cbEnableEvent(int BoardNum, int EventType, int Count, MCCJNA.MCCLibrary.EVENTCALLBACK CallbackFunc, com.sun.jna.Pointer UserData)
     
    int
    cbFlashLED(int BoardNum)
     
    int
    cbGetBoardName(int BoardNum, byte[] BoardName)
     
    int
    cbGetErrMsg(int ErrCode, byte[] ErrMsg)
     
    int
    cbGetIOStatus(int BoardNum, com.sun.jna.ptr.ShortByReference Status, com.sun.jna.ptr.NativeLongByReference CurCount, com.sun.jna.ptr.NativeLongByReference CurIndex, int FunctionType)
     
    int
    cbGetRevision(com.sun.jna.ptr.FloatByReference RevNum, com.sun.jna.ptr.FloatByReference VxDRevNum)
     
    int
    cbStopIOBackground(int BoardNum, int FunctionType)
     
    int
    cbToEngUnits(int BoardNum, int Range, short DataVal, com.sun.jna.ptr.FloatByReference EngUnits)
     
    int
    cbToEngUnits32(int BoardNum, int Range, com.sun.jna.NativeLong DataVal, com.sun.jna.ptr.DoubleByReference EngUnits)
     
    int
    cbVIn(int BoardNum, int Chan, int Gain, com.sun.jna.ptr.FloatByReference DataValue, int Options)
     
    int
    cbVIn32(int BoardNum, int Chan, int Gain, com.sun.jna.ptr.DoubleByReference DataValue, int Options)
     
    com.sun.jna.Pointer
    cbWinBufAlloc(com.sun.jna.NativeLong NumPoints)
     
    com.sun.jna.Pointer
    cbWinBufAlloc32(com.sun.jna.NativeLong NumPoints)
     
    com.sun.jna.Pointer
    cbWinBufAlloc64(com.sun.jna.NativeLong NumPoints)
     
    int
    cbWinBufFree(com.sun.jna.Pointer MemHandle)
     
  • Method Details

    • cbGetRevision

      int cbGetRevision(com.sun.jna.ptr.FloatByReference RevNum, com.sun.jna.ptr.FloatByReference VxDRevNum)
    • cbAConvertData

      int cbAConvertData(int BoardNum, com.sun.jna.NativeLong NumPoints, short[] ADData, short[] ChanTags)
    • cbAIn

      int cbAIn(int BoardNum, int Chan, int Gain, com.sun.jna.ptr.ShortByReference DataValue)
    • cbAIn32

      int cbAIn32(int BoardNum, int Chan, int Gain, com.sun.jna.ptr.LongByReference DataValue, int Options)
    • cbAInScan

      int cbAInScan(int BoardNum, int LowChan, int HighChan, com.sun.jna.NativeLong Count, com.sun.jna.ptr.NativeLongByReference Rate, int Gain, com.sun.jna.Pointer MemHandle, int Options)
    • cbFlashLED

      int cbFlashLED(int BoardNum)
    • cbGetErrMsg

      int cbGetErrMsg(int ErrCode, byte[] ErrMsg)
    • cbGetIOStatus

      int cbGetIOStatus(int BoardNum, com.sun.jna.ptr.ShortByReference Status, com.sun.jna.ptr.NativeLongByReference CurCount, com.sun.jna.ptr.NativeLongByReference CurIndex, int FunctionType)
    • cbStopIOBackground

      int cbStopIOBackground(int BoardNum, int FunctionType)
    • cbWinBufAlloc

      com.sun.jna.Pointer cbWinBufAlloc(com.sun.jna.NativeLong NumPoints)
    • cbWinBufAlloc32

      com.sun.jna.Pointer cbWinBufAlloc32(com.sun.jna.NativeLong NumPoints)
    • cbWinBufAlloc64

      com.sun.jna.Pointer cbWinBufAlloc64(com.sun.jna.NativeLong NumPoints)
    • cbWinBufFree

      int cbWinBufFree(com.sun.jna.Pointer MemHandle)
    • cbToEngUnits

      int cbToEngUnits(int BoardNum, int Range, short DataVal, com.sun.jna.ptr.FloatByReference EngUnits)
    • cbToEngUnits32

      int cbToEngUnits32(int BoardNum, int Range, com.sun.jna.NativeLong DataVal, com.sun.jna.ptr.DoubleByReference EngUnits)
    • cbGetBoardName

      int cbGetBoardName(int BoardNum, byte[] BoardName)
    • cbDeclareRevision

      int cbDeclareRevision(com.sun.jna.ptr.FloatByReference RevNum)
    • cbVIn

      int cbVIn(int BoardNum, int Chan, int Gain, com.sun.jna.ptr.FloatByReference DataValue, int Options)
    • cbVIn32

      int cbVIn32(int BoardNum, int Chan, int Gain, com.sun.jna.ptr.DoubleByReference DataValue, int Options)
    • cbAInputMode

      int cbAInputMode(int BoardNum, int InputMode)
    • cbAChanInputMode

      int cbAChanInputMode(int BoardNum, int Chan, int InputMode)
    • cbEnableEvent

      int cbEnableEvent(int BoardNum, int EventType, int Count, MCCJNA.MCCLibrary.EVENTCALLBACK CallbackFunc, com.sun.jna.Pointer UserData)