AnsweredAssumed Answered

Reading filter_fir_config using iio functions

Question asked by weehong.yeo on Feb 26, 2018
Latest reply on Mar 1, 2018 by weehong.yeo



  After I set my filter coefficients, I was able to use the Linux API to "cat filter_fir_config" and that gives me "FIR Rx: 128, 4 Tx: 128, 4"  How do I do that using the iio library functions?


  I am able to set the coefficients using iio_device_attr_write_raw().  I tried to read back using iio_device_attr_read(), but I am only able to get weird symbols.


  Does any one know how I can do this?  Will like to verify in code that my FIR filter coefficients are loaded correctly.  Thanks!