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

@@ -8,6 +8,7 @@ ACK_MSG = 4
NACK_MSG = 5
AXI_WRITE_REG_BURST = 6
RF_SPI_WRITE = 7
CONFIG_FLASH_WRITE = 8
SET_AD9081_DAC_NCO = 128
SET_AD9081_ADC_NCO = 129
SET_LANE_MAP = 130
@@ -92,8 +93,22 @@ class WriteRegBurstType(Structure):
("data", c_uint32 * MAX_BURST_LENGTH)
]
def __init__(self):
init_header(self, AXI_WRITE_REG_BURST)
def __init__(self, msg_id=AXI_WRITE_REG_BURST):
init_header(self, msg_id)
self.address = 0
self.length = 0
class ConfigFlashWriteType(Structure):
_pack_ = 1
_fields_ = [
("header", Header),
("address", c_uint32),
("length", c_uint32),
("data", c_uint8 * MAX_BURST_LENGTH)
]
def __init__(self, msg_id=CONFIG_FLASH_WRITE):
init_header(self, msg_id)
self.address = 0
self.length = 0