use TrbRegister;
use Data::Dumper;
-sub moduleName {"AddOn Input Multiplexer"}
+sub moduleName {"Trigger Input Multiplexer"}
sub init {
my $self = $_[0];
for(my $i = 0; $i < $header->{'itc_len'}; $i++) {
- $self->{'_cts'}->getProperties->{'itc_assignments'}[$i + $header->{'itc_base'}] = "AddOn Multiplexer $i";
+ $self->{'_cts'}->getProperties->{'itc_assignments'}[$i + $header->{'itc_base'}] = "Input Multiplexer $i";
}
# properties
$prop->{"trg_inp_mux_itc_base"} = $header->{'itc_base'};
}
-1;
\ No newline at end of file
+1;
use TrbRegister;
use Data::Dumper;
-sub moduleName {"AddOn Input Multiplexer"}
+sub moduleName {"Trigger Input Multiplexer"}
sub init {
my $self = $_[0];
for(my $i = 0; $i < $header->{'itc_len'}; $i++) {
- $self->{'_cts'}->getProperties->{'itc_assignments'}[$i + $header->{'itc_base'}] = "AddOn Multiplexer $i";
+ $self->{'_cts'}->getProperties->{'itc_assignments'}[$i + $header->{'itc_base'}] = "Trigger Multiplexer $i";
}
# properties
use TrbRegister;
use Data::Dumper;
-sub moduleName {"AddOn Input Multiplexer"}
+sub moduleName {"Trigger Input Multiplexer"}
sub init {
my $self = $_[0];
for(my $i = 0; $i < $header->{'itc_len'}; $i++) {
- $self->{'_cts'}->getProperties->{'itc_assignments'}[$i + $header->{'itc_base'}] = "AddOn Multiplexer $i";
+ $self->{'_cts'}->getProperties->{'itc_assignments'}[$i + $header->{'itc_base'}] = "Trigger Multiplexer $i";
}
# properties
--- /dev/null
+# Module: R3B timestamp receiver External Trigger Module
+#
+
+package CtsMod64;
+
+@ISA = (CtsBaseModule);
+
+use warnings;
+use strict;
+
+sub moduleName {"R3B TS Recv"}
+
+sub init {
+ my $self = $_[0];
+ my $address = $_[1];
+
+ my $trb = $self->{'_cts'}{'_trb'};
+
+ my $regs = $self->{'_registers'};
+ my $expo = $self->{'_exportRegs'};
+ my $prop = $self->{'_properties'};
+
+ my $header = $self->{'_cts'}{'_enum'}{0x64}->read();
+
+
+ $regs->{'r3b_ts_recv_status'} = new TrbRegister($address + 1, $trb, {
+ 'value' => {'lower' => 0, 'len' => 32, 'type' => 'hex'},
+ }, {
+ 'accessmode' => "ro",
+ 'label' => "Mimosa26 Status Register",
+ 'monitor' => '1'
+ });
+
+ $regs->{'r3b_ts_recv_control'} = new TrbRegister($address + 2, $trb, {},
+ {
+ 'accessmode' => "rw",
+ 'label' => "Mimosa26 Control Register",
+ 'monitor' => '1',
+ 'export' => 1
+ });
+
+ $self->{'_cts'}->getProperties->{'itc_assignments'}[$header->{'itc_base'}] = "External Module - R3B TS Recv";
+}
+
+1;