00001 /* 00002 * This file is part of displayMgr. 00003 * 00004 * displayMgr is free software: you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation, either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * displayMgr is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00023 // 00024 // 00025 // WARNING : keep these types in sync with einkfb.h! 00026 // 00027 // 00028 #ifndef DISPLAY_EINK_TYPES_H 00029 #define DISPLAY_EINK_TYPES_H 00030 00031 #define WAVEFORM_4BPP_IMAGE 1 00032 #define WAVEFORM_DRAW 4 00033 #define WAVEFORM_FAST_BLACK_WHITE 6 00034 #define WAVEFORM_TYPING 9 00035 00036 struct coordinates { 00037 unsigned short x1; 00038 unsigned short y1; 00039 unsigned short x2; 00040 unsigned short y2; 00041 }; 00042 00043 struct pixel { 00044 unsigned short x; 00045 unsigned short y; 00046 unsigned int size; 00047 unsigned int color; 00048 }; 00049 00050 struct pixelInfo { 00051 unsigned int count; 00052 struct pixel* pixels; 00053 }; 00054 00055 struct display_update_info { 00056 int waveform; 00057 int sequence; 00058 }; 00059 00060 struct partial_display_update_info { 00061 struct coordinates coord; 00062 int waveform; 00063 int sequence; 00064 }; 00065 00066 #endif // DISPLAY_EINK_TYPES_H
1.5.6