Commit 8b90e736c43887b8a10956b8188f260e30ac2b6a

Authored by bmarechal
1 parent a60abb54d7
Exists in master

add pinc/poff args

Showing 1 changed file with 7 additions and 2 deletions Side-by-side Diff

redpitaya/server/liboscimp_fpga.py
... ... @@ -4,9 +4,13 @@
4 4 def add_const_set_offset(device, offset):
5 5 lib.add_const_set_offset(device, offset)
6 6  
7   -def nco_counter_send_conf(device, freq_ref, freq_dds, acc_size, offset):
8   - lib.nco_counter_send_conf(device, freq_ref, freq_dds, acc_size, offset)
  7 +def nco_counter_send_conf(device, freq_ref, freq_dds, acc_size, offset, pinc_sw, poff_sw):
  8 + lib.nco_counter_send_conf(device, freq_ref, freq_dds, acc_size, offset, pinc_sw, poff_sw)
9 9  
  10 +def fir16bits_send_conf(device, fileCoeff, coeffSize):
  11 + lib.fir16bits_send_conf(device, fileCoeff, coeffSize)
  12 +
  13 +'''~
10 14 def fpga_send(fpga_dev, registre, value):
11 15 lib.fpga_send(fpga_dev, registre, value)
12 16  
... ... @@ -27,4 +31,5 @@
27 31 ('ptr_fpga', ctypes.c_void_p),
28 32 ('fpga_address', ctypes.c_uint),
29 33 ('fpga_offset', ctypes.c_uint)]
  34 +'''