beautypg.com

Acrosser AR-B104D User Manual

Page 3

background image

AR-B104D Software Programming Guide

ii

Table of Contents

Chapter 1

Introduction .............................................................................. 1

Chapter 2

Application Interface ................................................................ 2

2.1

General Usage ..............................................................................2

2.1.1

RegisterCard......................................................................2

2.1.2

ReleaseCard.......................................................................2

2.1.3

GetIOBaseAddr..................................................................2

2.1.4

GetMemBaseAddr .............................................................3

2.1.5

GetEventBuffer ..................................................................3

2.1.6

GetEventCounter...............................................................3

2.1.7

SetCallbackFunc ...............................................................3

2.2

SRAM ............................................................................................6

2.2.1

ReadMemByte....................................................................6

2.2.2

ReadMemWord ..................................................................6

2.2.3

ReadMemDWord................................................................6

2.2.4

WriteMemByte ...................................................................6

2.2.5

WriteMemWord ..................................................................7

2.2.6

WriteMemDWord................................................................7

2.2.7

SwitchMemMode ...............................................................7

2.2.8

ReadMemBlock..................................................................7

2.2.9

WriteMemBlock .................................................................8

2.3

General Purpose Input/Output ....................................................9

2.3.1

ReadInputChannel.............................................................9

2.3.2

SetInputMode.....................................................................9

2.3.3

GetInputMode ....................................................................9

2.3.4

SetDebounce ...................................................................10

2.3.5

GetDebounce ...................................................................10

2.3.6

SetInputInterruptEnable .................................................10

2.3.7

GetInputInterruptEnable .................................................10

2.3.8

SetCounterTriggerType................................................... 11

2.3.9

GetCounterTriggerType .................................................. 11

2.3.10 SetCounterMode..............................................................12

2.3.11

GetCounterMode .............................................................12

2.3.12 SetCounterTimeout .........................................................12

2.3.13 GetCounterTimeout.........................................................13

2.3.14 SetCounterTimeoutBase.................................................13