static void fb_ssd1783_send_cmdlist(const struct ssd1783_cmdlist *p) { int i=0; while(p->is_cmd != END) { uint16_t sendcmd = p->data; if(p->is_cmd == DATA) sendcmd |= 0x0100; /* 9th bit is cmd/data flag */ uwire_xfer(SSD1783_DEV_ID, SSD1783_UWIRE_BITLEN, &sendcmd, NULL); p++; i++; } }
lcd_inline void write_data(uint16_t datain) { uint16_t dataout = 0x0100 | fix_rrr(rgb_to_pixel(datain)); uwire_xfer(SSD1783_DEV_ID,SSD1783_UWIRE_BITLEN,&dataout, NULL); }