// Function Specification // // Name: dbug_centaur_dump // // Description: Injects an error // // End Function Specification void dbug_centaur_dump(const cmdh_fsp_cmd_t * i_cmd_ptr, cmdh_fsp_rsp_t * i_rsp_ptr) { /* TEMP -- NOT SUPPORTED (Don't have MemData structure anymore */ #if 0 uint16_t l_datalen = 0; uint8_t l_jj=0; // Determine the size of the data we are returning l_datalen = (sizeof(MemData) * MAX_NUM_CENTAURS); // Fill out the response with the data we are returning for(l_jj=0; l_jj < MAX_NUM_CENTAURS; l_jj++) { MemData * l_sensor_cache_ptr = cent_get_centaur_data_ptr(l_jj); memcpy((void *)&(i_rsp_ptr->data[l_jj*sizeof(MemData)]), (void *)l_sensor_cache_ptr, sizeof(MemData)); } // Fill out the rest of the response data i_rsp_ptr->data_length[0] = CONVERT_UINT16_UINT8_HIGH(l_datalen); i_rsp_ptr->data_length[1] = CONVERT_UINT16_UINT8_LOW(l_datalen); G_rsp_status = ERRL_RC_SUCCESS; #endif return; }
// Function Specification // // Name: amec_update_dimm_dts_sensors // // Description: Updates sensors that have data grabbed by the fast core data // task. // // Thread: RealTime Loop // // End Function Specification void amec_update_centaur_sensors(uint8_t i_centaur) { if(CENTAUR_PRESENT(i_centaur)) { MemData * l_sensor_cache = cent_get_centaur_data_ptr(i_centaur); if(CENTAUR_UPDATED(i_centaur)) { amec_update_dimm_dts_sensors(l_sensor_cache, i_centaur); amec_update_centaur_dts_sensors(l_sensor_cache, i_centaur); } amec_perfcount_getmc(l_sensor_cache, i_centaur); CLEAR_CENTAUR_UPDATED(i_centaur); } }