20-28
Programmer’s Manual
Parameter
Return Value
Hint
This must be used with CursorSetOrigin().
20.35
PutChar
Syntax
STATUS
PutChar
(U16 greyLevel, P_U8 character, U16 xPos, U16 yPos, U16
font, U16 width, U16 height, U16 style)
Description
This tool will put a 1 bit/pixel font image on 1 bit/pixel or 2 bit/pixel display
depending on whether ppsm1.a or ppsm2.a is linked.
Parameter
Name
Description
x
New x-coordinate of the origin of the LCD
display screen
y
New y-coordinate of the origin of the LCD
display screen
Name
Description
PPSM_OK
Successful operation
Name
Description
greyLevel
Grey Level of the character to put on
panning screen
character
Pointer to the character bitmap
xPos
x coordinate of the top left corner where
font is going to put
yPos
y coordinate of the top left corner where
font is going to put
font
SMALL_ITALIC_FONT and
LARGE_ITALIC_FONT font will be
handled differently to generate the italic
effect from a rectangular font bitmap.
width
Width of the character in number of pixels
height
Height of the character in number of pixels
Personal Portable System Manager
Programmer’s Manual
Graphics ToGraphics Tools
20-29
Syntax
STATUS
PutRec
(P_U8
,
U16 style
Description
Puts a rectangular bitmap image from memory to the specified location of the
panning screen.
Parameter
style
Name
Description
PPSM_OK
Successful operation
PPSM_ERR_PAN_INIT
Error if the task has no panning screen
PPSM_ERR_GREY
Invalid grey level
PPSM_ERR_LCD_X
Draw outside the panning screen. Invalid x
coordinate
PPSM_ERR_LCD_Y
Draw outside the panning screen. Invalid y
coordinate
PPSM_ERR_LCD_FONT
Invalid font
PPSM_ERR_LCD_STYLE
Invalid style
PPSM_ERROR
Invalid character pointer
Name
Description
bitmap
xSrc
ySrc
width
height
style
Name
Description
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.