Blame view

redpitaya/server/liboscimp_fpga.py 300 Bytes
9d344927e   bmarechal   first commit
1
2
3
4
5
6
7
8
  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):
      lib.nco_counter_send_conf(device, freq_ref, freq_dds, acc_size, offset)