// ============================================================================ // EEPROM data copy source file // ---------------------------- // // Automatically generated file, do not edit // Created by hubuser - Thu 17 Oct 2019 10:54:20 AM EDT // // 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_wdg0); bStatus &= sdr_struct_copy(&sdr_iq65033_temp); bStatus &= sdr_struct_copy(&sdr_iq60533_48V_current); bStatus &= sdr_struct_copy(&sdr_iq65033_48V_B_voltage); 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; }