Example #1
0
  //-----------------------------------------------------------------------------
  // FUNCTION:    D4DLCDHW_SendDataWord_Gpio8080_16b
  // SCOPE:       Low Level Driver API function
  // DESCRIPTION: The function send the one 16 bit variable into LCD
  //
  // PARAMETERS:  unsigned short value    variable to send
  //
  // RETURNS:     none
  //-----------------------------------------------------------------------------
  static void D4DLCDHW_SendDataWord_Gpio8080_16b(unsigned short value)
  {
    OUTPUT_ALL(D4DLCD_DATA);
    D4DLCD_ASSERT_CS;

    D4DLCD_DATA_WRITE(value);
    D4DLCD_ASSERT_WR;
    D4DLCD_DEASSERT_WR;

    D4DLCD_DEASSERT_CS;
  }
Example #2
0
 //-----------------------------------------------------------------------------
 // FUNCTION:    D4DLCDHW_SendDataWord_Gpio8080_8b
 // SCOPE:       Low Level Driver API function
 // DESCRIPTION: The function send the one 16 bit variable into LCD  
 //
 // PARAMETERS:  unsigned short value    variable to send
 //
 // RETURNS:     none
 //-----------------------------------------------------------------------------
 static void D4DLCDHW_SendDataWord_Gpio8080_8b(unsigned short value)
 {       
   OUTPUT_ALL(D4DLCD_DATA);
   D4DLCD_ASSERT_CS;
   
   D4DLCD_DATA_WRITE((unsigned char) ((value >> 8) & 0xff)); // msb!
   D4DLCD_ASSERT_WR;
   D4DLCD_DEASSERT_WR;                
   
   D4DLCD_DATA_WRITE((unsigned char) (value & 0xff));           // lsb!
   D4DLCD_ASSERT_WR;
   D4DLCD_DEASSERT_WR;        
   
   D4DLCD_DEASSERT_CS;
 }