TFT
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 69
of file tftspi.c
.
References CMU_ClockEnable(), cmuClock_GPIO, cmuClock_HFPER, 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] reg
Register to write to [in] data
16-bit data to write into register
- Note
- It is not possible to read back register value through SSD2119 SPI interface.
Definition at line 104
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 61
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] tftInit
Pointer to EBI TFT initialization structure
- Returns
- true if we should redraw into buffer, false if BC has control over display
Definition at line 77
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:130
em_usart.h:185
em_usart.h:108
Set default values for tft synchronous mode init structure
Definition at line 50
of file tftspi.c
.
|
static |
Flag to indicate that we need to initialize once if starting up in
Definition at line 51
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 52
of file tftamapped.c
.
Referenced by TFT_AddressMappedInit().