-
Notifications
You must be signed in to change notification settings - Fork 0
/
rfidVisual.h
55 lines (42 loc) · 1.52 KB
/
rfidVisual.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: rfidVisual.h
* Author: Matthew Bennett <[email protected]>
*
* Created on 13 April 2019, 16:14
*/
#ifndef RFIDVISUAL_H
#define RFIDVISUAL_H
struct app_widgets {
// All the widgets on the form go into here
GtkWidget *w_txt_tag_id_pg0;
GtkWidget *w_txt_view_page_block_info_pg0;
GtkWidget *w_radbut_tag_present_pg0;
GtkWidget *w_txt_tag_id_pg1;
GtkWidget *w_txt_view_page_block_info_pg1;
GtkWidget *w_radbut_tag_present_pg1;
GtkWidget *w_but_factory_reset;
GtkWidget *w_radbut_mode_a_pg2;
GtkWidget *w_radbut_mode_b_pg2;
GtkWidget *w_radbut_mode_c_pg2;
GtkWidget *w_txt_version_info_box;
GtkWidget *w_txt_mode_box;
// also the serial connection
int conn;
} ;
//ToDo: improve the commentary for the functions
void open_serial_port(struct app_widgets *widget);
// calls the library and gets the version info
void get_version_info(struct app_widgets *widget) ;
void on_main_application_window_destroy() ;
// calls the library and gets the mode info
void get_mode_info(struct app_widgets *widget);
// called when the reset button is clicked
void on_btn_reset_clicked(GtkButton *button, struct app_widgets *widget);
// called when the mode radio buttons are changed.
void on_radiobutton_toggled(GtkButton *button, struct app_widgets *widget);
#endif /* RFIDVISUAL_H */