Step 2: Add glcd unified graphic display driver. See glcd_drv.c for details.

This commit is contained in:
mmdolze
2011-09-09 18:45:55 +00:00
parent 9dcabf8ce5
commit 377aa5d9f8
10 changed files with 878 additions and 5 deletions
+21
View File
@@ -0,0 +1,21 @@
#ifndef GLCD_DRV_H
#define GLCD_DRV_H
MODULE_EXPORT int glcd_init(Driver *drvthis);
MODULE_EXPORT void glcd_close(Driver *drvthis);
MODULE_EXPORT int glcd_width(Driver *drvthis);
MODULE_EXPORT int glcd_height(Driver *drvthis);
MODULE_EXPORT int glcd_cellwidth(Driver *drvthis);
MODULE_EXPORT int glcd_cellheight(Driver *drvthis);
MODULE_EXPORT void glcd_clear(Driver *drvthis);
MODULE_EXPORT void glcd_flush(Driver *drvthis);
MODULE_EXPORT void glcd_string(Driver *drvthis, int x, int y, const char string[]);
MODULE_EXPORT void glcd_chr(Driver *drvthis, int x, int y, char c);
MODULE_EXPORT void glcd_vbar(Driver *drvthis, int x, int y, int len, int promille, int options);
MODULE_EXPORT void glcd_hbar(Driver *drvthis, int x, int y, int len, int promille, int options);
MODULE_EXPORT int glcd_icon(Driver *drvthis, int x, int y, int icon);
MODULE_EXPORT const char *glcd_get_info(Driver *drvthis);
#endif