included a febl and febr temp read

This commit is contained in:
Dhanya Maliakal
2016-10-07 15:44:13 +02:00
parent 5082435501
commit 28f96f4b51
9 changed files with 61 additions and 4 deletions

View File

@ -1968,3 +1968,22 @@ int Feb_Control_PrintCorrectedValues(){
return 1;
}
int Feb_Control_GetLeftFPGATemp(){
int temperature=0;
Feb_Interface_ReadRegister(Module_GetTopLeftAddress (&modules[1]),FEB_REG_STATUS, &temperature);
temperature >> 16;
//division done in client to send int over network
return temperature;
}
int Feb_Control_GetRightFPGATemp(){
int temperature=0;
Feb_Interface_ReadRegister(Module_GetTopRightAddress (&modules[1]),FEB_REG_STATUS, &temperature);
temperature >> 16;
//division done in client to send int over network
return temperature;
}