#include <stdarg.h>
#include "board.h"
#include "et024006dhu.h"
#include "conf_demo.h"
#include "gpio.h"
#include "gui.h"
#include "background_image.h"
#include "cycle_counter.h"
#include "dsp.h"
#include "compiler.h"
Data Structures | |
struct | gui_box |
Local structure definition for box. More... | |
Macros | |
#define | MAX_BUFFER_HEIGHT GUI_ZOOM_BOX_HEIGHT |
#define | MAX_BUFFER_WIDTH GUI_ZOOM_BOX_WIDTH |
Functions | |
static void | gui_buffer_print_dsp16_signal (void *buffer, uint16_t width, uint16_t height, dsp16_t *signal, uint16_t signal_size) |
static void | gui_buffer_set_pixel (void *buffer, uint16_t width, uint16_t height, uint16_t x, uint16_t y) |
void | gui_change_update_fs (uint32_t time_ms) |
This function change the frequency rate of the update of the display. More... | |
void | gui_clear_view (void) |
static void | gui_draw_background (uint16_t x, uint16_t y, uint16_t width, uint16_t height) |
uint32_t | gui_get_update_fs (void) |
void | gui_init (uint32_t cpu_hz, uint32_t hsb_hz, uint32_t pba_hz, uint32_t pbb_hz) |
Initialization function of the GUI interface. More... | |
static void | gui_print_signal_box (int32_t box_id, dsp16_t *signal, uint16_t signal_size) |
void | gui_set_selection (int32_t box_id) |
Select a new box (can select only one box a time) More... | |
void | gui_task (void) |
Gui Task: More... | |
Variables | |
static struct gui_box | box [] |
static uint8_t | buffer [ET024006_BITMAP_WIDTH(MAX_BUFFER_WIDTH)*MAX_BUFFER_HEIGHT] |
static int | gui_cpu_hz |
struct { | |
t_cpu_time cpu_time | |
uint32_t time_ms | |
} | gui_fs |
char | gui_text_buffer [GUI_TEXT_BUFFER_SIZE] |
dsp16_t | signal1_buf [BUFFER_LENGTH] |
dsp16_t | signal2_buf [BUFFER_LENGTH] |
dsp16_t | signal3_buf [BUFFER_LENGTH] |
Buffer to store ADC Conversions. More... | |
dsp16_t | signal4_buf [BUFFER_LENGTH] |
static dsp16_t | signal_buffer [BUFFER_LENGTH] |
dsp16_t * | signal_in_buf |
dsp16_t | signal_in_fft [BUFFER_LENGTH] |
dsp16_t | signal_out_buf [BUFFER_LENGTH] |
dsp16_t | signal_out_fft [BUFFER_LENGTH] |
bool | signals_are_updated |
#define MAX_BUFFER_HEIGHT GUI_ZOOM_BOX_HEIGHT |
#define MAX_BUFFER_WIDTH GUI_ZOOM_BOX_WIDTH |
|
static |
References Abs, b, DSP16_QA, DSP16_QB, DSP_FP_MIN, ET024006_BITMAP_WIDTH, gui_buffer_set_pixel(), i, and width.
Referenced by gui_print_signal_box().
|
inlinestatic |
References ET024006_BITMAP_WIDTH.
Referenced by gui_buffer_print_dsp16_signal().
void gui_change_update_fs | ( | uint32_t | time_ms | ) |
This function change the frequency rate of the update of the display.
References cpu_ms_2_cy(), cpu_set_timeout(), gui_cpu_hz, gui_fs, and time_ms.
void gui_clear_view | ( | void | ) |
References ET024006_HEIGHT, ET024006_WIDTH, and gui_draw_background().
|
static |
References background_image, et024006_PutPixmap(), and ET024006_WIDTH.
Referenced by gui_clear_view(), and gui_set_selection().
uint32_t gui_get_update_fs | ( | void | ) |
References gui_fs.
Initialization function of the GUI interface.
fcpu_hz | CPU frequency. |
fhsb_hz | HSB frequency. |
fpbb_hz | PBB frequency. |
fpba_hz | PBA frequency. |
Referenced by app_engine(), and main().
|
static |
References gui_box::bg_color, buffer, BUFFER_LENGTH, et024006_PutBitmap(), gui_box::fg_color, gui_buffer_print_dsp16_signal(), GUI_ZOOM_BOX_HEIGHT, GUI_ZOOM_BOX_WIDTH, GUI_ZOOM_BOX_X, GUI_ZOOM_BOX_Y, gui_box::height, Min, signal_buffer, gui_box::width, gui_box::x, gui_box::y, zoom_view, and zoom_view_id.
Referenced by gui_task().
void gui_set_selection | ( | int32_t | box_id | ) |
Select a new box (can select only one box a time)
References gui_box::bg_color, et024006_DrawFilledRect(), gui_draw_background(), GUI_NO_COLOR, GUI_NO_SEL, GUI_SELECTION_COLOR, gui_box::height, i, gui_box::width, gui_box::x, and gui_box::y.
Referenced by state_machine_global().
void gui_task | ( | void | ) |
Gui Task:
References BLACK, BLUE, cpu_is_timeout(), cpu_ms_2_cy(), cpu_set_timeout(), et024006_DrawFilledRect(), GREEN, gui_cpu_hz, GUI_CURSOR_COLOR, gui_fs, GUI_OUTPUT1_ID, GUI_OUTPUT2_ID, GUI_OUTPUT3_ID, gui_print_signal_box(), GUI_SOURCE1_HEIGHT, GUI_SOURCE1_ID, GUI_SOURCE1_X, potentiometer_value, RED, signal1_buf, signal2_buf, signal3_buf, signal4_buf, signal_noise_gui, signal_selected_display, signalin_gui, signalin_noise_gui, signalout_fp_gui, signalout_fpu_gui, and sysclk_get_main_hz().
|
static |
Referenced by gui_print_signal_box().
t_cpu_time cpu_time |
|
static |
Referenced by gui_change_update_fs(), gui_init(), and gui_task().
struct { ... } gui_fs |
Referenced by gui_change_update_fs(), gui_get_update_fs(), and gui_task().
char gui_text_buffer[GUI_TEXT_BUFFER_SIZE] |
dsp16_t signal1_buf[BUFFER_LENGTH] |
Referenced by adc_process_task(), and gui_task().
dsp16_t signal2_buf[BUFFER_LENGTH] |
Referenced by gui_task(), and lin_task().
dsp16_t signal3_buf[BUFFER_LENGTH] |
Buffer to store ADC Conversions.
Referenced by can_task(), and gui_task().
dsp16_t signal4_buf[BUFFER_LENGTH] |
Referenced by adc_process_task(), and gui_task().
|
static |
Referenced by gui_print_signal_box().
dsp16_t* signal_in_buf |
dsp16_t signal_in_fft[BUFFER_LENGTH] |
dsp16_t signal_out_buf[BUFFER_LENGTH] |
dsp16_t signal_out_fft[BUFFER_LENGTH] |
bool signals_are_updated |
uint32_t time_ms |