lcd_spe_IL9325.c File Reference

Common functions for Open4 platforms with ILI9325 controller. More...

Go to the source code of this file.

Functions

void LCD_RectRead (coord_t x, coord_t y, coord_t width, coord_t height, u8 *bmp)
u16 LCD_GetPixel (coord_t x, coord_t y)
void LCD_SetRect_For_Cmd (coord_t x, coord_t y, coord_t width, coord_t height)
void LCD_FullScreen (bool FullScreenONOFF)
void LCD_SendPixelData (color_t color)

Detailed Description

Author:
YRT
Date:
08/2010
Note:
Platform = Open4

Definition in file lcd_spe_IL9325.c.


Function Documentation

void LCD_FullScreen ( bool  FullScreenONOFF  ) 

Defines the area availbale for applications (full screen or not).

Parameters:
[in] FullScreenONOFF : ON = full screen available for applications. OFF = only application area available for applications.
Note:
The screen orientation is stalled to the current orentation defined before function call.

Definition at line 679 of file lcd_spe_IL9325.c.

u16 LCD_GetPixel ( coord_t  x,
coord_t  y 
)

Read the RGB color of the pixel the coordinate are provided in parameter.

Parameters:
[in] x The horizontal coordinate of the pixel.
[in] y The vertical coordinate of the pixel.
Returns:
An unsigned 16 bit word containing the RGB color of the pixel.
Warning:
The (0x0) point in on the low left corner.
See also:
LCD_RectRead

Definition at line 546 of file lcd_spe_IL9325.c.

void LCD_RectRead ( coord_t  x,
coord_t  y,
coord_t  width,
coord_t  height,
u8 *  bmp 
)

Save the pixels of a rectangle part of the LCD into a RAM variable.

Parameters:
[in] x The horizontal coordinate of the rectangle low left corner.
[in] y The vertical coordinate of the rectangle low left corner.
[in] width The rectangle width in pixels.
[in] height The rectangle height in pixels.
[out] bmp The variable to store the read data into.
Warning:
One pixel weights 2 bytes.
The (0x0) point in on the low left corner.

Definition at line 437 of file lcd_spe_IL9325.c.

void LCD_SendPixelData ( color_t  color  ) 

Send a color two bytes to the LCD.

Parameters:
[in] Data An unsigned short containing the data to send to the LCD.
Precondition:
An LCD_SendLCDCmd was done with a command waiting for data.

Definition at line 747 of file lcd_spe_IL9325.c.

void LCD_SetRect_For_Cmd ( coord_t  x,
coord_t  y,
coord_t  width,
coord_t  height 
)

Define the rectangle for the next command to be applied.

Parameters:
[in] x The horizontal coordinate of the rectangle low left corner.
[in] y The vertical coordinate of the rectangle low left corner.
[in] width The rectangle width in pixels.
[in] height The rectangle height in pixels.
Warning:
The (0x0) point in on the low left corner.

Definition at line 574 of file lcd_spe_IL9325.c.