コード例 #1
0
/******************************************************************************
* ID : 70.0
* Outline : YRDKRL78_CommandSend
* Include : YRDKRL78_RSPI0.h
* Function Name: YRDKRL78_CommandSend
* Description : Send a command define to the LCD.  The defines for all commands
* available to send to the ST7579 LCD controller are defined in the header
* for this file RL78_LCD.h.  The nCommand parameter should always be
* a define from that location.
* Argument : cCommand - 8 bits of data to be used as a command to the LCD
*          : aHandle - the Glyph handle setup by the LCD and Communications.
* Return Value : none
* Calling Functions : ST7579_Config, ST7579_SetSystemBiasBooster,
*                     ST7579_SetVO_Range, ST7579_SetFrameRate,
*                     ST7579_SetPage, ST7579_SetChar, ST7579_SetLine,
*                     ST7579_Send8bitsData, ST7579_Send16bitsCommand
******************************************************************************/
void YRDKRL78_CommandSend(int8_t cCommand)
{
    SetSendCommand() ;

    SPI_Send(SPI_LCD, (uint8_t *)&cCommand, 1);

    SetSendData() ;
}
/******************************************************************************
* ID : 70.0
* Outline : YRDKRX62N_CommandSend
* Include : YRDKRX62N_RSPI0.h
* Function Name: YRDKRX62N_CommandSend
* Description : Send a command define to the LCD.  The defines for all commands
* available to send to the ST7579 LCD controller are defined in the header
* for this file RX62N_LCD.h.  The nCommand parameter should always be
* a define from that location.
* Argument : cCommand - 8 bits of data to be used as a command to the LCD
*          : aHandle - the Glyph handle setup by the LCD and Communications.
* Return Value : none
* Calling Functions : ST7579_Config, ST7579_SetSystemBiasBooster,
*                     ST7579_SetVO_Range, ST7579_SetFrameRate,
*                     ST7579_SetPage, ST7579_SetChar, ST7579_SetLine,
*                     ST7579_Send8bitsData, ST7579_Send16bitsCommand
******************************************************************************/
void YRDKRX62N_CommandSend(int8_t cCommand)
{
    /* Send Command To LCD */
    /* A0 = 0 */
    SetSendCommand() ;

    YRDKRX62N_RSPITransferOutWord8Bit(cCommand) ;

    /* A0 = 1 */
    SetSendData() ;
}
コード例 #3
0
/******************************************************************************
* ID : 70.0
* Outline : Glyph_uEZ_CommandSend
* Include : Glyph_uEZ_0.h
* Function Name: Glyph_uEZ_CommandSend
* Description : Send a command define to the LCD.  The defines for all commands
* available to send to the ST7579 LCD controller are defined in the header
* for this file RX62N_LCD.h.  The nCommand parameter should always be
* a define from that location.
* Argument : cCommand - 8 bits of data to be used as a command to the LCD
*          : aHandle - the Glyph handle setup by the LCD and Communications.
* Return Value : none
* Calling Functions : ST7579_Config, ST7579_SetSystemBiasBooster,
*                     ST7579_SetVO_Range, ST7579_SetFrameRate,
*                     ST7579_SetPage, ST7579_SetChar, ST7579_SetLine,
*                     ST7579_Send8bitsData, ST7579_Send16bitsCommand
******************************************************************************/
void Glyph_uEZ_CommandSend(int8_t cCommand)
{
    /* Send Command To LCD */
    /* A0 = 0 */
    SetSendCommand() ;
    
    Glyph_uEZ_TransferOutWord8Bit(cCommand) ;

    /* A0 = 1 */
    SetSendData() ;
}