XilinxProcessorIPLib/drivers/tft/src/xtft.c
void XTft_SetColor(XTft *InstancePtr, u32 FgColor, u32 BgColor)
{
	/*
	 * Assert validates the input arguments.
	 */
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);

	/*
	 * Update the values in the instance structure.
	 */
	InstancePtr->BgColor = BgColor;
	InstancePtr->FgColor = FgColor;

}
/***************************************************************************/
/**
*
* This function changes the color values in the instance structure of driver.
*
* @param	InstancePtr is a pointer to the XTft instance.
* @param 	FgColor is the color with which member FgColor of Instance
*		structure is updated.
* @param 	BgColor is the color with which member BgColor of Instance
*		structure is updated.
*
* @return	None.
*
* @note		Color Values must be 32bit. They can range from 0x0 to
*		0xFFFFFFFF, out of these only 18 bits are valid data. These
*		18 bits contain the Red, Green, Blue color values with
*		6 bits each and bit positions as Red[8-13], Green[16-21],
*		Blue[24-29].
*
****************************************************************************/
This function changes the color values in the instance structure of driver.
This function changes the color values in the instance structure of driver .
void XTft_SetColor(XTft *InstancePtr, u32 FgColor, u32 BgColor)
{
	Xil_AssertVoid(InstancePtr != NULL);
	Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	InstancePtr->BgColor = BgColor;
	InstancePtr->FgColor = FgColor;
}
void XTft_SetColor ( XTft * InstancePtr , u32 FgColor , u32 BgColor ) { Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> IsReady == XIL_COMPONENT_IS_READY ) ; InstancePtr -> BgColor = BgColor ; InstancePtr -> FgColor = FgColor ; }
This function changes the color values in the instance structure of driver.
This function changes the color values in the instance structure of driver .
/*
	 * Assert validates the input arguments.
	 */ /*
	 * Update the values in the instance structure.
	 */