/* Read multiple bytes from controller, with A0 = 1 */ void LCD_X_ReadM01(unsigned char * pData, int NumBytes) { LCD_SET_A0(); for (; NumBytes; NumBytes--) { LCD_X_READ(*pData); pData++; } }
/* Write multiple bytes to controller, with A0 = 1 */ void LCD_X_WriteM01(unsigned char * pData, int NumBytes) { LCD_SET_A0(); for (; NumBytes; NumBytes--) { LCD_X_WRITE(*pData); pData++; } }
/* Read multiple bytes from controller, with A0 = 1 */ void LCD_X_ReadM01_16(unsigned short * pData, int NumWords) { LCD_SET_A0(); for (; NumWords; NumWords--) { LCD_X_READ(*pData); pData++; } }
/* Write multiple bytes to controller, with A0 = 1 */ void LCD_X_WriteM01_16(unsigned short * pData, int NumWords) { LCD_SET_A0(); for (; NumWords; NumWords--) { LCD_X_WRITE(*pData); pData++; } }
/********************************************************************* * * LCD_X_8080_16_ReadM01_16 * * Purpose: * Read multiple bytes from controller, with A0 = 1 */ void LCD_X_8080_16_ReadM01_16(U16 * pData, int NumWords) { LCD_SET_A0(); for (; NumWords; NumWords--) { LCD_X_READ(*pData); pData++; } }
/********************************************************************* * * LCD_X_8080_16_WriteM01_16 * * Purpose: * Write multiple bytes to controller, with A0 = 1 */ void LCD_X_8080_16_WriteM01_16(U16 * pData, int NumWords) { LCD_SET_A0(); for (; NumWords; NumWords--) { LCD_X_WRITE(*pData); pData++; } }
/* Write multiple bytes to controller 2, with A0 = 1, CS0 = 0, CS1 = 1 */ void LCD_X_WriteM21(unsigned char * pData, int NumBytes) { LCD_SET_A0(); LCD_CLR_CS2(); for (; NumBytes; NumBytes--) { LCD_X_WRITE(*pData++); } LCD_SET_CS2(); }
/* Read from controller 2, with A0 = 1, CS0 = 1, CS1 = 1 */ unsigned char LCD_X_Read21(void) { unsigned char c; LCD_CLR_CS2(); LCD_SET_A0(); LCD_X_READ(); LCD_SET_CS2(); return c; }
void LCD_X_Init(void) { LCD_CLR_RESET(); LCD_SET_DIR_OUT(); LCD_SET_E(); LCD_CLR_RW(); LCD_SET_A0(); LCD_SET_CS0(); LCD_SET_CS1(); LCD_SET_CS2(); LCD_SET_RESET(); }
/* Read from controller, with A0 = 1 */ unsigned char LCD_X_Read01(void) { unsigned char c; LCD_SET_A0(); LCD_X_READ(c); return c; }
/* Write to controller, with A0 = 1 */ void LCD_X_Write01(unsigned char c) { LCD_SET_A0(); LCD_X_WRITE(c); }
/* Write to controller 2, with A0 = 1, CS0 = 1, CS1 = 1 */ void LCD_X_Write21(unsigned char c) { LCD_SET_A0(); LCD_CLR_CS2(); LCD_X_WRITE(c); LCD_SET_CS2(); }
/* Read from controller, with A0 = 1 */ unsigned short LCD_X_Read01_16(void) { unsigned short c; LCD_SET_A0(); LCD_X_READ(c); return c; }
/* Write to controller, with A0 = 1 */ void LCD_X_Write01_16(unsigned short c) { LCD_SET_A0(); LCD_X_WRITE(c); }
/********************************************************************* * * LCD_X_8080_16_Read01_16 * * Purpose: * Read from controller, with A0 = 1 */ U16 LCD_X_8080_16_Read01_16(void) { U16 c; LCD_SET_A0(); LCD_X_READ(c); return c; }
/********************************************************************* * * LCD_X_8080_16_Write01_16 * * Purpose: * Write to controller, with A0 = 1 */ void LCD_X_8080_16_Write01_16(U16 c) { LCD_SET_A0(); LCD_X_WRITE(c); }