diff --git a/redpitaya/server/liboscimp_fpga.py b/redpitaya/server/liboscimp_fpga.py deleted file mode 100644 index 944ad14..0000000 --- a/redpitaya/server/liboscimp_fpga.py +++ /dev/null @@ -1,34 +0,0 @@ -import ctypes -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, 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) - -def fpga_read(fpga_dev, registre): - lib.fpga_read(fpga_dev, registre) - -def fpga_read32(fpga_dev, registre): - lib.fpga_read32(fpga_dev, registre) - -def fpga_close(fpga_device): - lib.fpga_close(fpga_dev) - -def fpga_open(fpga_dev, fpga_address, fpga_offset): - lib.fpga_open(fpga_dev, fpga_address, fpga_offset) - -class fpga_dev(ctypes.Structure): - _fields_ = [('fd', ctypes.c_int), - ('ptr_fpga', ctypes.c_void_p), - ('fpga_address', ctypes.c_uint), - ('fpga_offset', ctypes.c_uint)] -'''