void GUI_Dot(uint16 x,uint16 y) { BEGIN_CMD(); TX_8(0x50); TX_16(x); TX_16(y); END_CMD(); }
void AnimationPlayNext(uint16 screen_id,uint16 control_id) { BEGIN_CMD(); TX_8(0xB1); TX_8(0x25); TX_16(screen_id); TX_16(control_id); END_CMD(); }
void GetControlValue(uint16 screen_id,uint16 control_id) { BEGIN_CMD(); TX_8(0xB1); TX_8(0x11); TX_16(screen_id); TX_16(control_id); END_CMD(); }
void ColorPicker(uint8 mode, uint16 x,uint16 y) { BEGIN_CMD(); TX_8(0xA3); TX_8(mode); TX_16(x); TX_16(y); END_CMD(); }
void GUI_BcolorConOffsetDots(uint16 x,uint16 y,uint8 *dot_offset,uint16 dot_cnt) { BEGIN_CMD(); TX_8(0x76); TX_16(x); TX_16(y); TX_16N(dot_offset,dot_cnt); END_CMD(); }
void SetFont_Region(uint8 enable,uint16 width,uint16 height) { BEGIN_CMD(); TX_8(0x45); TX_8(enable); TX_16(width); TX_16(height); END_CMD(); }
void GUI_ConSpaceDots(uint16 x,uint16 x_space,uint16 *dot_y,uint16 dot_cnt) { BEGIN_CMD(); TX_8(0x59); TX_16(x); TX_16(x_space); TX_16N(dot_y,dot_cnt); END_CMD(); }
void AnimationPause(uint16 screen_id,uint16 control_id) { BEGIN_CMD(); TX_8(0xB1); TX_8(0x22); TX_16(screen_id); TX_16(control_id); END_CMD(); }
void AnimationStart(uint16 screen_id,uint16 control_id) { BEGIN_CMD(); TX_8(0xB1); TX_8(0x20); TX_16(screen_id); TX_16(control_id); END_CMD(); }
void SetTextValue(uint16 screen_id,uint16 control_id,uchar *str) { BEGIN_CMD(); TX_8(0xB1); TX_8(0x10); TX_16(screen_id); TX_16(control_id); SendStrings(str); END_CMD(); }
void SetButtonValue(uint16 screen_id,uint16 control_id,uchar state) { BEGIN_CMD(); TX_8(0xB1); TX_8(0x10); TX_16(screen_id); TX_16(control_id); TX_8(state); END_CMD(); }
void SetControlEnable(uint16 screen_id,uint16 control_id,uint8 enable) { BEGIN_CMD(); TX_8(0xB1); TX_8(0x04); TX_16(screen_id); TX_16(control_id); TX_8(enable); END_CMD(); }
void SetControlFocus(uint16 screen_id,uint16 control_id,uint8 focus) { BEGIN_CMD(); TX_8(0xB1); TX_8(0x02); TX_16(screen_id); TX_16(control_id); TX_8(focus); END_CMD(); }
void GraphChannelDataClear(uint16 screen_id,uint16 control_id,uint8 channel) { BEGIN_CMD(); TX_8(0xB1); TX_8(0x33); TX_16(screen_id); TX_16(control_id); TX_8(channel); END_CMD(); }
void GUI_AreaInycolor(uint16 x0, uint16 y0, uint16 x1,uint16 y1 ) { BEGIN_CMD(); TX_8(0x65); TX_16(x0); TX_16(y0); TX_16(x1); TX_16(y1); END_CMD(); }
void GUI_Line(uint16 x0, uint16 y0, uint16 x1, uint16 y1) { BEGIN_CMD(); TX_8(0x51); TX_16(x0); TX_16(y0); TX_16(x1); TX_16(y1); END_CMD(); }
void DisFlashImage(uint16 x,uint16 y,uint16 flashimage_id,uint8 enable,uint8 playnum) { BEGIN_CMD(); TX_8(0x80); TX_16(x); TX_16(y); TX_16(flashimage_id); TX_8(enable); TX_8(playnum); END_CMD(); }
void GraphChannelAdd(uint16 screen_id,uint16 control_id,uint8 channel,uint16 color) { BEGIN_CMD(); TX_8(0xB1); TX_8(0x30); TX_16(screen_id); TX_16(control_id); TX_8(channel); TX_16(color); END_CMD(); }
void GUI_DispRTC(uint8 enable,uint8 mode,uint8 font,uint16 color,uint16 x,uint16 y) { BEGIN_CMD(); TX_8(0x85); TX_8(enable); TX_8(mode); TX_8(font); TX_16(color); TX_16(x); TX_16(y); END_CMD(); }
void ShowKeyboard(uint8 show,uint16 x,uint16 y,uint8 type,uint8 option,uint8 max_len) { BEGIN_CMD(); TX_8(0x86); TX_8(show); TX_16(x); TX_16(y); TX_8(type); TX_8(option); TX_8(max_len); END_CMD(); }
void GraphChannelDataAdd(uint16 screen_id,uint16 control_id,uint8 channel,uint8 *pData,uint16 nDataLen) { BEGIN_CMD(); TX_8(0xB1); TX_8(0x32); TX_16(screen_id); TX_16(control_id); TX_8(channel); TX_16(nDataLen); TX_8N(pData,nDataLen); END_CMD(); }
void BatchBegin(uint16 screen_id) { BEGIN_CMD(); TX_8(0xB1); TX_8(0x12); TX_16(screen_id); }
void SetFcolor(uint16 color) { BEGIN_CMD(); TX_8(0x41); TX_16(color); END_CMD(); }
void DisFull_Image(uint16 image_id,uint8 masken) { BEGIN_CMD(); TX_8(0x31); TX_16(image_id); TX_8(masken); END_CMD(); }
void SendNU16(uint16 *pData,uint16 nDataLen) { uint16 i = 0; for (i = 0; i < nDataLen; i++) { TX_16(pData[i]); } }
void ReadUserFlash(uint32 startAddress,uint16 length) { BEGIN_CMD(); TX_8(0x88); TX_32(startAddress); TX_16(length); END_CMD(); }
void SetScreen(uint16 screen_id) { BEGIN_CMD(); TX_8(0xB1); TX_8(0x00); TX_16(screen_id); END_CMD(); }
void GraphSetViewport(uint16 screen_id,uint16 control_id,int16 x_offset,uint16 x_mul,int16 y_offset,uint16 y_mul) { BEGIN_CMD(); TX_8(0xB1); TX_8(0x34); TX_16(screen_id); TX_16(control_id); TX_16(x_offset); TX_16(x_mul); TX_16(y_offset); TX_16(y_mul); END_CMD(); }
void SendBeginCMD() { TX_8(0xEE) } void SendEndCmd() { TX_32(0xFFFCFFFF) } void SetHandShake() COMMAND_BODY(0x00,) void SetFcolor(uint16 fcolor) COMMAND_BODY(0x41,TX_16(fcolor)) void SetBcolor(uint16 bcolor) COMMAND_BODY(0x42,TX_16(bcolor)) void ColorPicker(uint8 mode, uint16 x,uint16 y) COMMAND_BODY(0xA3,SendChar(mode);TX_16X2(x,y)) void GUI_CleanScreen() COMMAND_BODY(0x01,) void SetTextSpace(uint8 x_w, uint8 y_w) COMMAND_BODY(0x43,TX_8X2(x_w,y_w)) void SetFont_Region(uint8 enable,uint16 length,uint16 width) COMMAND_BODY(0x45,TX_8(enable)TX_16X2(length,width))
void BatchSetText(uint16 control_id,uchar *strings) { TX_16(control_id); TX_16(GetStringLen(strings)); SendStrings(strings); }