![](http://datasheet.mmic.net.cn/260000/PPSMMANUAL_datasheet_15946768/PPSMMANUAL_47.png)
7-2
UsinDatabase Management
Programmer’s Manual
7.1.2
Unformatted Data
Unformatted data is data that has to be accessed as one complete block. There is
only one unformatted data field allowed per record. The unformatted data can be
one of the following eight types defined as follows:
type 0 text (ASCII code record)
type 1 decompressed PPSM LCD bitmap
type 2 compressed PPSM LCD bitmap
type 3 mixed text and graphics
type 4 reserved
type 5 text followed by decompressed PPSM LCD bitmap
type 6 text followed by compressed PPSM LCD bitmap
type 7 text followed by mixed text and graphics
PPSM will keep track of the size of the unformatted data field of a record in the
record information field.
7.2
The Database Manipulation Tools
PPSM provides a set of tools to operate on databases and records. Conceptually,
they can be grouped together in the following way:
1)
Operate at the database level:
Add or delete a database.
Inquire the total number of database present in the current
environment.
Set or clear the database secret flag.
Interrogate the database secret flag.
Operate at the individual record level:
Add or delete a record.
Add a blank record to the top of the record list.
Append a blank record after a specified record in the record list.
Write or read formatted data of a record.
Write or read unformatted data of a record.
Get the ID of the first record in the list.
Get the ID of the previous or next record in the list.
Search for a record using a formatted data field as a key.
Set or clear the record secret flag.
Interrogate the record secret flag.
Inquire the total number of record present in a particular
2)
DB_COMPANY
Company
60
1,2,3,4,5
5 additional fields
60
Table 7-1 Predefined field format used in the PDA environment
Field Index
Field Name
Max. Field Size
Personal Portable System Manager
Programmer’s Manual
6-37
PPSM_CURSOR_REVERSED.
Example 6-34 When the hardware cursor status is needed:
U16 status;
/* get the hardware cursor status */
CursorGetStatus(&status);
6.31.5
Set Hardware Cursor Blinking Frequency
STATUS
CursorSetBlink
This routine will set the hardware cursor blinking frequency to “frequency” number
of blinks per 10 seconds.
6.31.6
Turn Hardware Cursor Off
STATUS
CursorOff
(void)
This routine will turn off the hardware cursor permanently. In order to turn on the
hardware cursor again, the application has to set the characteristics of the cursor
and follows by calling CursorSetStatus(PPSM_CURSOR_ON).
6.32
Display Other Region of Panning Screen
STATUS
CursorSetOrigin
)
STATUS
LCDScreenMove
)
These two routines together will move the LCD display origin to (x, y) so that
different regions of the panning screen can be displayed instantaneously. These
two routines must be used together. In PPSM V3.11, these 2 routines are
replaced by DisplayMove().
Example 6-35 Display other region of panning screen
U16 x=50, y=50;
/* set the LCD display screen origin to be (50, 50) on panning screen */
CursorSetOrigin(x, y);
/* change the hardware register to display the rectangular on panning screen with
top left corner at (50, 50) */
LCDScreenMove(x, y);
The LCD Display screen will now display the rectangular region of the panning
screen with top left corner at (50, 50).
Get LCD Display Origin on Panning Screen
STATUS
CursorGetOrigin
)
This routine will return the current LCD display screen origin relative to the
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.