K7MDL2 / KEITHSDR

Teensy4.X with PJRC audio card Arduino based SDR Radio project.
54 stars 11 forks source link

Improve SDR_RA887x_Spectrum library #7

Closed K7MDL2 closed 2 years ago

K7MDL2 commented 2 years ago

The new library form has many dependencies on externs.

Need to make the library usage simpler and remove all externs, passing into the lib function all params (values, pointer to structures).

There are a few duplicated #defines (FFT_SIZE and RA887x display type choice). Find a way to make these dynamic rather than #defines.

K7MDL2 commented 2 years ago

Can now enable any combo of 4096IQm 2048IQ and 1024IQ for FFT, choose 1 of the enabled sizes for audio out and display. Moved user data out. Can pass preset (layout choice) and fft_size to the lib at instantiation time now. Got rid of some pesky font lib errors, reduced duplicate font lib includes. Documented perf results on the forum. Still more work to do to make the API cleaner, goal is no user config editing in the lib files.

K7MDL2 commented 2 years ago

_Because of the difficulty sharing #defines between the library and .ino, It required editing them in 2 places each time a board revision, display type or FFT resolution was changed. For simplicity I have merged the library back into the main program this library was originally split out form, SDR_RA887., otherwise it remains the same functionality. The example program is useful to see how things work.