From 084e2cd6aaf00b4e44c06c791da67674022c7be3 Mon Sep 17 00:00:00 2001
From: Eric Kooistra <kooistra@astron.nl>
Date: Mon, 28 Apr 2025 09:26:32 +0200
Subject: [PATCH] Fix fields and addresses for sdp_tbuf_registers.

---
 .../lofar2/libraries/sdp/sdp.peripheral.yaml  | 20 +++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/applications/lofar2/libraries/sdp/sdp.peripheral.yaml b/applications/lofar2/libraries/sdp/sdp.peripheral.yaml
index 2af6bcbf8c..4de591261d 100644
--- a/applications/lofar2/libraries/sdp/sdp.peripheral.yaml
+++ b/applications/lofar2/libraries/sdp/sdp.peripheral.yaml
@@ -601,16 +601,16 @@ peripherals:
         mm_port_description: |
           "The SDP transient buffer (TBUF) contains registers to control and monitor the recording and dumping."
         fields:
-          - - { field_name: record_busy,           mm_width:    1,                                access_mode: RO, address_offset: 0x4C }
-          - - { field_name: dump_done,             mm_width:    1,                                access_mode: RO, address_offset: 0x48 }
-          - - { field_name: dump_enables,          mm_width: A_pn,                                access_mode: RW, address_offset: 0x44 }
-          - - { field_name: dump_start_rsn,        mm_width:   32, user_width: 64, radix: uint64, access_mode: RW, address_offset: 0x3C }
-          - - { field_name: dump_nof_pages,        mm_width:   32,                                access_mode: RW, address_offset: 0x38 }
-          - - { field_name: dump_start_page,       mm_width:   32,                                access_mode: RW, address_offset: 0x34 }
-          - - { field_name: dump_inter_packet_gap, mm_width:   32,                                access_mode: RW, address_offset: 0x30 }
-          - - { field_name: recorded_last_rsn,     mm_width:   32, user_width: 64, radix: uint64, access_mode: RO, address_offset: 0x28 }
-          - - { field_name: recorded_first_rsn,    mm_width:   32, user_width: 64, radix: uint64, access_mode: RO, address_offset: 0x20 }
-          - - { field_name: recorded_nof_samples,  mm_width:   32,                                access_mode: RO, address_offset: 0x1C }
+          - - { field_name: state,                 mm_width:   32,                                access_mode: RO, address_offset: 0x4C }
+          - - { field_name: record_busy,           mm_width:    1,                                access_mode: RO, address_offset: 0x48 }
+          - - { field_name: dump_done,             mm_width:    1,                                access_mode: RO, address_offset: 0x44 }
+          - - { field_name: dump_enables,          mm_width: A_pn,                                access_mode: RW, address_offset: 0x40 }
+          - - { field_name: dump_start_rsn,        mm_width:   32, user_width: 64, radix: uint64, access_mode: RW, address_offset: 0x38 }
+          - - { field_name: dump_nof_pages,        mm_width:   32,                                access_mode: RW, address_offset: 0x34 }
+          - - { field_name: dump_start_page,       mm_width:   32,                                access_mode: RW, address_offset: 0x30 }
+          - - { field_name: dump_inter_packet_gap, mm_width:   32,                                access_mode: RW, address_offset: 0x2C }
+          - - { field_name: recorded_last_rsn,     mm_width:   32, user_width: 64, radix: uint64, access_mode: RO, address_offset: 0x24 }
+          - - { field_name: recorded_first_rsn,    mm_width:   32, user_width: 64, radix: uint64, access_mode: RO, address_offset: 0x1C }
           - - { field_name: recorded_last_page,    mm_width:   32,                                access_mode: RO, address_offset: 0x18 }
           - - { field_name: recorded_first_page,   mm_width:   32,                                access_mode: RO, address_offset: 0x14 }
           - - { field_name: recorded_nof_pages,    mm_width:   32,                                access_mode: RO, address_offset: 0x10 }
-- 
GitLab