VGA Text Display Library  v0.85
Display text on a VGA monitor
vgatext.h
Go to the documentation of this file.
1 
20 #ifndef VGA_Text_Class_Defined__
21 #define VGA_Text_Class_Defined__
22 
23 #if defined(__cplusplus)
24 extern "C" {
25 #endif
26 
27 #include <stdint.h>
28 
32 #define Cols (32)
33 #define Rows (15)
34 #define Screensize (480)
35 #define Lastrow (448)
36 #define Vga_count (21)
37 
41 typedef struct VGA_Text {
42  int32_t Col, Row, Color, Flag;
43  int32_t Colors[16];
44  int32_t Vga_status;
45  int32_t Vga_enable;
46  int32_t Vga_pins;
47  int32_t Vga_mode;
48  int32_t Vga_screen;
49  int32_t Vga_colors;
50  int32_t Vga_ht;
51  int32_t Vga_vt;
52  int32_t Vga_hx;
53  int32_t Vga_vx;
54  int32_t Vga_ho;
55  int32_t Vga_vo;
56  int32_t Vga_hd;
57  int32_t Vga_hf;
58  int32_t Vga_hs;
59  int32_t Vga_hb;
60  int32_t Vga_vd;
61  int32_t Vga_vf;
62  int32_t Vga_vs;
63  int32_t Vga_vb;
64  int32_t Vga_rate;
65  uint16_t Screen[480];
66  char dummy__;
67 } VGA_Text;
68 
78  int32_t vga_text_start(int32_t Basepin);
79 
83  int32_t vga_text_stop(void);
84 
90  int32_t vga_text_str(char* Stringptr);
91 
97  int32_t vga_text_dec(int32_t Value);
98 
106  int32_t vga_text_hex(int32_t Value, int32_t Digits);
107 
115  int32_t vga_text_bin(int32_t Value, int32_t Digits);
116 
134  int32_t vga_text_out(int32_t C);
135 
149  int32_t vga_text_setcolors(int32_t Colorptr);
150 
151 #if defined(__cplusplus)
152 }
153 #endif
154 /* __cplusplus */
155 #endif
156 /* VGA_Text_Class_Defined__ */
157 
158 #ifndef vgaSpin_Class_Defined__
159 #define vgaSpin_Class_Defined__
160 
161 #if defined(__cplusplus)
162 extern "C" {
163 #endif
164 
165 #include <stdint.h>
166 
170 #define Paramcount (21)
171 #define Colortable (384)
172 
176 typedef struct vgaSpin {
177  int32_t Cog;
178  char dummy__;
179 } vgaSpin;
180 
184  int32_t vgaSpin_Start(int32_t Vgaptr);
185 
189  int32_t vgaSpin_Stop(void);
190 
191 #if defined(__cplusplus)
192 }
193 #endif
194 /* __cplusplus */
195 /* __cplusplus */
196 #endif
197 /* vgaSpin_Class_Defined__ */
198