Commit c47c7c25 authored by Carlo Migoni's avatar Carlo Migoni
Browse files

Roach implementation 11 sept 2015

parent 0e29d6a3
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -121,6 +121,11 @@
 		  		for each section, given the feed, indicates which is the linked IF  
 		  	</xs:documentation></xs:annotation>
 		  </xs:element>
		  <xs:element name="bins" type="xs:long">
 		  	<xs:annotation><xs:documentation>
 		  		number of bins of the configuration backend
 		  	</xs:documentation></xs:annotation>
 		  </xs:element>
 		</xs:sequence>
 	</xs:complexType>
  
+1 −1
Original line number Diff line number Diff line
@@ -442,7 +442,7 @@ public:

	int getConfiguration(char* configuration);

	int getCommProtVersion(char* version);
	int getCommProtVersion(CORBA::String_out version);

protected:
	/**
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@

// some hard coded, hardware dependant constants
#define STARTFREQUENCY 50.0 // this is the start frequency of all IF inputs
#define BINSNUMBER 1
#define BINSNUMBER 1000
#define SAMPLETYPE float
#define SAMPLESIZE sizeof(SAMPLETYPE)  //

+1 −0
Original line number Diff line number Diff line
@@ -41,6 +41,7 @@ public:
		long ifs[MAX_SECTION_NUMBER];
		double bandWidth;
		double attenuation;
		long bins;
	} TBackendSetup;
	
	/**
+5 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@
#define PROT_TERMINATOR "\n"
#define PROT_SEPARATOR_CH ' '
#define PROT_SEPARATOR " "
#define PROT_SEPARATOR_COMMA ','

#define PROT_GET_CONF "?"
#define PROT_SET_CONF_BROAD "I"
@@ -183,6 +184,10 @@ public:
	 */
	static bool decodeBackendTime(const char *rBuff,bool& res);

	static bool status(char *rBuff,double &timestamp, char *statusCode, bool &acquiring);

	static bool setConfiguration(const char *rBuff);
	
	/**
	 * Decodes the answer of the backend after it has been commanded a check time operations. 
	 * @param rBuff buffer that contains the backend answer
Loading