Skip to content

Commit

Permalink
Add hooks for defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
mroda88 committed Nov 22, 2024
1 parent 548c5a4 commit 72ab613
Showing 1 changed file with 38 additions and 36 deletions.
74 changes: 38 additions & 36 deletions schema/appmodel/PDS.schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,35 +80,14 @@

<oks-schema>

<info name="" type="" num-of-items="9" oks-format="schema" oks-version="862f2957270" created-by="mroda" created-on="theta.ph.liv.ac.uk" creation-time="20241011T123346" last-modified-by="maroda" last-modified-on="np04-srv-015.cern.ch" last-modification-time="20241121T141004"/>
<info name="" type="" num-of-items="9" oks-format="schema" oks-version="862f2957270" created-by="mroda" created-on="theta.ph.liv.ac.uk" creation-time="20241011T123346" last-modified-by="maroda" last-modified-on="np04-srv-015.cern.ch" last-modification-time="20241122T113846"/>

<include>
<file path="schema/confmodel/dunedaq.schema.xml"/>
<file path="schema/appmodel/application.schema.xml"/>
</include>


<class name="AFEConf">
<attribute name="id" description="id in the [0,5) range" type="u8" range="0..4" is-not-null="yes"/>
<attribute name="v_gain" type="u16" range="0..4096" is-not-null="yes"/>
<attribute name="v_bias" description="Value for V gain of the AFE, 12 bit register" type="u16" range="0..1500" is-not-null="yes"/>
<relationship name="adc" class-type="DaphneV2ADC" low-cc="one" high-cc="one" is-composite="yes" is-exclusive="yes" is-dependent="yes"/>
<relationship name="pga" class-type="DaphneV2PGA" low-cc="one" high-cc="one" is-composite="yes" is-exclusive="yes" is-dependent="yes"/>
<relationship name="lna" class-type="DaphneV2LNA" low-cc="one" high-cc="one" is-composite="yes" is-exclusive="yes" is-dependent="yes"/>
</class>

<class name="DaphneV2PGA">
<attribute name="lpf_cut_frequency" description="cut frequency, only 4 values acceptable. 0=15MHz, 2=20MHz, 3=30MHz, 4=10MHz" type="u8" range="0..4" init-value="0" is-not-null="yes"/>
<attribute name="integrator_disable" type="bool" init-value="true" is-not-null="yes"/>
<attribute name="gain" description="rue=30 dB, false=24 dB" type="bool" init-value="false" is-not-null="yes"/>
</class>

<class name="DaphneV2ADC">
<attribute name="low_resolution" description="true=12bit, false=14bit" type="bool" init-value="false" is-not-null="yes"/>
<attribute name="output_offset_binary" description="true=Offset Binary, false=2s complement" type="bool" init-value="true" is-not-null="yes"/>
<attribute name="MSB_first" description="Which Significant bit comes first, true=MSB, false=LSB" type="bool" init-value="true" is-not-null="yes"/>
</class>

<class name="DaphneApplication">
<superclass name="SmartDaqApplication"/>
<superclass name="ResourceSetAND"/>
Expand All @@ -118,20 +97,6 @@
</method>
</class>

<class name="DaphneV2BoardConf" description="Top entry for the configuraiton of a single daphne board">
<attribute name="bias_ctrl" description="V bias control" type="u16" range="0..4095" is-not-null="yes"/>
<attribute name="self_trigger_threshold" description="Configuration for full stream case. If it is 0, the channels will go in full stream. In that case, which channels will be set via the &quot;full_stream_channels&quot; list." type="u64" range="0..16383" is-not-null="yes"/>
<attribute name="full_stream_channels" description="list of channels to be used in full stream" type="u8" range="0..39" is-multi-value="yes" is-not-null="yes"/>
<relationship name="channels" class-type="DaphneV2Channel" low-cc="many" high-cc="many" is-composite="yes" is-exclusive="yes" is-dependent="yes"/>
<relationship name="afes" class-type="AFEConf" low-cc="many" high-cc="many" is-composite="yes" is-exclusive="yes" is-dependent="yes"/>
</class>

<class name="DaphneV2Channel">
<attribute name="gain" description="gain" type="u8" range="0..2" init-value="0" is-not-null="yes"/>
<attribute name="offset" description="Pedestal for the channel" type="u16" range="0..2700" init-value="0" is-not-null="yes"/>
<attribute name="trim" description="trim value for the channel" type="u16" range="0..4095" init-value="0" is-not-null="yes"/>
</class>

<class name="DaphneConf" description="Top entry for the configuraiton of a single daphne board">
<attribute name="timeout_ms" description="timeout used for the board operations" type="u16" range="1..60000" init-value="1000" is-not-null="yes"/>
<attribute name="configuration_file" type="string" is-not-null="yes"/>
Expand All @@ -150,6 +115,37 @@
</method>
</class>

<class name="DaphneV2ADC">
<attribute name="low_resolution" description="true=12bit, false=14bit" type="bool" init-value="false" is-not-null="yes"/>
<attribute name="output_offset_binary" description="true=Offset Binary, false=2s complement" type="bool" init-value="true" is-not-null="yes"/>
<attribute name="MSB_first" description="Which Significant bit comes first, true=MSB, false=LSB" type="bool" init-value="true" is-not-null="yes"/>
</class>

<class name="DaphneV2AFE">
<attribute name="id" description="id in the [0,5) range" type="u8" range="0..4" is-not-null="yes"/>
<attribute name="v_gain" type="u16" range="0..4096" is-not-null="yes"/>
<attribute name="v_bias" description="Value for V gain of the AFE, 12 bit register" type="u16" range="0..1500" is-not-null="yes"/>
<relationship name="adc" class-type="DaphneV2ADC" low-cc="one" high-cc="one" is-composite="yes" is-exclusive="yes" is-dependent="yes"/>
<relationship name="pga" class-type="DaphneV2PGA" low-cc="one" high-cc="one" is-composite="yes" is-exclusive="yes" is-dependent="yes"/>
<relationship name="lna" class-type="DaphneV2LNA" low-cc="one" high-cc="one" is-composite="yes" is-exclusive="yes" is-dependent="yes"/>
</class>

<class name="DaphneV2BoardConf" description="Top entry for the configuraiton of a single daphne board">
<attribute name="bias_ctrl" description="V bias control" type="u16" range="0..4095" is-not-null="yes"/>
<attribute name="self_trigger_threshold" description="Configuration for full stream case. If it is 0, the channels will go in full stream. In that case, which channels will be set via the &quot;full_stream_channels&quot; list." type="u64" range="0..16383" is-not-null="yes"/>
<attribute name="full_stream_channels" description="list of channels to be used in full stream" type="u8" range="0..39" is-multi-value="yes" is-not-null="yes"/>
<relationship name="active_channels" class-type="DaphneV2Channel" low-cc="zero" high-cc="many" is-composite="no" is-exclusive="no" is-dependent="no"/>
<relationship name="active_afes" class-type="DaphneV2AFE" low-cc="zero" high-cc="many" is-composite="no" is-exclusive="no" is-dependent="no"/>
<relationship name="default_channel" class-type="DaphneV2Channel" low-cc="one" high-cc="one" is-composite="no" is-exclusive="no" is-dependent="no"/>
<relationship name="default_afe" class-type="DaphneV2AFE" low-cc="one" high-cc="one" is-composite="no" is-exclusive="no" is-dependent="no"/>
</class>

<class name="DaphneV2Channel">
<attribute name="gain" description="gain" type="u8" range="0..2" init-value="0" is-not-null="yes"/>
<attribute name="offset" description="Pedestal for the channel" type="u16" range="0..2700" init-value="0" is-not-null="yes"/>
<attribute name="trim" description="trim value for the channel" type="u16" range="0..4095" init-value="0" is-not-null="yes"/>
</class>

<class name="DaphneV2ControllerModule">
<superclass name="DaqModule"/>
<attribute name="address" description="ip address of the board" type="string" is-not-null="yes"/>
Expand All @@ -167,4 +163,10 @@
<attribute name="gain" description="0=18 dB, 1=24 dB, 2=12 dB" type="u8" range="0..2" init-value="2" is-not-null="yes"/>
</class>

<class name="DaphneV2PGA">
<attribute name="lpf_cut_frequency" description="cut frequency, only 4 values acceptable. 0=15MHz, 2=20MHz, 3=30MHz, 4=10MHz" type="u8" range="0..4" init-value="0" is-not-null="yes"/>
<attribute name="integrator_disable" type="bool" init-value="true" is-not-null="yes"/>
<attribute name="gain" description="rue=30 dB, false=24 dB" type="bool" init-value="false" is-not-null="yes"/>
</class>

</oks-schema>

0 comments on commit 72ab613

Please sign in to comment.