/* Write multiple bytes to controller, with A0 = 0 */ void LCD_X_WriteM00(unsigned char * pData, int NumBytes) { LCD_CLR_A0(); for (; NumBytes; NumBytes--) { LCD_X_WRITE(*pData); pData++; } }
/* Read multiple bytes from controller, with A0 = 0 */ void LCD_X_ReadM00_16(unsigned short * pData, int NumWords) { LCD_CLR_A0(); for (; NumWords; NumWords--) { LCD_X_READ(*pData); pData++; } }
/* Write multiple bytes to controller, with A0 = 0 */ void LCD_X_WriteM00_16(unsigned short * pData, int NumWords) { LCD_CLR_A0(); for (; NumWords; NumWords--) { LCD_X_WRITE(*pData); pData++; } }
/********************************************************************* * * LCD_X_8080_16_ReadM00_16 * * Purpose: * Read multiple bytes from controller, with A0 = 0 */ void LCD_X_8080_16_ReadM00_16(U16 * pData, int NumWords) { LCD_CLR_A0(); for (; NumWords; NumWords--) { LCD_X_READ(*pData); pData++; } }
/********************************************************************* * * LCD_X_8080_16_WriteM00_16 * * Purpose: * Write multiple bytes to controller, with A0 = 0 */ void LCD_X_8080_16_WriteM00_16(U16 * pData, int NumWords) { LCD_CLR_A0(); for (; NumWords; NumWords--) { LCD_X_WRITE(*pData); pData++; } }
/* Read from controller 2, with A0 = 0, CS0 = 1, CS1 = 1 */ unsigned char LCD_X_Read20(void) { unsigned char c; LCD_CLR_CS2(); LCD_CLR_A0(); LCD_X_READ(); LCD_SET_CS2(); return c; }
/* Read from controller, with A0 = 0 */ unsigned char LCD_X_Read00(void) { unsigned char c; LCD_CLR_A0(); LCD_X_READ(c); return c; }
/* Write to controller, with A0 = 0 */ void LCD_X_Write00(unsigned char c) { LCD_CLR_A0(); LCD_X_WRITE(c); }
/* Write to controller 2, with A0 = 0, CS0 = 1, CS1 = 1 */ void LCD_X_Write20(unsigned char c) { LCD_CLR_A0(); LCD_CLR_CS2(); LCD_X_WRITE(c); LCD_SET_CS2(); }
/* Read from controller, with A0 = 0 */ unsigned short LCD_X_Read00_16(void) { unsigned short c; LCD_CLR_A0(); LCD_X_READ(c); return c; }
/* Write to controller, with A0 = 0 */ void LCD_X_Write00_16(unsigned short c) { LCD_CLR_A0(); LCD_X_WRITE(c); }
/********************************************************************* * * LCD_X_8080_16_Read00_16 * * Purpose: * Read from controller, with A0 = 0 */ U16 LCD_X_8080_16_Read00_16(void) { U16 c; LCD_CLR_A0(); LCD_X_READ(c); return c; }
/********************************************************************* * * LCD_X_8080_16_Write00_16 * * Purpose: * Write to controller, with A0 = 0 */ void LCD_X_8080_16_Write00_16(U16 c) { LCD_CLR_A0(); LCD_X_WRITE(c); }