DIO_SetCOSInterrupt Previous topicNext topicFirst topicLast topic

DIO_SetCOSInterrupt

@ Description

This functions enable/disables the COS (Change Of State) interrupt detection capability of the specified ports.

@ Cards Support

7396

@ Syntax

I16 DIO_SetCOSInterrupt (U16 CardNumber, U16 Channel_no, U16 ctlA, U16 ctlB, U16 ctlC)

@ Parameter

CardNumber : The card id of the card that want to be performed this operation.
Channel_no :  The channel number to be enabled or disabled COS detection capability.
        The valid port numbers are:
            Channel_P1 :  Port 1
            Channel_P2 :  Port 2
            Channel_P3 :  Port 3
            Channel_P4 :  Port 4
ctlA :The control value for Port A of the channel defined by argument Channel_no.
        The valid values:
            0: disabled
            1: enabled
ctlB :The control value for Port B of the channel defined by argument Channel_no.
        The valid values:
            0: disabled
            1: enabled
ctlC :The control value for Port C of the channel defined by argument Channel_no.
        The valid values:
            0: disabled
            1: enabled

@ Return Code

NoError, ErrorInvalidCardNumber, ErrorCardNotRegistered, ErrorFuncNotSupport