added config flash stuff

This commit is contained in:
2025-06-07 08:01:52 -05:00
parent 6e4aa1230a
commit 68a4ed1428
18 changed files with 631 additions and 30 deletions

View File

@@ -244,6 +244,21 @@ class RadarManager:
return
def config_flash_write(self, address, data):
# Make sure address is word aligned
address -= (address % 4)
# Form message
msg = msg_types.ConfigFlashWriteType(msg_id=msg_types.CONFIG_FLASH_WRITE)
msg.address = address
msg.length = len(data)
for i in range(len(data)):
msg.data[i] = data[i]
self.send_message(msg)
return
def load_waveform(self, ch, amp, bw, pw):
# addr = 0x0010000 + 0x0010000 * ch