// ============================================================================ // EEPROM data copy source file // ---------------------------- // // Automatically generated file, do not edit // Created by bellac - Fri 12 May 2017 05:02:52 PM CEST // // Copyright © 2014, LAPP/CNRS // // ============================================================================ #include #include #include #include #include #include #include "../src/fru_data.c" #include "../src/sdr_data.c" bool eeprom_data_copy(void) { bool bStatus = true; eeprom_fru_buffer_init(); eeprom_sdr_buffer_init(); // // See fru_data.c for name structures // bStatus &= fru_struct_copy(&fru0_data, sizeof(fru0_data_t)); bStatus &= fru_struct_copy(&fru1_data, sizeof(fru1_data_t)); bStatus &= end_marker_copy(eeprom_fru_buffer_get()); if (bStatus == false) return false; if (eeprom_buffer_copy(eeprom_fru_buffer_get()) == false) return false; // // See sdr_data.c for name structures // bStatus &= sdr_struct_copy(&sdr_mgmt_ctrl_locator); bStatus &= sdr_struct_copy(&sdr_hotswap0); bStatus &= sdr_struct_copy(&sdr_ipmb0); bStatus &= sdr_struct_copy(&sdr_power_converter0); bStatus &= sdr_struct_copy(&fru_device_locator1); bStatus &= sdr_struct_copy(&sdr_hotswap1); bStatus &= sdr_struct_copy(&sdr_ltc4151_12V_voltage); bStatus &= sdr_struct_copy(&sdr_ltc4151_12V_current); bStatus &= sdr_struct_copy(&sdr_wdg0); bStatus &= sdr_struct_copy(&sdr_ad7414_temp); bStatus &= end_marker_copy(eeprom_sdr_buffer_get()); if (bStatus == false) return false; if (eeprom_buffer_copy(eeprom_sdr_buffer_get()) == false) return false; return true; }