GetDinMask

Outline

DIN input mask in RAS port is acquired.

Supplement

DIN1 input is shared with reset input for RAS port: when reset input is not masked, DIN1 mask cannot be canceled.
During System monitor is running, this API cannot be used.

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


VC++ .NET

GetDinMask
Calling Method BOOL GetDinMask(int iPort, int *iMask);
Return Value
TRUE : Normal
FALSE : Error
Argument int iPort DIN Port
DIN0 : DIN0
DIN1 : DIN1
int *iMask Mask
MASK_ON : Mask Enable
MASK_OFF : Mask Disable
Example int ret, iMask
ret = GetDinMask(DIN0, &iMask);
Necessary Condition
Header : iocif.h/iocifconst.h
Library : ioctl.lib

Top of Page

VC# .NET

GetDinMask
Calling Method [DllImport("Ioctl.dll")] static extern int GetDinMask(int iPort, ref int iMask);
Return Value
Excluding 0 : Normal
0 : Error
Argument int iPort DIN Port
DIN0 : DIN0
DIN1 : DIN1
ref int iMask Mask
MASK_ON : Mask Enable
MASK_OFF : Mask Disable
Example int ret, iMask
ret = GetDinMask(DIN0, ref iMask);

Top of Page

VB .NET

GetDinMask
Calling Method Declare Function GetDinMask Lib "Ioctl.dll"(ByVal iPort As Integer, ByRef iMask As Integer)As Integer
Return Value
Excluding 0 : Normal
0 : Error
Argument ByVal iPort As Integer DIN Port
DIN0 : DIN0
DIN1 : DIN1
ByRef iMask As Integer Mask
MASK_ON : Mask Enable
MASK_OFF : Mask Disable
Example Dim ret As Integer
Dim iMask As Integer
ret = GetDinMask(DIN0, iMask)

Top of Page