TFTKit Drivers
Detailed Description
Driver for SSD2119 TFT in Direct Drive or Adress Mapped mode.
| Functions | |
| void | SPI_TFT_Init (void) | 
| Initialize SPI interface to TFT-LCD SSD2119 controller. | |
| void | SPI_TFT_WriteRegister (uint8_t reg, uint16_t data) | 
| Write registers to SSD2119 controller. | |
| bool | TFT_AddressMappedInit (void) | 
| TFT initialize or reinitialize to Address Mapped Mode Assumes EBI has been configured correctly in BSP_Init(BSP_INIT_DK_EBI) | |
| void | TFT_DirectGPIOConfig (void) | 
| GPIO configuration for TFT direct drive. | |
| bool | TFT_DirectInit (const EBI_TFTInit_TypeDef *tftInit) | 
| TFT initialization funxction. Assumes EBI has been configured correctly in BSP_Init(BSP_INIT_DK_EBI) | |
| Variables | |
| static const USART_InitSync_TypeDef | inittft | 
| static bool | runOnce = true | 
| static bool | runOnce = true | 
Function Documentation
| void SPI_TFT_Init | ( | void | 
            | ) | 
Initialize SPI interface to TFT-LCD SSD2119 controller.
- Note
- To enable access, be sure to call the function BSP_PeripheralAccess() before using this interface.
        Definition at line
        
         56
        
        of file
        
         tftspi.c
        
        .
       
References CMU_ClockEnable() , cmuClock_GPIO , cmuClock_USART1 , GPIO_PinModeSet() , gpioModeInput , gpioModePushPull , USART_InitSync() , and USART_Reset() .
| void SPI_TFT_WriteRegister | ( | uint8_t | 
            reg,
            | 
| uint16_t | 
            data
            | ||
| ) | 
Write registers to SSD2119 controller.
- Parameters
- 
         [in] regRegister to write to [in] data16-bit data to write into register 
- Note
- It is not possible to read back register value through SSD2119 SPI interface.
        Definition at line
        
         91
        
        of file
        
         tftspi.c
        
        .
       
References GPIO_PinOutClear() , GPIO_PinOutSet() , USART_Rx() , and USART_Tx() .
| bool TFT_AddressMappedInit | ( | void | 
            | ) | 
TFT initialize or reinitialize to Address Mapped Mode Assumes EBI has been configured correctly in BSP_Init(BSP_INIT_DK_EBI)
- Returns
- true if we should redraw into buffer, false if BC has control over display
        Definition at line
        
         48
        
        of file
        
         tftamapped.c
        
        .
       
References BC_ARB_CTRL_EBI , BC_REGISTER , BC_SPI_DEMUX_SLAVE_AUDIO , BC_SPI_DEMUX_SLAVE_DISPLAY , BC_SSD2119_BASE , BC_UIF_AEM_EFM , BSP_Display_EBI , BSP_Display_Mode8080 , BSP_Display_PowerDisable , BSP_Display_PowerEnable , BSP_Display_ResetAssert , BSP_Display_ResetRelease , BSP_DisplayControl() , BSP_RegisterRead() , BSP_RegisterWrite() , runOnce , and SystemCoreClockGet() .
| bool TFT_DirectInit | ( | const EBI_TFTInit_TypeDef * | 
            tftInit
            | ) | 
TFT initialization funxction. Assumes EBI has been configured correctly in BSP_Init(BSP_INIT_DK_EBI)
- Parameters
- 
         [in] tftInitPointer to EBI TFT initialization structure 
- Returns
- true if we should redraw into buffer, false if BC has control over display
        Definition at line
        
         64
        
        of file
        
         tftdirect.c
        
        .
       
References BC_ARB_CTRL_EBI , BC_REGISTER , BC_UIF_AEM_EFM , BSP_Display_EBI , BSP_Display_ModeGeneric , BSP_Display_PowerDisable , BSP_Display_PowerEnable , BSP_Display_ResetAssert , BSP_Display_ResetRelease , BSP_DisplayControl() , BSP_PeripheralAccess() , BSP_RegisterRead() , BSP_TFT , runOnce , SystemCoreClockGet() , and TFT_DirectGPIOConfig() .
Variable Documentation
| 
 | static | 
           em_usart.h:131
          
         
           em_usart.h:186
          
         
           em_usart.h:109
          
         Set default values for tft synchronous mode init structure
        Definition at line
        
         37
        
        of file
        
         tftspi.c
        
        .
       
| 
 | static | 
Flag to indicate that we need to initialize once if starting up in
        Definition at line
        
         38
        
        of file
        
         tftdirect.c
        
        .
       
Referenced by TFT_DirectInit() .
| 
 | static | 
Flag to indicate that we need to initialize once if starting up in
        Definition at line
        
         39
        
        of file
        
         tftamapped.c
        
        .
       
Referenced by TFT_AddressMappedInit() .