
Impedance Fast Circuitry Software
Fork of DSP_200kHz by
Diff: Jareds_DSP/print_data.cpp
- Revision:
- 76:704fc58ffcd0
- Child:
- 77:1ee17a9e9f8b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Jareds_DSP/print_data.cpp Sun Jun 04 02:41:14 2017 +0000 @@ -0,0 +1,28 @@ +#include "print_data.h" + +DigitalOut status_2(D2); +int printing_length = 0; +int printing_counter = 0; +char print_buffer[50]; + +void print_filter_data() +{ + if (printing_counter>=printing_length) + return; + status_2 = 1; + if (printing_counter<printing_length) + { + printf("%C",print_buffer[printing_counter]); + printing_counter++; + } + status_2 = 0; +} +void set_print_buffer(float mag,float phase) +{ + if (printing_counter<printing_length) + { + printf("PRINT OVERLOAD\n\r"); + } + printing_counter = 0; + printing_length=sprintf (print_buffer, "%.2E %.2f\n\r", mag, phase); +} \ No newline at end of file