Src/EEPROM_Emul/eeprom_emul.c
EE_Status EE_ReadVariable32bits(uint16_t VirtAddress, uint32_t* pData)
{
  if((VirtAddress != 0x0000) && (VirtAddress != 0xFFFF))
  {
    EE_DATA_TYPE datatmp = 0U;
    EE_Status status = EE_OK;

    /* Read variable of size EE_DATA_TYPE, then cast it to 32bits */
    status = ReadVariable(VirtAddress, &datatmp);
    *pData = (uint32_t) datatmp;

    return status;
  }
  else
  {
    return EE_INVALID_VIRTUALADDRESS;
  } 
}
/**
  * @brief  Returns the last stored variable data, if found, which correspond to
  *         the passed virtual address
  * @param VirtAddress Variable virtual address on 16 bits (can't be 0x0000 or 0xFFFF)
  * @param  pData Variable containing the 32bits read variable value
  * @retval EE_Status
  *           - EE_OK: if variable was found
  *           - EE error code: if an error occurs
  */
@brief  Returns the last stored variable data, if found, which correspond to
the passed virtual address
@param VirtAddress Variable virtual address on 16 bits (can't be 0x0000 or 0xFFFF)
@param  pData Variable containing the 32bits read variable value
@retval EE_Status
- EE_OK: if variable was found
- EE error code: if an error occurs
@brief Returns the last stored variable data if found which correspond to the passed virtual address @param VirtAddress Variable virtual address on 16 bits ( can ' t be 0x0000 or 0xFFFF ) @param pData Variable containing the 32bits read variable value @retval EE_Status - EE_OK : if variable was found - EE error code : if an error occurs
EE_Status EE_ReadVariable32bits(uint16_t VirtAddress, uint32_t* pData)
{
  if((VirtAddress != 0x0000) && (VirtAddress != 0xFFFF))
  {
    EE_DATA_TYPE datatmp = 0U;
    EE_Status status = EE_OK;
    status = ReadVariable(VirtAddress, &datatmp);
    *pData = (uint32_t) datatmp;
    return status;
  }
  else
  {
    return EE_INVALID_VIRTUALADDRESS;
  } 
}
EE_Status EE_ReadVariable32bits ( uint16_t VirtAddress , uint32_t * pData ) { if ( ( VirtAddress != 0x0000 ) && ( VirtAddress != 0xFFFF ) ) { EE_DATA_TYPE datatmp = 0U ; EE_Status status = EE_OK ; status = ReadVariable ( VirtAddress , & datatmp ) ; * pData = ( uint32_t ) datatmp ; return status ; } else { return EE_INVALID_VIRTUALADDRESS ; } }
@brief  Returns the last stored variable data, if found, which correspond to
         the passed virtual address
 @param VirtAddress Variable virtual address on 16 bits (can't be 0x0000 or 0xFFFF)
 @param  pData Variable containing the 32bits read variable value
 @retval EE_Status
           - EE_OK: if variable was found
           - EE error code: if an error occurs
@brief Returns the last stored variable data if found which correspond to the passed virtual address @param VirtAddress Variable virtual address on 16 bits ( can ' t be 0x0000 or 0xFFFF ) @param pData Variable containing the 32bits read variable value @retval EE_Status - EE_OK : if variable was found - EE error code : if an error occurs
/* Read variable of size EE_DATA_TYPE, then cast it to 32bits */