beautypg.com

Acrosser AR-B104D User Manual

Page 7

background image

AR-B104D Software Programming Guide

3

2.1.4 GetMemBaseAddr

Description

This function is used to get the SRAM base address of the selected

AR-B104D card.

Syntax

XXX_GetMemBaseAddr (i16 CardNum, u32* MemBaseAddr)

Argument

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

MemBaseAddr: The SRAM base address of the selected AR-B104D

card.

2.1.5 GetEventBuffer

Description

Get an event from device event queue.

Syntax

XXX_GetEventBuffer (i16 CardNum, event* Event)

Argument

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

Event: The memory address of buffer to put the event from queue. The

types of event are listed: 0 input, 1

counter timeout, 2

counter

overflow, 3 pulse generator finished,4

timer finished,5

counter

reach to target.

2.1.6 GetEventCounter

Description

Get how many events stayed in device event queue.

Syntax

XXX_GetEventCounter (i16 CardNum, u16* Count)

Argument

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

Count: The memory address of buffer to put the number of events in

queue.

2.1.7 SetCallbackFunc

Description

Set the callback function pointer.

Syntax