#include "menu.h"
Functions | |
void | menu_init (void) |
initialise menu | |
void | menu_main_set (int8_t nr) |
set to menu "nr" | |
void | menu_main_incr (void) |
next menu | |
void | menu_main_decr (void) |
menu before | |
void | menu_prop_set (int8_t nr) |
set prop in argument active | |
void | menu_start (void) |
Handels pressed signal for button "start". | |
void | menu_left (void) |
Handels pressed signal for button "left". | |
void | menu_right (void) |
Handels pressed signal for button "right". | |
void | menu_up (void) |
Handels pressed signal for button "up". | |
void | menu_down (void) |
Handels pressed signal for button "down". | |
Variables | |
volatile menu_main_struct | menu_mains [] |
array which holds one menu_main_struct for each entry | |
volatile menu_prop_main_struct | menu_props [MENU_ANZ_MAIN] |
array holding one menu_prop_main_struct for each property |
|
Handels pressed signal for button "down".
00085 { 00086 if(MENU_PROP_NOW.current_value > 1) MENU_PROP_NOW.current_value--; 00087 MENU_PROP_NOW.set_value(MENU_PROP_NOW.current_value); 00088 }
|
|
initialise menu
00043 { 00044 menu_main_set(1); 00045 menu_prop_set(1); 00046 }
|
|
Handels pressed signal for button "left".
00071 { 00072 if(MENU_CURRENT_PROP_NR > 1) MENU_PROPS_NOW.prop_now--; 00073 else MENU_PROPS_NOW.prop_now = MENU_PROPS_NOW.nr_props; 00074 }
|
|
menu before
00058 { 00059 if(menu_now > 1) menu_main_set(menu_now - 1); 00060 else menu_main_set(MENU_ANZ_MAIN); 00061 }
|
|
next menu
00053 { 00054 if(menu_now < MENU_ANZ_MAIN) menu_main_set(menu_now + 1); 00055 else menu_main_set(1); 00056 }
|
|
set to menu "nr"
00049 { 00050 if(nr <= MENU_ANZ_MAIN) menu_now = nr; 00051 }
|
|
set prop in argument active
00063 { 00064 if(nr <= MENU_PROPS_NOW.nr_props) MENU_PROPS_NOW.prop_now = nr; 00065 }
|
|
Handels pressed signal for button "right".
00075 { 00076 if(MENU_CURRENT_PROP_NR < MENU_PROPS_NOW.nr_props) MENU_PROPS_NOW.prop_now++; 00077 else MENU_PROPS_NOW.prop_now = 1; 00078 }
|
|
Handels pressed signal for button "start".
|
|
Handels pressed signal for button "up".
00080 { 00081 if(MENU_PROP_NOW.current_value < MENU_PROP_NOW.nr_values) 00082 MENU_PROP_NOW.current_value++; 00083 MENU_PROP_NOW.set_value(MENU_PROP_NOW.current_value); 00084 }
|
|
Initial value: { { &disp_graph, &control_graph, "Graph" }, { &disp_terminal, &control_graph, "TTY" }, { &disp_debugging, &control_graph, "FFT" }, } Initialise the modes (or main menu entries).
|
|
Initial value: { { 3, 1, { { &adc_set_presc, 1, 7, "Pr", {"1","2","3","4","5","6","7"} }, { &adc_set_nr_channels, 1, 4, "Ch", {"1","2","3","4"} }, { &bk_LED, 10, 11, "LED", {"0","1","2","3","4","5","6","7","8","9","10"} }, } }, { 4, 1, { { &usart_baudrate, 1, 11, "BR", {"2k4","4k8","9k6","14k4","19k2","28k8","38k4","57k6","76k8","115k2","230k4"} }, { &usart_setSync, 1, 2, "SY", {"dis","en"} }, { &usart_dataBits, 4, 5, "DB", {"5","6","7","8","9"} }, { &usart_stopBits, 2, 2, "SB", {"1","2"} }, } }, { 1, 1, {{ &adc_set_presc, 1, 5, "TB", {"1","2","3","4","5"} }} }, } Initialises all properties |