VGA Text Display Library  v0.8
Display text on a VGA monitor
vgatext.h
Go to the documentation of this file.
1 
18 #ifndef VGA_Text_Class_Defined__
19 #define VGA_Text_Class_Defined__
20 
21 #if defined(__cplusplus)
22 extern "C" {
23 #endif
24 
25 #include <stdint.h>
26 
30 #define Cols (32)
31 #define Rows (15)
32 #define Screensize (480)
33 #define Lastrow (448)
34 #define Vga_count (21)
35 
39 typedef struct VGA_Text {
40  int32_t Col, Row, Color, Flag;
41  int32_t Colors[16];
42  int32_t Vga_status;
43  int32_t Vga_enable;
44  int32_t Vga_pins;
45  int32_t Vga_mode;
46  int32_t Vga_screen;
47  int32_t Vga_colors;
48  int32_t Vga_ht;
49  int32_t Vga_vt;
50  int32_t Vga_hx;
51  int32_t Vga_vx;
52  int32_t Vga_ho;
53  int32_t Vga_vo;
54  int32_t Vga_hd;
55  int32_t Vga_hf;
56  int32_t Vga_hs;
57  int32_t Vga_hb;
58  int32_t Vga_vd;
59  int32_t Vga_vf;
60  int32_t Vga_vs;
61  int32_t Vga_vb;
62  int32_t Vga_rate;
63  uint16_t Screen[480];
64  char dummy__;
65 } VGA_Text;
66 
76  int32_t vga_text_start(int32_t Basepin);
77 
81  int32_t vga_text_stop(void);
82 
88  int32_t vga_text_str(char* Stringptr);
89 
95  int32_t vga_text_dec(int32_t Value);
96 
104  int32_t vga_text_hex(int32_t Value, int32_t Digits);
105 
113  int32_t vga_text_bin(int32_t Value, int32_t Digits);
114 
132  int32_t vga_text_out(int32_t C);
133 
147  int32_t vga_text_setcolors(int32_t Colorptr);
148 
149 #if defined(__cplusplus)
150 }
151 #endif
152 /* __cplusplus */
153 #endif
154 /* VGA_Text_Class_Defined__ */
155 
156 #ifndef vgaSpin_Class_Defined__
157 #define vgaSpin_Class_Defined__
158 
159 #if defined(__cplusplus)
160 extern "C" {
161 #endif
162 
163 #include <stdint.h>
164 
168 #define Paramcount (21)
169 #define Colortable (384)
170 
174 typedef struct vgaSpin {
175  int32_t Cog;
176  char dummy__;
177 } vgaSpin;
178 
182  int32_t vgaSpin_Start(int32_t Vgaptr);
183 
187  int32_t vgaSpin_Stop(void);
188 
189 #if defined(__cplusplus)
190 }
191 #endif
192 /* __cplusplus */
193 /* __cplusplus */
194 #endif
195 /* vgaSpin_Class_Defined__ */
196