beautypg.com

Acrosser AR-B104D User Manual

Page 10

background image

AR-B104D Software Programming Guide

6

2.2 SRAM

2.2.1 ReadMemByte

Description

This function is used to read SRAM data in byte alignment.

Syntax

XXX_ReadMemByte (i16 CardNum, u32 Offset, u8* Buffer)

Argument

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

Offset: SRAM offset to read.

Buffer: The memory address of buffer to put read SRAM data.

2.2.2 ReadMemWord

Description

This function is used to read SRAM data in word alignment.

Syntax

XXX_ReadMemWord (i16 CardNum, u32 Offset, u16* Buffer)

Argument

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

Offset: SRAM offset to read (must in word alignment).

Buffer: The memory address of buffer to put read SRAM data.

2.2.3 ReadMemDWord

Description

This function is used to read SRAM data in double word alignment.

Syntax

XXX_ReadMemDword (i16 CardNum, u32 Offset, u32* Buffer)

Argument

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

Offset: SRAM offset to read (must in double word alignment).

Buffer: The memory address of buffer to put read SRAM data.

2.2.4 WriteMemByte

Description

This function is used to write SRAM data in byte alignment.

Syntax

XXX_WriteMemByte (i16 CardNum, u32 Offset, u8 Value)