}
# Read all UIDs as array
-@array = trb_read_uid_c(0xfffb) or die "trb_read_uid: ", trb_strerror();
+@array = trb_read_uid_c(0xffff) or die "trb_read_uid: ", trb_strerror();
#print Dumper $ref;
foreach my $cur_key (@array) {
printf "0x%08x\n", $cur_key;
# Read ADCM's by mem
-$ref = trb_register_read(0xfffb, 0xa000)
+$ref = trb_register_read(0xfffe, 0x1)
or die "Failed trb_register_read: ", trb_strerror();
foreach my $cur_key (sort {$a <=> $b } keys %$ref) {
# Read all UIDs as array
-@array = trb_register_read_mem_c(0xfffb, 0xa000, 1, 10) or die "trb_register_read_mem_c: ", trb_strerror();
+@array = trb_register_read_mem_c(0xfffe, 0x4000, 1, 4) or die "trb_register_read_mem_c: ", trb_strerror();
foreach my $cur_key (@array) {
printf "0x%08x\n", $cur_key;
# Read read mem test
-$ref = trb_register_read_mem(0xfffb, 0xa000, 0, 10) or die "trb_register_read_mem: ", trb_strerror();
+$ref = trb_register_read_mem(0xfffe, 0x4000, 0, 4) or die "trb_register_read_mem: ", trb_strerror();
#print Dumper $ref;
printf "\n\n\n";
print "Hash content\n";
print "\n";
}
+
+#0x2b00000270d5b328
+
+print "test trb_set_address\n";
+
+#no warnings 'portable';
+$ref = trb_set_address(0x2b00000270d5b328, 0x2, 0x5);
+print Dumper $ref;
+
+
exit;