EE_WriteVariable() function
Writes/updates variable data in EEPROM.
Arguments
VirtAddress
Variable virtual address
Data
16 bit data to be written
Return value
Success or error status: - FLASH_COMPLETE: on success - PAGE_FULL: if valid page is full - NO_VALID_PAGE: if no valid page was found - Flash error code: on write Flash error