MODIFICATION HISTORY:
Ver Who Date Changes ----- ---- -------- ----------------------------------------------- 1.00a sg 03/24/08 First release 2.00a ktn 07/06/09 Added XTft_IntrEnable(), XTft_IntrDisable()and, XTft_GetVsyncStatus() functions to access newly added Interrupt Enable and Status Register. 3.00a ktn 10/22/09 Updated driver to use the HAL APIs/macros. Removed the macros XTft_mSetPixel and XTft_mGetPixel. 3.00a bss 01/16/12 Updated driver to remove warnings from asserts. 3.01a sg 05/30/12 Corrected the brace error introduced in XTft_GetPixel while changing it from macro to function for CR 647750. 3.02a bss 11/30/12 CR 690338 - Corrected the brace error introduced in XTft_GetPixel for CR 647750. 4.00a bss 01/25/13 Added support for AXI TFT controller, XTft_WriteReg and XTft_ReadReg functions are updated Removed all functionality associated with DCR access
#include "xtft.h"
#include "xtft_charcode.h"
Functions | |
int | XTft_CfgInitialize (XTft *InstancePtr, XTft_Config *ConfigPtr, u32 EffectiveAddr) |
void | XTft_SetPos (XTft *InstancePtr, u32 ColVal, u32 RowVal) |
void | XTft_SetPosChar (XTft *InstancePtr, u32 ColVal, u32 RowVal) |
void | XTft_SetColor (XTft *InstancePtr, u32 FgColor, u32 BgColor) |
void | XTft_SetPixel (XTft *InstancePtr, u32 ColVal, u32 RowVal, u32 PixelVal) |
void | XTft_GetPixel (XTft *InstancePtr, u32 ColVal, u32 RowVal, u32 *PixelVal) |
void | XTft_Write (XTft *InstancePtr, u8 CharValue) |
void | XTft_Scroll (XTft *InstancePtr) |
void | XTft_ClearScreen (XTft *InstancePtr) |
void | XTft_FillScreen (XTft *InstancePtr, u32 ColStartVal, u32 RowStartVal, u32 ColEndVal, u32 RowEndVal, u32 PixelVal) |
void | XTft_EnableDisplay (XTft *InstancePtr) |
void | XTft_DisableDisplay (XTft *InstancePtr) |
void | XTft_ScanReverse (XTft *InstancePtr) |
void | XTft_ScanNormal (XTft *InstancePtr) |
void | XTft_SetFrameBaseAddr (XTft *InstancePtr, u32 NewFrameBaseAddr) |
void | XTft_WriteReg (XTft *InstancePtr, u32 RegOffset, u32 Data) |
u32 | XTft_ReadReg (XTft *InstancePtr, u32 RegOffset) |
void | XTft_IntrEnable (XTft *InstancePtr) |
void | XTft_IntrDisable (XTft *InstancePtr) |
int | XTft_GetVsyncStatus (XTft *InstancePtr) |
|
This function initializes a TFT Driver Instance.
|
|
This function re-initializes all the pixels to the default background color.
|
|
This function disables the TFT display by clearing the Display Enable bit in the Control register.
|
|
This function enables the TFT display by setting the Display Enable bit in the Control register.
|
|
This function fills the screen with the range defined by the start and end values of column and row with the color passed as argument.
|
|
This function gets the color of the pixel at the given column, row position.
|
|
This function gets the Vsync(Video address latch) status from the Interrupt Enable and Status Register.
|
|
This function disables the Vsync Interrupt in the Interrupt Enable and Status Register.
|
|
This function enables the Vsync Interrupt in the Interrupt Enable and Status Register.
|
|
Read a value from a TFT register. A 32 bit read is performed.
|
|
This function enables normal scan by clearing the Display Scan Control(DPS) bit in the Control register.
|
|
This function enables reverse scan by setting the Display Scan Control(DPS) bit in the Control register.
|
|
This function inserts a new blank line at the bottom of the screen, it deletes the first line and moves the remaining lines up by one line.
|
|
This function changes the color values in the instance structure of driver.
|
|
This function changes the Video Memory Base address stored in the Address Register.
|
|
This function sets the pixel with the given color at the given column, row position.
|
|
This function updates the column, row position in the Instance structure of driver.
|
|
This function changes the column, row position in the Instance structure of driver. It is used to correct the position for the next character to be written if column and row position cross limits.
|
|
This function performs one of the following three operations based on the CharValue passed :
|
|
Write a value to a TFT register. A 32 bit write is performed.
|