beautypg.com

Chapter 2 application interface – Acrosser AR-B104D User Manual

Page 6

background image

AR-B104D Software Programming Guide

2

Chapter 2 Application Interface

This chapter describes the details of the provided API function. To prevent

using the function under wrong operation system, we add the operation system

prefix in front of function name and separate by underline, e.g.

WXP_RegisterCard or LNX_RegisterCard.

2.1 General Usage

2.1.1 RegisterCard

Description

This function is used to register the selected AR-B104D card. The card has

to be registered by this function before other functions are called.

Syntax

XXX_RegisterCard (i16* CardNum)

Argument

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

2.1.2 ReleaseCard

Description

This function is used to release the resource of the selected AR-B104D

card.

Syntax

XXX_ReleaseCard (i16 CardNum)

Argument

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

2.1.3 GetIOBaseAddr

Description

This function is used to get the I/O base address of the selected AR-B104D

card.

Syntax

XXX_GetIOBaseAddr (i16 CardNum, u32* IOBaseAddr)

Argument

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

IOBaseAddr: The I/O base address of the selected AR-B104D card.