Commit ee270822dd986af5a31aaff3d1e029792eaedca1

Authored by bmarechal
1 parent 2fb9efd6c6
Exists in master

move to fpga_lib repo

Showing 1 changed file with 0 additions and 34 deletions Side-by-side Diff

redpitaya/server/liboscimp_fpga.py
1   -import ctypes
2   -lib = ctypes.CDLL('/usr/lib/liboscimp_fpga.so')
3   -
4   -def add_const_set_offset(device, offset):
5   - lib.add_const_set_offset(device, offset)
6   -
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   -
10   -def fir16bits_send_conf(device, fileCoeff, coeffSize):
11   - lib.fir16bits_send_conf(device, fileCoeff, coeffSize)
12   -
13   -'''~
14   -def fpga_send(fpga_dev, registre, value):
15   - lib.fpga_send(fpga_dev, registre, value)
16   -
17   -def fpga_read(fpga_dev, registre):
18   - lib.fpga_read(fpga_dev, registre)
19   -
20   -def fpga_read32(fpga_dev, registre):
21   - lib.fpga_read32(fpga_dev, registre)
22   -
23   -def fpga_close(fpga_device):
24   - lib.fpga_close(fpga_dev)
25   -
26   -def fpga_open(fpga_dev, fpga_address, fpga_offset):
27   - lib.fpga_open(fpga_dev, fpga_address, fpga_offset)
28   -
29   -class fpga_dev(ctypes.Structure):
30   - _fields_ = [('fd', ctypes.c_int),
31   - ('ptr_fpga', ctypes.c_void_p),
32   - ('fpga_address', ctypes.c_uint),
33   - ('fpga_offset', ctypes.c_uint)]
34   -'''