Src/EEPROM_Emul/eeprom_emul.c
EE_Status EE_WriteVariable32bits(uint16_t VirtAddress, uint32_t Data)
{
  if((VirtAddress != 0x0000) && (VirtAddress != 0xFFFF))
  {
#ifndef FLASH_LINES_128B
    return WriteVariable(VirtAddress, (EE_DATA_TYPE) Data);
#else
    return WriteVariable(VirtAddress, (EE_DATA_TYPE*) &Data);
#endif
  }
  else
  {
    return EE_INVALID_VIRTUALADDRESS;
  } 
}
/**
  * @brief  Writes/updates variable data in EEPROM.
  *         Trig internal Pages transfer if half of the pages are full.
  * @warning This function is not reentrant
  * @param VirtAddress Variable virtual address on 16 bits (can't be 0x0000 or 0xFFFF)
  * @param  Data 32bits data to be written
  * @retval EE_Status
  *           - EE_OK: on success
  *           - EE_CLEANUP_REQUIRED: success and user has to trig flash pages cleanup
  *           - EE error code: if an error occurs
  */
@brief  Writes/updates variable data in EEPROM.
Trig internal Pages transfer if half of the pages are full.
@warning This function is not reentrant
@param VirtAddress Variable virtual address on 16 bits (can't be 0x0000 or 0xFFFF)
@param  Data 32bits data to be written
@retval EE_Status
- EE_OK: on success
- EE_CLEANUP_REQUIRED: success and user has to trig flash pages cleanup
- EE error code: if an error occurs
@brief Writes / updates variable data in EEPROM . Trig internal Pages transfer if half of the pages are full . @warning This function is not reentrant @param VirtAddress Variable virtual address on 16 bits ( can ' t be 0x0000 or 0xFFFF ) @param Data 32bits data to be written @retval EE_Status - EE_OK : on success - EE_CLEANUP_REQUIRED : success and user has to trig flash pages cleanup - EE error code : if an error occurs
EE_Status EE_WriteVariable32bits(uint16_t VirtAddress, uint32_t Data)
{
  if((VirtAddress != 0x0000) && (VirtAddress != 0xFFFF))
  {
#ifndef FLASH_LINES_128B
    return WriteVariable(VirtAddress, (EE_DATA_TYPE) Data);
#else
    return WriteVariable(VirtAddress, (EE_DATA_TYPE*) &Data);
#endif
  }
  else
  {
    return EE_INVALID_VIRTUALADDRESS;
  } 
}
EE_Status EE_WriteVariable32bits ( uint16_t VirtAddress , uint32_t Data ) { if ( ( VirtAddress != 0x0000 ) && ( VirtAddress != 0xFFFF ) ) { #ifndef FLASH_LINES_128B return WriteVariable ( VirtAddress , ( EE_DATA_TYPE ) Data ) ; #else return WriteVariable ( VirtAddress , ( EE_DATA_TYPE * ) & Data ) ; #endif } else { return EE_INVALID_VIRTUALADDRESS ; } }
@brief  Writes/updates variable data in EEPROM.
@brief Writes / updates variable data in EEPROM .