diff options
Diffstat (limited to 'glcd/glcdWorker.h')
-rw-r--r-- | glcd/glcdWorker.h | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/glcd/glcdWorker.h b/glcd/glcdWorker.h index 40e315b5..c1e98459 100644 --- a/glcd/glcdWorker.h +++ b/glcd/glcdWorker.h @@ -1,6 +1,8 @@ #ifndef GLCD_WORKER_H #define GLCD_WORKER_H +#include "glcd.h" + #define GLCD_WORKER_SIZE 512 enum glcd_action { GLCD_SET_POWERMODE, @@ -15,15 +17,9 @@ enum glcd_action { GLCD_SET_POWERMODE, GLCD_WRITE_STREAM_STOP, GLCD_WRITE_STREAM, GLCD_VERTICAL_SCROLL, + GLCD_DRAW_CHAR, }; -enum glcd_result { GLCD_DONE, - GLCD_FAILED, - GLCD_PROGRESS, - }; - -typedef enum glcd_result glcd_result_t; - #define _glcd_msg_base \ enum glcd_action action; @@ -120,5 +116,18 @@ struct glcd_msg_vertical_scroll { int16_t lines; }; +struct glcd_msg_draw_char { + _glcd_msg_base; + + uint16_t cx; + uint16_t cy; + uint16_t color; + uint16_t bkcolor; + uint16_t ret_width; + char c; + const uint8_t *font; + bool_t tpText; +}; + #endif |