GetDin

Outline

DIN input status in RAS port acquired.

Supplement

  • DIN1 input is shared with reset input for RESET input of the RAS port


  • VC++ .NET VC# .NET VB .NET


    VC++ .NET

    GetDin
    Calling Method BOOL GetDin(int iPort, int *iInput);
    Return Value
    TRUE : Normal
    FALSE : Error
    Argument int iPort DIN Port
    DIN0 : DIN0
    DIN1 : DIN1
    int *iInput DIN input status
    DIN_ON : Input status
    DIN_OFF : No input
    Example int ret, iInput;
    ret = GetDin(DIN0, &iInput);
    Necessary Condition
    Header : iocif.h/iocifconst.h
    Library : ioctl.lib

    Top of Page

    VC# .NET

    GetDin
    Calling Method [DllImport("Ioctl.dll")] static extern int GetDin(int iPort, ref int iInput);
    Return Value
    Excluding 0 : Normal
    0 : Error
    Argument int iPort DIN Port
    DIN0 : DIN0
    DIN1 : DIN1
    ref int iInput DIN input status
    DIN_ON : Input status
    DIN_OFF : No input
    Example int ret, iInput;
    ret = GetDin(DIN0, ref iInput);

    Top of Page

    VB .NET

    GetDin
    Calling Method Declare Function GetDin Lib "Ioctl.dll"(ByVal iPort As Integer, ByRef iInput As Integer)As Integer
    Return Value
    Excluding 0 : Normal
    0 : Error
    Argument ByVal iPort As Integer DIN Port
    DIN0 : DIN0
    DIN1 : DIN1
    ByRef iInput DIN input status
    DIN_ON : Input status
    DIN_OFF : No input
    Example Dim ret As Integer
    Dim iInput As Integer
    ret = GetDin(DIN0, iInput)

    Top of Page