Metrologic Optimus S Programming Manual page 218

"c" programming guide
Table of Contents

Advertisement

212
"C" Programming Guide For Optimus S/R
FlashSize
WriteFlash
Purpose
To get the size of flash memory.
Syntax
int FlashSize (void);
Example
FlashSize();
Description
This routine gets the size of flash memory, which is available to the user
program.
This routine returns the size of the flash memory in kilobyte.
Return
See Also
RamSize
Purpose
To write data to the flash memory.
Syntax
int WriteFlash (void *target_addr, void *source_addr, unsigned long size);
char szData[100];
Example
EraseSector (0xF60000);
WriteFlash (0xF60000, szData, 100);
The flash memory can also be used to store data if the user programs have not
Description
used all of it. The possible available flash memory is 64 Kbytes and its address
starts from 0xF60000.
Return
If successful, it returns 1.
Otherwise, it returns 0.
See Also
EraseSector

Advertisement

Table of Contents
loading

This manual is also suitable for:

Optimus r

Table of Contents