added config flash stuff
This commit is contained in:
@@ -2,6 +2,7 @@ import ctypes
|
||||
import time
|
||||
import numpy as np
|
||||
from matplotlib import pyplot as plt
|
||||
import ipaddress
|
||||
|
||||
import data_structures
|
||||
import radar_manager
|
||||
@@ -28,7 +29,7 @@ def db20n(x):
|
||||
def main():
|
||||
print('Hello')
|
||||
|
||||
radar = radar_manager.RadarManager()
|
||||
radar = radar_manager.RadarManager(host='192.168.1.201', port=5002)
|
||||
|
||||
clk = radar_manager.TIMING_ENGINE_FREQ
|
||||
|
||||
@@ -41,6 +42,14 @@ def main():
|
||||
radar.ad9081_write_reg(0x0A0A, 0x60)
|
||||
print(hex(radar.ad9081_read_reg(0x0A0A)))
|
||||
|
||||
# Program Config Flash IP Address
|
||||
ip = ipaddress.IPv4Address('192.168.1.201')
|
||||
mask = ipaddress.IPv4Address('255.255.255.0')
|
||||
gw = ipaddress.IPv4Address('192.168.1.1')
|
||||
port = 5002
|
||||
data = bytes(np.array([ip, mask, gw, port], dtype=np.uint32))
|
||||
radar.config_flash_write(0xf00000, data)
|
||||
|
||||
|
||||
# CPI Parameters (timing values are in clk ticks)
|
||||
num_pulses = 128
|
||||
|
||||
Reference in New Issue
Block a user