diff --git a/redpitaya/server/liboscimp_fpga.py b/redpitaya/server/liboscimp_fpga.py index f918dab..944ad14 100644 --- a/redpitaya/server/liboscimp_fpga.py +++ b/redpitaya/server/liboscimp_fpga.py @@ -4,9 +4,13 @@ lib = ctypes.CDLL('/usr/lib/liboscimp_fpga.so') def add_const_set_offset(device, offset): lib.add_const_set_offset(device, offset) -def nco_counter_send_conf(device, freq_ref, freq_dds, acc_size, offset): - lib.nco_counter_send_conf(device, freq_ref, freq_dds, acc_size, offset) +def nco_counter_send_conf(device, freq_ref, freq_dds, acc_size, offset, pinc_sw, poff_sw): + lib.nco_counter_send_conf(device, freq_ref, freq_dds, acc_size, offset, pinc_sw, poff_sw) +def fir16bits_send_conf(device, fileCoeff, coeffSize): + lib.fir16bits_send_conf(device, fileCoeff, coeffSize) + +'''~ def fpga_send(fpga_dev, registre, value): lib.fpga_send(fpga_dev, registre, value) @@ -27,3 +31,4 @@ class fpga_dev(ctypes.Structure): ('ptr_fpga', ctypes.c_void_p), ('fpga_address', ctypes.c_uint), ('fpga_offset', ctypes.c_uint)] +'''