Loading Medicina/Servers/MedicinaCBand/include/ReceiverControlCBand.h +7 −5 Original line number Diff line number Diff line Loading @@ -8,7 +8,9 @@ * @details We need to extend some functionalities as C Hi/LOW receiver selection * */ class ReceiverControlCBand : public IRA::Receviercontrol { class ReceiverControlCBand : public IRA::RecevierControl { public: Loading Loading @@ -50,7 +52,7 @@ public: const BYTE switch_madd=0x7C, // Switch board master address const BYTE switch_sadd=0x7F, // Switch board slave address - We use broadcast address bool reliable_comm=false ) throw (ReceiverControlEx); ) throw (IRA::ReceiverControlEx); /** * @brief Destroy the Receiver Control object Loading @@ -71,7 +73,7 @@ public: const BYTE port_type=MCB_PORT_TYPE_DIO, const BYTE port_number=MCB_PORT_NUMBER_01, const BYTE value=0x01 ) throw (ReceiverControlEx); ) throw (IRA::ReceiverControlEx); /** Set LOW C Receiver * @param data_type the type of the data; the default type is 1 bit Loading @@ -85,7 +87,7 @@ public: const BYTE port_type=MCB_PORT_TYPE_DIO, const BYTE port_number=MCB_PORT_NUMBER_01, const BYTE value=0x00 ) throw (ReceiverControlEx); ) throw (IRA::ReceiverControlEx); private: Loading Medicina/Servers/MedicinaCBand/src/ReceiverControlCBand.cpp +8 −8 Original line number Diff line number Diff line Loading @@ -16,8 +16,8 @@ ReceiverControlCBand::ReceiverControlCBand( const BYTE switch_madd, const BYTE switch_sadd, bool reliable_comm) throw (ReceiverControlEx) : IRA::ReceiverControl(dewar_ip, dewar_port throw (IRA::ReceiverControlEx) : IRA::ReceiverControl(dewar_ip, dewar_port, lna_ip, lna_port, guard_time, number_of_feeds, Loading @@ -36,7 +36,7 @@ void ReceiverControlCBand::setReceiverHigh( const BYTE port_type, const BYTE port_number, const BYTE value ) throw (ReceiverControlEx) ) throw (IRA::ReceiverControlEx) { try { makeRequest( Loading @@ -49,9 +49,9 @@ void ReceiverControlCBand::setReceiverHigh( value ); } catch(MicroControllerBoardEx& ex) { catch(IRA::MicroControllerBoardEx& ex) { std::string error_msg = "ReceiverControl: error performing setReceiverHigh.\n"; throw ReceiverControlEx(error_msg + ex.what()); throw IRA::ReceiverControlEx(error_msg + ex.what()); } } Loading @@ -60,7 +60,7 @@ void ReceiverControlCBand::setReceiverLow( const BYTE port_type, const BYTE port_number, const BYTE value ) throw (ReceiverControlEx) ) throw (IRA::ReceiverControlEx) { try { makeRequest( Loading @@ -73,8 +73,8 @@ void ReceiverControlCBand::setReceiverLow( value ); } catch(MicroControllerBoardEx& ex) { catch(IRA::MicroControllerBoardEx& ex) { std::string error_msg = "ReceiverControl: error performing setReceiverHigh.\n"; throw ReceiverControlEx(error_msg + ex.what()); throw IRA::ReceiverControlEx(error_msg + ex.what()); } } No newline at end of file Loading
Medicina/Servers/MedicinaCBand/include/ReceiverControlCBand.h +7 −5 Original line number Diff line number Diff line Loading @@ -8,7 +8,9 @@ * @details We need to extend some functionalities as C Hi/LOW receiver selection * */ class ReceiverControlCBand : public IRA::Receviercontrol { class ReceiverControlCBand : public IRA::RecevierControl { public: Loading Loading @@ -50,7 +52,7 @@ public: const BYTE switch_madd=0x7C, // Switch board master address const BYTE switch_sadd=0x7F, // Switch board slave address - We use broadcast address bool reliable_comm=false ) throw (ReceiverControlEx); ) throw (IRA::ReceiverControlEx); /** * @brief Destroy the Receiver Control object Loading @@ -71,7 +73,7 @@ public: const BYTE port_type=MCB_PORT_TYPE_DIO, const BYTE port_number=MCB_PORT_NUMBER_01, const BYTE value=0x01 ) throw (ReceiverControlEx); ) throw (IRA::ReceiverControlEx); /** Set LOW C Receiver * @param data_type the type of the data; the default type is 1 bit Loading @@ -85,7 +87,7 @@ public: const BYTE port_type=MCB_PORT_TYPE_DIO, const BYTE port_number=MCB_PORT_NUMBER_01, const BYTE value=0x00 ) throw (ReceiverControlEx); ) throw (IRA::ReceiverControlEx); private: Loading
Medicina/Servers/MedicinaCBand/src/ReceiverControlCBand.cpp +8 −8 Original line number Diff line number Diff line Loading @@ -16,8 +16,8 @@ ReceiverControlCBand::ReceiverControlCBand( const BYTE switch_madd, const BYTE switch_sadd, bool reliable_comm) throw (ReceiverControlEx) : IRA::ReceiverControl(dewar_ip, dewar_port throw (IRA::ReceiverControlEx) : IRA::ReceiverControl(dewar_ip, dewar_port, lna_ip, lna_port, guard_time, number_of_feeds, Loading @@ -36,7 +36,7 @@ void ReceiverControlCBand::setReceiverHigh( const BYTE port_type, const BYTE port_number, const BYTE value ) throw (ReceiverControlEx) ) throw (IRA::ReceiverControlEx) { try { makeRequest( Loading @@ -49,9 +49,9 @@ void ReceiverControlCBand::setReceiverHigh( value ); } catch(MicroControllerBoardEx& ex) { catch(IRA::MicroControllerBoardEx& ex) { std::string error_msg = "ReceiverControl: error performing setReceiverHigh.\n"; throw ReceiverControlEx(error_msg + ex.what()); throw IRA::ReceiverControlEx(error_msg + ex.what()); } } Loading @@ -60,7 +60,7 @@ void ReceiverControlCBand::setReceiverLow( const BYTE port_type, const BYTE port_number, const BYTE value ) throw (ReceiverControlEx) ) throw (IRA::ReceiverControlEx) { try { makeRequest( Loading @@ -73,8 +73,8 @@ void ReceiverControlCBand::setReceiverLow( value ); } catch(MicroControllerBoardEx& ex) { catch(IRA::MicroControllerBoardEx& ex) { std::string error_msg = "ReceiverControl: error performing setReceiverHigh.\n"; throw ReceiverControlEx(error_msg + ex.what()); throw IRA::ReceiverControlEx(error_msg + ex.what()); } } No newline at end of file