Library Defines (Options)

Top  Previous  Next

Any of the options below look cryptic? Read Operation Details section.

 

STG_DEBUG_PRINT (default= 0)

0- no debug information.

1- print debug information into the output pane. Debug printing only works when the project is in the debug mode. However, still set this option to 0 for release, as this will save memory and code space.

 

STG_DESCRIPTOR_FILE (default= "settings.txt")

Name of the setting descriptor file. This file must be in your project and contain correct data.

 

STG_STORAGE_MEMORY (default= 0)

0- non-volatile settings stored in the EEPROM.

1- non-volatile settings stored in the file (on the flash disk).

 

STG_FILENAME (default= "settings.dat")

'When STG_STORAGE_MEMORY= 1 (file), defines the filename in which setting values are stored.

 

STG_REDUNDANCY (default= 0)

0- only one copy of data is stored for all settings.

1- two copies of data are stored for non-volatile settings. Only one copy is maintained for volatile settings.

2- two copies of data are stored for non-volatile and volatile settings.

 

STG_TIMESTAMP (default= 0)

0- no timestamp is saved with settings.

1- each setting keeps the date and time of the most recent setting modification (one for all members).

 

STG_MAX_NUM_SETTINGS (default= 1)

Set this to the actual number of settings in your project. Save memory -- set the exact number you need!

 

STG_RAM_ARRAY_SIZE (default= 0)

If there are volatile settings in your project, set this to the necessary amount of RAM needed. Save memory -- set the exact number you need!

 

STG_RAM_ARRAY_SIZE (default= 0)

If there are volatile settings in your project, set this to the necessary amount of RAM needed. Save memory -- set the exact number you need!

 

STG_RAM_TYPE (default=0)

0- volatile settings are saved into the "regular" RAM.

1- volatile settings are saved using callback_stg_vm_read() and callback_stg_vm_write().

 

STG_MAX_SETTING_NAME_LEN (default= 2)

Specifies maximum setting name lengths. Shorter names save memory! Range: 1-255.

 

STG_MAX_SETTING_VALUE_LEN (default= 16)

Specifies maximum length for the setting value in string form. Smaller value saves memory! 'Range: 1-253 (STG_TIMESTAMP 0) or 1-246 (STG_TIMESTAMP 1).