-
Notifications
You must be signed in to change notification settings - Fork 0
/
cyrial.h
62 lines (50 loc) · 1.96 KB
/
cyrial.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
55
56
57
58
59
60
61
62
/*
* cyrial.h
*
* Created on: Oct 4, 2021
* Author: tergav17
*/
#ifndef CYRIAL_H_
#define CYRIAL_H_
#define DIV_MIDDLE 0
#define DIV_TOPLEFT 1
#define DIV_TOP 2
#define DIV_TOPRIGHT 3
#define DIV_RIGHT 4
#define DIV_BOTTOMRIGHT 5
#define DIV_BOTTOM 6
#define DIV_BOTTOMLEFT 7
#define DIV_LEFT 8
void uart_init(void);
void uart_sendln(char* str);
void uart_sends(char* str);
void uart_recv(char* str);
void term_putc(char c);
char term_getc(void);
void term_puts(char *str);
void term_gets(char* str);
void dash_init(int x, int y);
void dash_add_label(char* name, char* contents, int x, int y, int width, int height, char centered, char boxed);
void dash_add_button(char* name, char* contents, int x, int y, int width, int height);
void dash_add_input(char* name, char* contents, int x, int y, int width, int height);
void dash_add_divider(char* name, int x1, int y1, int pos1, int x2, int y2, int pos2);
void dash_add_icon(char* name, char* state, int x, int y);
void dash_add_logger(char* name, char* title, int x, int y, int width, int height, char* axis, double max);
void dash_add_plotter(char* name, char* title, int x, int y, int width, int height, char* xaxis, char* yaxis);
void dash_poll(char* name, char* str);
void dash_radial_half(void);
void dash_radial_full(void);
void dash_radial_done(void);
void dash_radial_max(int max);
void dash_radial_log(int in);
void dash_label_update(char* name, char* contents);
void dash_icon_update(char* name, char* status);
void dash_logger_bound(char* name, double min, double max);
void dash_logger_log(char* name, double value, char* color);
void dash_plotter_erase(char* name);
void dash_plotter_linear(char* name);
void dash_plotter_nonlinear(char* name);
void dash_plotter_color(char* name, char* color);
void dash_plotter_bound(char* name, double xmin, double xmax, double ymin, double ymax);
void dash_plotter_plot(char* name, double x, double y);
#endif /* CYRIAL_H_ */