Hello again. I'm in the process of developing a system based on the Eclypse Z7 board along with the 1411 and 1410 ZMods.
The aim is to display the collected ADC data on a host machine oscilloscope style. Dumping the ADC buffers over UART is too slow, so I've opted for ethernet instead.
The lwIP TCP server template included in SDK/Vitis makes it really easy to get high speed transfers between the PS and the host up and running quickly, which was really nice to see after struggling with other communication methods for a while. Now all that's left is getting the zmods to do cool tricks and send their results to a host machine with the help of lwIP.
Small problem... the lwIP library and its template functionality is written in C, where zmodlib is written in C++. I feel like this is such a silly thing to complain about. All I really need to do is wrap the ZMOD and ZMODADC1410 C++ classes/functions in an extern and handle name mangling, but it's just a very un-fun process, especially in a fairly dense and unfamiliar library.
I just wanted to put this issue out there to see if anyone had any clever ideas or suggestions on a possible workaround, to simultaneously check if anyone could find some flaw in my thinking (since I tend to get too excited and forget to take into consideration very important details) and give me time to procrastinate writing the interface code for zmodlib.
Question
davwamai
Hello again. I'm in the process of developing a system based on the Eclypse Z7 board along with the 1411 and 1410 ZMods.
The aim is to display the collected ADC data on a host machine oscilloscope style. Dumping the ADC buffers over UART is too slow, so I've opted for ethernet instead.
The lwIP TCP server template included in SDK/Vitis makes it really easy to get high speed transfers between the PS and the host up and running quickly, which was really nice to see after struggling with other communication methods for a while. Now all that's left is getting the zmods to do cool tricks and send their results to a host machine with the help of lwIP.
Small problem... the lwIP library and its template functionality is written in C, where zmodlib is written in C++. I feel like this is such a silly thing to complain about. All I really need to do is wrap the ZMOD and ZMODADC1410 C++ classes/functions in an extern and handle name mangling, but it's just a very un-fun process, especially in a fairly dense and unfamiliar library.
I just wanted to put this issue out there to see if anyone had any clever ideas or suggestions on a possible workaround, to simultaneously check if anyone could find some flaw in my thinking (since I tend to get too excited and forget to take into consideration very important details) and give me time to procrastinate writing the interface code for zmodlib.
Thanks,
David
Link to comment
Share on other sites
13 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now