ACR89U-A1 – Reference Manual
Version 1.04
www.acs.com.hk
Page 40 of 57
4.1.4.2. ACCESSEEPROM
typedef struct _ACCESS_EEPROM {
BYTE cbFunction;
BYTE cbDeviceNumber;
DWORD dwAddress;
USHORT wDataLength;
PBYTE pData
} ACCESSEEPROM, *PACCESSEEPROM;
Used in
AS_AccessEEPROM
to read or write the data to the EEPROM memory of the ACR89.
Data Member
Value
Description
cbFunction
EEPROM_ACCESS
00h = READ_EEPROM
01h = WRITE_EEPROM
cbDeviceNumber
00h or 01h
00h = Slave EEPROM
01h = Chinese font EEPROM
dwAddress
4 byte double word
(hex)
Address of EEPROM
wDataLength
2 byte word (hex)
Length of Data (Write/Read)
pData
Pointer to buffer of
wDataLength
Read EEPROM: pointer to buffer to store
the read EEPROM data.
Write EEPROM: pointer to buffer containing
data to write to EEPROM
4.1.4.3. ACCESSSERIALFLASH
typedef struct _ACCESS_SERIALFLASH {
BYTE cbFunction;
DWORD dwAddress;
USHORT wDataLength;
PBYTE pData
} ACCESSSERIALFLASH, *PACCESSSERIALFLASH;
Used in
AS_AccessSerialFlash
to read, write or erase the data to the Serial Flash memory of the
ACR89.
Data Member
Value
Description
cbFunction
SERIALFLASH_ACCESS
00h = READ_SERIALFLASH
01h = WRITE_SERIALFLASH
02h = ERASE_SERIALFLASH
dwAddress
4 byte double word (hex) Address of Serial Flash
wDataLength
2 byte word (hex)
Read Serial Flash: Length of Data
Write Serial Flash: Length of Data
Erase Serial flash: Ignore
pData
Pointer to buffer of
wDataLength
Read Serial Flash: pointer to buffer to
store the read Serial Flash data.
Write Serial Flash: pointer to buffer
containing data to write to Serial Flash
Erase Serial flash: Ignore