Loading SRT/CDB/MACI/Components/BACKENDS/SRTDBESM/SRTDBESM.xml 0 → 100644 +19 −0 Original line number Diff line number Diff line <?xml version='1.0' encoding='ISO-8859-1'?> <!-- - History: - --> <Component xmlns="urn:schemas-cosylab-com:Component:1.0" xmlns:baci="urn:schemas-cosylab-com:BACI:1.0" xmlns:cdb="urn:schemas-cosylab-com:CDB:1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Name="SRTDBESM" Code="SRTDBESMImpl" Type="IDL:alma/Backends/SRTDBESM:1.0" Container="SRTDBESMContainer" KeepAliveTime="10" Default="false" ImplLang="cpp" /> SRT/CDB/MACI/Containers/SRTDBESMContainer/SRTDBESMContainer.xml 0 → 100644 +33 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <!-- - History: --> <Container xmlns="urn:schemas-cosylab-com:Container:1.0" xmlns:cdb="urn:schemas-cosylab-com:CDB:1.0" xmlns:baci="urn:schemas-cosylab-com:BACI:1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:log="urn:schemas-cosylab-com:LoggingConfig:1.0" Timeout="30.0" UseIFR="true" ManagerRetry="10" ImplLang="cpp" Recovery="false"> <Autoload> <cdb:_ string="baci" /> </Autoload> <LoggingConfig centralizedLogger="Log" minLogLevel="5" minLogLevelLocal="5" dispatchPacketSize="0" immediateDispatchLevel="8" flushPeriodSeconds="1" > </LoggingConfig> </Container> SRT/CDB/alma/BACKENDS/SRTDBESM/SRTDBESM.xml 0 → 100644 +37 −0 Original line number Diff line number Diff line <?xml version='1.0' encoding='ISO-8859-1'?> <SRTDBESM xmlns="urn:schemas-cosylab-com:SRT_DBESM:1.0" xmlns:baci="urn:schemas-cosylab-com:BACI:1.0" xmlns:cdb="urn:schemas-cosylab-com:CDB:1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" DBESM_IPAddress="192.168.60.107" DBESM_Port="5002"> <addr_1>15</addr_1> <addr_2>14</addr_2> <addr_3>13</addr_3> <addr_4>12</addr_4> <regs_1 description="values of the 5 double port registers on board 1" /> <regs_2 description="values of the 5 double port registers on board 2" /> <regs_3 description="values of the 5 double port registers on board 3" /> <regs_4 description="values of the 5 double port registers on board 4" /> <atts_1 description="values of the 16 attenuators on board 1" /> <atts_2 description="values of the 16 attenuators on board 2" /> <atts_3 description="values of the 16 attenuators on board 3" /> <atts_4 description="values of the 16 attenuators on board 4" /> <amps_1 description="values of the 10 amplifiers on board 1" /> <amps_2 description="values of the 10 amplifiers on board 2" /> <amps_3 description="values of the 10 amplifiers on board 3" /> <amps_4 description="values of the 10 amplifiers on board 4" /> <eqs_1 description="values of the 10 equalizers on board 1" /> <eqs_2 description="values of the 10 equalizers on board 2" /> <eqs_3 description="values of the 10 equalizers on board 3" /> <eqs_4 description="values of the 10 equalizers on board 4" /> <bpfs_1 description="values of the 11 band-pass filters on board 1" /> <bpfs_2 description="values of the 11 band-pass filters on board 2" /> <bpfs_3 description="values of the 11 band-pass filters on board 3" /> <bpfs_4 description="values of the 11 band-pass filters on board 4" /> <volts_1 description="values of the 5V and 3V3 voltages on board 1" /> <volts_2 description="values of the 5V and 3V3 voltages on board 2" /> <volts_3 description="values of the 5V and 3V3 voltages on board 3" /> <volts_4 description="values of the 5V and 3V3 voltages on board 4" /> <temps_1 description="temperature on board 1" /> <temps_2 description="temperature on board 2" /> <temps_3 description="temperature on board 3" /> <temps_4 description="temperature on board 4" /> </SRTDBESM> SRT/Interfaces/SRTDBESMInterface/config/CDB/schemas/SRTDBESM.xsd 0 → 100644 +59 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="ISO-8859-1"?> <!-- - History: --> <xs:schema targetNamespace="urn:schemas-cosylab-com:SRT_DBESM:1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="urn:schemas-cosylab-com:SRT_DBESM:1.0" xmlns:cdb="urn:schemas-cosylab-com:CDB:1.0" xmlns:baci="urn:schemas-cosylab-com:BACI:1.0" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:import namespace="urn:schemas-cosylab-com:CDB:1.0" schemaLocation="CDB.xsd"/> <xs:import namespace="urn:schemas-cosylab-com:BACI:1.0" schemaLocation="BACI.xsd"/> <xs:complexType name="SRTDBESMType"> <xs:complexContent> <xs:extension base="baci:CharacteristicComponent"> <xs:sequence> <xs:element name="addr_1" type="xs:short" /> <xs:element name="addr_2" type="xs:short" /> <xs:element name="addr_3" type="xs:short" /> <xs:element name="addr_4" type="xs:short" /> <xs:element name="regs_1" type="baci:ROuLongSeq" /> <xs:element name="regs_2" type="baci:ROuLongSeq" /> <xs:element name="regs_3" type="baci:ROuLongSeq" /> <xs:element name="regs_4" type="baci:ROuLongSeq" /> <xs:element name="atts_1" type="baci:ROdoubleSeq" /> <xs:element name="atts_2" type="baci:ROdoubleSeq" /> <xs:element name="atts_3" type="baci:ROdoubleSeq" /> <xs:element name="atts_4" type="baci:ROdoubleSeq" /> <xs:element name="amps_1" type="baci:ROuLongSeq" /> <xs:element name="amps_2" type="baci:ROuLongSeq" /> <xs:element name="amps_3" type="baci:ROuLongSeq" /> <xs:element name="amps_4" type="baci:ROuLongSeq" /> <xs:element name="eqs_1" type="baci:ROuLongSeq" /> <xs:element name="eqs_2" type="baci:ROuLongSeq" /> <xs:element name="eqs_3" type="baci:ROuLongSeq" /> <xs:element name="eqs_4" type="baci:ROuLongSeq" /> <xs:element name="bpfs_1" type="baci:ROuLongSeq" /> <xs:element name="bpfs_2" type="baci:ROuLongSeq" /> <xs:element name="bpfs_3" type="baci:ROuLongSeq" /> <xs:element name="bpfs_4" type="baci:ROuLongSeq" /> <xs:element name="volts_1" type="baci:ROdoubleSeq" /> <xs:element name="volts_2" type="baci:ROdoubleSeq" /> <xs:element name="volts_3" type="baci:ROdoubleSeq" /> <xs:element name="volts_4" type="baci:ROdoubleSeq" /> <xs:element name="temps_1" type="baci:ROdoubleSeq" /> <xs:element name="temps_2" type="baci:ROdoubleSeq" /> <xs:element name="temps_3" type="baci:ROdoubleSeq" /> <xs:element name="temps_4" type="baci:ROdoubleSeq" /> </xs:sequence> <xs:attribute name="DBESM_IPAddress" type="xs:string" use="required"/> <xs:attribute name="DBESM_Port" type="xs:unsignedInt" use="required"/> </xs:extension> </xs:complexContent> </xs:complexType> <xs:element name="SRTDBESM" type="SRTDBESMType"/> </xs:schema> SRT/Interfaces/SRTDBESMInterface/idl/SRTDBESM.idl 0 → 100644 +183 −0 Original line number Diff line number Diff line #ifndef __SRTDBESM_IDL__ #define __SRTDBESM_IDL__ #include <baci.idl> #include "GenericBackend.idl" #include <ComponentErrors.idl> #pragma prefix "alma" /** * SRT DBESM component. * @author <a href=mailto:matteo.fiorentini@inaf.it>Matteo Fiorentini</a> */ module Backends { /** <h2>DBE Switch Matrix Interface </h2> @ */ interface SRTDBESM: ACS::CharacteristicComponent { /** DBESM boards addresses and components values */ attribute short addr_1, addr_2, addr_3, addr_4; attribute ACS::ROuLongSeq regs_1, regs_2, regs_3, regs_4; attribute ACS::ROdoubleSeq atts_1, atts_2, atts_3, atts_4; attribute ACS::ROuLongSeq amps_1, amps_2, amps_3, amps_4; attribute ACS::ROuLongSeq eqs_1, eqs_2, eqs_3, eqs_4; attribute ACS::ROuLongSeq bpfs_1, bpfs_2, bpfs_3, bpfs_4; attribute ACS::ROdoubleSeq volts_1, volts_2, volts_3, volts_4; attribute ACS::ROdoubleSeq temps_1, temps_2, temps_3, temps_4; /** set whole DBESM configuration * @throw ReceiversErrors::ReceiversErrorsEx * @throw CORBA::SystemExcpetion */ void set_all(in string cfg_name) raises (BackendsErrors::BackendsErrorsEx); /** set single DBESM board configuration */ void set_mode(in short b_addr, in string cfg_name) raises (BackendsErrors::BackendsErrorsEx); /** set a single DBESM attenuator based on which output to attenuate */ void set_att(in short b_addr, in short out_ch, in double att_val) raises (BackendsErrors::BackendsErrorsEx); /** store whole DBESM configuration */ void store_allmode(in string cfg_name) raises (BackendsErrors::BackendsErrorsEx); /** delete DBESM configuration */ void clr_mode(in string cfg_name) raises (BackendsErrors::BackendsErrorsEx); /** set the DBESM amplifliers void set_amp(in short b_addr, in short amp_ch, in double amp_val) raises (BackendsErrors::BackendsErrorsEx); set the DBESM equalizers void set_eq(in short b_addr, in short eq_ch, in double eq_val) raises (BackendsErrors::BackendsErrorsEx); set the DBESM band-pass filters void set_bpf(in short b_addr, in short bpf_ch, in double bpf_val) raises (BackendsErrors::BackendsErrorsEx); */ /** get DBESM registers values * @throw ReceiversErrors::ReceiversErrorsEx * @throw CORBA::SystemExcpetion */ ACS::uLongSeq get_reg_val(in short b_addr, in short reg_val) raises (BackendsErrors::BackendsErrorsEx); /** get single DBESM board attenuators values */ ACS::doubleSeq get_att(in short b_addr) raises (BackendsErrors::BackendsErrorsEx); /** get single DBESM board amps values */ ACS::uLongSeq get_amp(in short b_addr) raises (BackendsErrors::BackendsErrorsEx); /** get single DBESM board eqs values */ ACS::uLongSeq get_eq(in short b_addr) raises (BackendsErrors::BackendsErrorsEx); /** get single DBESM board bpfs values */ ACS::uLongSeq get_bpf(in short b_addr) raises (BackendsErrors::BackendsErrorsEx); /** get single DBESM board voltages */ ACS::doubleSeq get_voltage(in short b_addr) raises (BackendsErrors::BackendsErrorsEx); /** get single DBESM board temperature */ ACS::doubleSeq get_temp(in short b_addr) raises (BackendsErrors::BackendsErrorsEx); /** get single DBESM board status: registers and attenuators values */ string get_status(in short b_addr) raises (BackendsErrors::BackendsErrorsEx); /** get single DBESM board amps, eqs and bpfs values */ string get_comp(in short b_addr) raises (BackendsErrors::BackendsErrorsEx); /** get single DBESM board voltages and temperatures */ string get_diag(in short b_addr) raises (BackendsErrors::BackendsErrorsEx); /** get whole DBESM voltages and temperatures */ string get_diag_all() raises (BackendsErrors::BackendsErrorsEx); }; }; #endif Loading
SRT/CDB/MACI/Components/BACKENDS/SRTDBESM/SRTDBESM.xml 0 → 100644 +19 −0 Original line number Diff line number Diff line <?xml version='1.0' encoding='ISO-8859-1'?> <!-- - History: - --> <Component xmlns="urn:schemas-cosylab-com:Component:1.0" xmlns:baci="urn:schemas-cosylab-com:BACI:1.0" xmlns:cdb="urn:schemas-cosylab-com:CDB:1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Name="SRTDBESM" Code="SRTDBESMImpl" Type="IDL:alma/Backends/SRTDBESM:1.0" Container="SRTDBESMContainer" KeepAliveTime="10" Default="false" ImplLang="cpp" />
SRT/CDB/MACI/Containers/SRTDBESMContainer/SRTDBESMContainer.xml 0 → 100644 +33 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <!-- - History: --> <Container xmlns="urn:schemas-cosylab-com:Container:1.0" xmlns:cdb="urn:schemas-cosylab-com:CDB:1.0" xmlns:baci="urn:schemas-cosylab-com:BACI:1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:log="urn:schemas-cosylab-com:LoggingConfig:1.0" Timeout="30.0" UseIFR="true" ManagerRetry="10" ImplLang="cpp" Recovery="false"> <Autoload> <cdb:_ string="baci" /> </Autoload> <LoggingConfig centralizedLogger="Log" minLogLevel="5" minLogLevelLocal="5" dispatchPacketSize="0" immediateDispatchLevel="8" flushPeriodSeconds="1" > </LoggingConfig> </Container>
SRT/CDB/alma/BACKENDS/SRTDBESM/SRTDBESM.xml 0 → 100644 +37 −0 Original line number Diff line number Diff line <?xml version='1.0' encoding='ISO-8859-1'?> <SRTDBESM xmlns="urn:schemas-cosylab-com:SRT_DBESM:1.0" xmlns:baci="urn:schemas-cosylab-com:BACI:1.0" xmlns:cdb="urn:schemas-cosylab-com:CDB:1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" DBESM_IPAddress="192.168.60.107" DBESM_Port="5002"> <addr_1>15</addr_1> <addr_2>14</addr_2> <addr_3>13</addr_3> <addr_4>12</addr_4> <regs_1 description="values of the 5 double port registers on board 1" /> <regs_2 description="values of the 5 double port registers on board 2" /> <regs_3 description="values of the 5 double port registers on board 3" /> <regs_4 description="values of the 5 double port registers on board 4" /> <atts_1 description="values of the 16 attenuators on board 1" /> <atts_2 description="values of the 16 attenuators on board 2" /> <atts_3 description="values of the 16 attenuators on board 3" /> <atts_4 description="values of the 16 attenuators on board 4" /> <amps_1 description="values of the 10 amplifiers on board 1" /> <amps_2 description="values of the 10 amplifiers on board 2" /> <amps_3 description="values of the 10 amplifiers on board 3" /> <amps_4 description="values of the 10 amplifiers on board 4" /> <eqs_1 description="values of the 10 equalizers on board 1" /> <eqs_2 description="values of the 10 equalizers on board 2" /> <eqs_3 description="values of the 10 equalizers on board 3" /> <eqs_4 description="values of the 10 equalizers on board 4" /> <bpfs_1 description="values of the 11 band-pass filters on board 1" /> <bpfs_2 description="values of the 11 band-pass filters on board 2" /> <bpfs_3 description="values of the 11 band-pass filters on board 3" /> <bpfs_4 description="values of the 11 band-pass filters on board 4" /> <volts_1 description="values of the 5V and 3V3 voltages on board 1" /> <volts_2 description="values of the 5V and 3V3 voltages on board 2" /> <volts_3 description="values of the 5V and 3V3 voltages on board 3" /> <volts_4 description="values of the 5V and 3V3 voltages on board 4" /> <temps_1 description="temperature on board 1" /> <temps_2 description="temperature on board 2" /> <temps_3 description="temperature on board 3" /> <temps_4 description="temperature on board 4" /> </SRTDBESM>
SRT/Interfaces/SRTDBESMInterface/config/CDB/schemas/SRTDBESM.xsd 0 → 100644 +59 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="ISO-8859-1"?> <!-- - History: --> <xs:schema targetNamespace="urn:schemas-cosylab-com:SRT_DBESM:1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="urn:schemas-cosylab-com:SRT_DBESM:1.0" xmlns:cdb="urn:schemas-cosylab-com:CDB:1.0" xmlns:baci="urn:schemas-cosylab-com:BACI:1.0" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:import namespace="urn:schemas-cosylab-com:CDB:1.0" schemaLocation="CDB.xsd"/> <xs:import namespace="urn:schemas-cosylab-com:BACI:1.0" schemaLocation="BACI.xsd"/> <xs:complexType name="SRTDBESMType"> <xs:complexContent> <xs:extension base="baci:CharacteristicComponent"> <xs:sequence> <xs:element name="addr_1" type="xs:short" /> <xs:element name="addr_2" type="xs:short" /> <xs:element name="addr_3" type="xs:short" /> <xs:element name="addr_4" type="xs:short" /> <xs:element name="regs_1" type="baci:ROuLongSeq" /> <xs:element name="regs_2" type="baci:ROuLongSeq" /> <xs:element name="regs_3" type="baci:ROuLongSeq" /> <xs:element name="regs_4" type="baci:ROuLongSeq" /> <xs:element name="atts_1" type="baci:ROdoubleSeq" /> <xs:element name="atts_2" type="baci:ROdoubleSeq" /> <xs:element name="atts_3" type="baci:ROdoubleSeq" /> <xs:element name="atts_4" type="baci:ROdoubleSeq" /> <xs:element name="amps_1" type="baci:ROuLongSeq" /> <xs:element name="amps_2" type="baci:ROuLongSeq" /> <xs:element name="amps_3" type="baci:ROuLongSeq" /> <xs:element name="amps_4" type="baci:ROuLongSeq" /> <xs:element name="eqs_1" type="baci:ROuLongSeq" /> <xs:element name="eqs_2" type="baci:ROuLongSeq" /> <xs:element name="eqs_3" type="baci:ROuLongSeq" /> <xs:element name="eqs_4" type="baci:ROuLongSeq" /> <xs:element name="bpfs_1" type="baci:ROuLongSeq" /> <xs:element name="bpfs_2" type="baci:ROuLongSeq" /> <xs:element name="bpfs_3" type="baci:ROuLongSeq" /> <xs:element name="bpfs_4" type="baci:ROuLongSeq" /> <xs:element name="volts_1" type="baci:ROdoubleSeq" /> <xs:element name="volts_2" type="baci:ROdoubleSeq" /> <xs:element name="volts_3" type="baci:ROdoubleSeq" /> <xs:element name="volts_4" type="baci:ROdoubleSeq" /> <xs:element name="temps_1" type="baci:ROdoubleSeq" /> <xs:element name="temps_2" type="baci:ROdoubleSeq" /> <xs:element name="temps_3" type="baci:ROdoubleSeq" /> <xs:element name="temps_4" type="baci:ROdoubleSeq" /> </xs:sequence> <xs:attribute name="DBESM_IPAddress" type="xs:string" use="required"/> <xs:attribute name="DBESM_Port" type="xs:unsignedInt" use="required"/> </xs:extension> </xs:complexContent> </xs:complexType> <xs:element name="SRTDBESM" type="SRTDBESMType"/> </xs:schema>
SRT/Interfaces/SRTDBESMInterface/idl/SRTDBESM.idl 0 → 100644 +183 −0 Original line number Diff line number Diff line #ifndef __SRTDBESM_IDL__ #define __SRTDBESM_IDL__ #include <baci.idl> #include "GenericBackend.idl" #include <ComponentErrors.idl> #pragma prefix "alma" /** * SRT DBESM component. * @author <a href=mailto:matteo.fiorentini@inaf.it>Matteo Fiorentini</a> */ module Backends { /** <h2>DBE Switch Matrix Interface </h2> @ */ interface SRTDBESM: ACS::CharacteristicComponent { /** DBESM boards addresses and components values */ attribute short addr_1, addr_2, addr_3, addr_4; attribute ACS::ROuLongSeq regs_1, regs_2, regs_3, regs_4; attribute ACS::ROdoubleSeq atts_1, atts_2, atts_3, atts_4; attribute ACS::ROuLongSeq amps_1, amps_2, amps_3, amps_4; attribute ACS::ROuLongSeq eqs_1, eqs_2, eqs_3, eqs_4; attribute ACS::ROuLongSeq bpfs_1, bpfs_2, bpfs_3, bpfs_4; attribute ACS::ROdoubleSeq volts_1, volts_2, volts_3, volts_4; attribute ACS::ROdoubleSeq temps_1, temps_2, temps_3, temps_4; /** set whole DBESM configuration * @throw ReceiversErrors::ReceiversErrorsEx * @throw CORBA::SystemExcpetion */ void set_all(in string cfg_name) raises (BackendsErrors::BackendsErrorsEx); /** set single DBESM board configuration */ void set_mode(in short b_addr, in string cfg_name) raises (BackendsErrors::BackendsErrorsEx); /** set a single DBESM attenuator based on which output to attenuate */ void set_att(in short b_addr, in short out_ch, in double att_val) raises (BackendsErrors::BackendsErrorsEx); /** store whole DBESM configuration */ void store_allmode(in string cfg_name) raises (BackendsErrors::BackendsErrorsEx); /** delete DBESM configuration */ void clr_mode(in string cfg_name) raises (BackendsErrors::BackendsErrorsEx); /** set the DBESM amplifliers void set_amp(in short b_addr, in short amp_ch, in double amp_val) raises (BackendsErrors::BackendsErrorsEx); set the DBESM equalizers void set_eq(in short b_addr, in short eq_ch, in double eq_val) raises (BackendsErrors::BackendsErrorsEx); set the DBESM band-pass filters void set_bpf(in short b_addr, in short bpf_ch, in double bpf_val) raises (BackendsErrors::BackendsErrorsEx); */ /** get DBESM registers values * @throw ReceiversErrors::ReceiversErrorsEx * @throw CORBA::SystemExcpetion */ ACS::uLongSeq get_reg_val(in short b_addr, in short reg_val) raises (BackendsErrors::BackendsErrorsEx); /** get single DBESM board attenuators values */ ACS::doubleSeq get_att(in short b_addr) raises (BackendsErrors::BackendsErrorsEx); /** get single DBESM board amps values */ ACS::uLongSeq get_amp(in short b_addr) raises (BackendsErrors::BackendsErrorsEx); /** get single DBESM board eqs values */ ACS::uLongSeq get_eq(in short b_addr) raises (BackendsErrors::BackendsErrorsEx); /** get single DBESM board bpfs values */ ACS::uLongSeq get_bpf(in short b_addr) raises (BackendsErrors::BackendsErrorsEx); /** get single DBESM board voltages */ ACS::doubleSeq get_voltage(in short b_addr) raises (BackendsErrors::BackendsErrorsEx); /** get single DBESM board temperature */ ACS::doubleSeq get_temp(in short b_addr) raises (BackendsErrors::BackendsErrorsEx); /** get single DBESM board status: registers and attenuators values */ string get_status(in short b_addr) raises (BackendsErrors::BackendsErrorsEx); /** get single DBESM board amps, eqs and bpfs values */ string get_comp(in short b_addr) raises (BackendsErrors::BackendsErrorsEx); /** get single DBESM board voltages and temperatures */ string get_diag(in short b_addr) raises (BackendsErrors::BackendsErrorsEx); /** get whole DBESM voltages and temperatures */ string get_diag_all() raises (BackendsErrors::BackendsErrorsEx); }; }; #endif