capi/2d.c File Reference

#include "2d.h"
#include "type.h"
#include "ssd192X.h"
Include dependency graph for 2d.c:
This graph shows which files directly or indirectly include this file:

Defines

#define abs(a, b)   a>b?(a-b):(b-a)

Functions

void WAIT_2D ()
void ssd_set_2d_rgb_reg (UINT8 r, UINT8 g, UINT8 b)
void ssd_set_2d_16bit_color (UINT16 c)
void ssd_set_16bbp_src_mode (SRCDST_MODE srcMode)
void ssd_set_16bbp_dst_mode (SRCDST_MODE dstMode)
void ssd_set_16bbp_srcdst_mode ()
void ssd_start_fifo (UINT8 wait)
void ssd_2d_line (WINDOW *pWnd, UINT16 x1, UINT16 y1, UINT16 x2, UINT16 y2, UINT16 c)
void ssd_2d_arc (WINDOW *pWnd, UINT16 x1, UINT16 y1, UINT16 rx, UINT16 ry, UINT16 startAng, UINT16 endAng, UINT16 c)
void ssd_2d_rect (WINDOW *pWnd, INT32 x, INT32 y, INT32 x2, INT32 y2, UINT16 rgb16Colour)
void ssd_2d_rect_outline (WINDOW *pWnd, INT32 x, INT32 y, INT32 x2, INT32 y2, UINT16 rgb16Colour)
void ssd192X_2d_stretch (INT32 SRC_STARTADDR, UINT16 SRC_LINEWIDTH, UINT16 SRC_WIDTH, UINT16 SRC_HEIGHT, INT32 DEST_STARTADDR, UINT16 DEST_LINEWIDTH, UINT16 DEST_WIDTH, UINT16 DEST_HEIGHT, UINT8 ORIENT)
void ssd192X_2d_blt (INT32 SRC_STARTADDR, UINT16 SRC_LINEWIDTH, UINT16 SRC_WIDTH, UINT16 SRC_HEIGHT, INT32 DEST_STARTADDR, UINT16 DEST_LINEWIDTH, ROTATE_TYPE orient)
void ssd_2d_blt (WINDOW *pSrcWnd, UINT16 x1, UINT16 y1, UINT16 srcWidth, UINT16 srcHeight, WINDOW *pDstWnd, UINT16 x2, UINT16 y2, UINT16 dstWidth, UINT16 dstHeight, UINT8 orient)
void ClearDisplay (int DEST_STARTADDR, int DEST_LINEWIDTH, int DEST_WIDTH, int DEST_HEIGHT)

Define Documentation

#define abs ( a,
 )     a>b?(a-b):(b-a)

Function Documentation

void ClearDisplay ( int  DEST_STARTADDR,
int  DEST_LINEWIDTH,
int  DEST_WIDTH,
int  DEST_HEIGHT 
)

References ssd192X_2d_stretch(), and SSD_MEMWW.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void ssd192X_2d_blt ( INT32  SRC_STARTADDR,
UINT16  SRC_LINEWIDTH,
UINT16  SRC_WIDTH,
UINT16  SRC_HEIGHT,
INT32  DEST_STARTADDR,
UINT16  DEST_LINEWIDTH,
ROTATE_TYPE  orient 
)
void ssd192X_2d_stretch ( INT32  SRC_STARTADDR,
UINT16  SRC_LINEWIDTH,
UINT16  SRC_WIDTH,
UINT16  SRC_HEIGHT,
INT32  DEST_STARTADDR,
UINT16  DEST_LINEWIDTH,
UINT16  DEST_WIDTH,
UINT16  DEST_HEIGHT,
UINT8  ORIENT 
)
void ssd_2d_arc ( WINDOW pWnd,
UINT16  x1,
UINT16  y1,
UINT16  rx,
UINT16  ry,
UINT16  startAng,
UINT16  endAng,
UINT16  c 
)
void ssd_2d_blt ( WINDOW pSrcWnd,
UINT16  x1,
UINT16  y1,
UINT16  srcWidth,
UINT16  srcHeight,
WINDOW pDstWnd,
UINT16  x2,
UINT16  y2,
UINT16  dstWidth,
UINT16  dstHeight,
UINT8  orient 
)

References ssd192X_2d_blt(), ssd192X_2d_stretch(), ssd_calc_start_addr(), and _WINDOW::width.

Referenced by main(), and TextOut().

Here is the call graph for this function:

Here is the caller graph for this function:

void ssd_2d_line ( WINDOW pWnd,
UINT16  x1,
UINT16  y1,
UINT16  x2,
UINT16  y2,
UINT16  c 
)
void ssd_2d_rect ( WINDOW pWnd,
INT32  x,
INT32  y,
INT32  x2,
INT32  y2,
UINT16  rgb16Colour 
)

References abs, ssd192X_2d_stretch(), ssd_calc_start_addr(), ssd_calc_start_addr_direct(), SSD_MEMWW, and _WINDOW::width.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void ssd_2d_rect_outline ( WINDOW pWnd,
INT32  x,
INT32  y,
INT32  x2,
INT32  y2,
UINT16  rgb16Colour 
)

References ssd_2d_line().

Referenced by DrawWidgets(), and main().

Here is the call graph for this function:

Here is the caller graph for this function:

void ssd_set_16bbp_dst_mode ( SRCDST_MODE  dstMode  ) 

References REG_2D_DEST_WND_COLOR_MODE, and SSD_REGWB.

Referenced by ssd_set_16bbp_srcdst_mode().

Here is the caller graph for this function:

void ssd_set_16bbp_src_mode ( SRCDST_MODE  srcMode  ) 

References REG_2D_SRC_WND_COLOR_MODE, and SSD_REGWB.

Referenced by ssd_set_16bbp_srcdst_mode().

Here is the caller graph for this function:

void ssd_set_16bbp_srcdst_mode (  ) 

References MODE_16BIT, ssd_set_16bbp_dst_mode(), and ssd_set_16bbp_src_mode().

Referenced by main(), ssd192X_2d_blt(), ssd192X_2d_stretch(), ssd_2d_arc(), and ssd_2d_line().

Here is the call graph for this function:

Here is the caller graph for this function:

void ssd_set_2d_16bit_color ( UINT16  c  ) 

References GetBlueFrom16bitColor(), GetGreenFrom16bitColor(), GetRedFrom16bitColor(), and ssd_set_2d_rgb_reg().

Referenced by ssd_2d_arc(), and ssd_2d_line().

Here is the call graph for this function:

Here is the caller graph for this function:

void ssd_set_2d_rgb_reg ( UINT8  r,
UINT8  g,
UINT8  b 
)

References REG_2D_WRITE_PATTERN0, REG_2D_WRITE_PATTERN1, REG_2D_WRITE_PATTERN2, and SSD_REGWB.

Referenced by ssd192X_2d_blt(), and ssd_set_2d_16bit_color().

Here is the caller graph for this function:

void ssd_start_fifo ( UINT8  wait  ) 

References REG_2D_CMD_FIFO_STATUS, SSD_REGWB, and WAIT_2D().

Referenced by ssd192X_2d_blt(), ssd192X_2d_stretch(), ssd_2d_arc(), and ssd_2d_line().

Here is the call graph for this function:

Here is the caller graph for this function:

void WAIT_2D ( void   ) 

References REG_2D_CMD_FIFO_FLAG, and SSD_REGRB.

Referenced by ssd_mem_dma_copy(), and ssd_start_fifo().

Here is the caller graph for this function:

Generated on Wed Mar 23 11:08:20 2011 for Omnima LCD by  doxygen 1.6.3