beautypg.com

Acrosser AR-B104D User Manual

Page 15

background image

AR-B104D Software Programming Guide

11

Description

Get the interrupt enable status of the selected input channel.

Syntax

XXX_GetInputInterruptEnable (i16 CardNum, i16 ChannelNum, u8*

Enable)

Argument

CardNum: The card number of AR-B104D. Range from 1~4.

ChannelNum: Input channel number. Range from 0~11.

Enable: The memory address of buffer to put the interrupt enable

status of the selected input channel. 0 indicates the interrupt of the

selected channel is disabled; others indicate the interrupt of the

selected channel is enabled.

2.3.8 SetCounterTriggerType

Description

Set the counter trigger type of the selected input channel.

Syntax

XXX_SetCounterTriggerType (i16 CardNum, i16 ChannelNum, u8 Type)

Argument

CardNum: The card number of AR-B104D. Range from 1~4.

ChannelNum: Input channel number. Range from 0~11.

Type: The counter trigger type of the selected input channel. 0

indicates counter increased at rising edge; 1 indicates counter

increased at falling edge.

2.3.9 GetCounterTriggerType

Description

Get the counter trigger type of the selected input channel.

Syntax

XXX_ GetCounterTriggerType (i16 CardNum, i16 ChannelNum, u8* Type)

Argument

CardNum: The card number of AR-B104D. Range from 1~4.

ChannelNum: Input channel number. Range from 0~11.

Type: The memory address of buffer to put the counter trigger type of

the selected input channel. 0 indicates counter increased at rising edge;

1 indicates counter increased at falling edge.