Acrosser AR-B104D User Manual

Page 18

Advertising
background image

AR-B104D Software Programming Guide

14

timebase of the selected input channel. 0 indicates the base is 1 ms; 1

indicates the base is 100 ms.

2.3.16 GetCounterValue

♦

Description

Get the counter value of the selected input channel.

♦

Syntax

XXX_GetCounterValue (i16 CardNum, i16 ChannelNum, u16* Value)

♦

Argument

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

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

Value: The memory address of buffer to put the counter value of the

selected input channel.

2.3.17 SetCounterTarget

♦

Description

Set the counter target value of the selected input channel. An interrupt will

trigger if the counter value is equal to counter target value.

♦

Syntax

XXX_SetCounterTarget (i16 CardNum, i16 ChannelNum, u16 Value)

♦

Argument

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

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

Value: The counter target value of the selected input channel.

2.3.18 GetCounterTarget

♦

Description

Get the counter target value of the selected input channel. An interrupt will

trigger if the counter value is equal to counter target value.

♦

Syntax

XXX_GetCounterTarget (i16 CardNum, i16 ChannelNum, u16* Value)

♦

Argument

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

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

Value: The memory address of buffer to put the counter target value of

the selected input channel.

Advertising