Download BOX-Type Industrial Computer PL

Transcript
Appendices
GetUniversalInMask
Call Format
BOOL GetUniversalInMask( int Selector, int *pMask )
Return Value
TRUE: Normal
FALSE: Error
Arguments
(I) int Selector Designated Port
PORT_UNI0 Universal Input 0
PORT_UNI1 Universal Input 1
(I/O) int *pMask Pointer to Masking Information
MASK_OFF Masking disabled
MASK_ON Masking enabled
Processing
Gets the masking information for the designated port
(Universal Input 0, Universal Input 1).
Example 1
CPL_Ioctl
m_Ioc;
BOOL
ret;
int
Mask;
// Gets the masking information for Universal input 0.
ret = m_Ioc.GetUniversalInMask( PORT_UNI0, &Mask );
// Gets the masking information for Universal input 1.
ret = m_Ioc.GetUniversalInMask( PORT_UNI1, &Mask );
Example 2
BOOL
ret;
int
Mask;
// Gets the masking information for Universal input 0.
ret = ::GetUniversalInMask( PORT_UNI0, &Mask );
// Gets the masking information for Universal input 1.
ret = ::GetUniversalInMask( PORT_UNI1, &Mask );
SetResetMask
Call Format
Return Value
Arguments
Processing
Example 1
Example 2
App-58
BOOL SetResetMask( int Mask )
TRUE: Normal
FALSE: Error
(I) int Mask
Masking Information
MASK_OFF Masking disabled
MASK_ON Masking enabled
Sets reset-masking.
CPL_Ioctl
m_Ioc;
BOOL
ret;
// Disable reset-masking.
ret = m_Ioc.SetResetMask( MASK_OFF );
BOOL
ret;
// Disable reset-masking.
ret = ::SetResetMask( MASK_OFF );
PL-B920 Series User Manual