Streszczenie treści zawartej na stronie nr. 1
PA-2400W
C Library Manual
(Version 1.00)
CASIO Computer Co., Ltd.
Copyright ©1999. All rights reserved.
July 1999
Streszczenie treści zawartej na stronie nr. 2
Table of Contents Preface 4 Chapter 1 Supported Files 5 1.1 Dedicated Library and Utility 7 1.1.1 System Library 7 1.1.2 SIPanel Library 7 1.1.3 I/O Bootup Library 7 1.1.4 File Transfer Utility 8 1.1.5 File Check Utility 8 Chapter 2 Development Environment 9 Chapter 3 System Library 10 3.1 Overview 10 3.2 Details of Function 11 CA_BacklightOn 11 CA_BacklightOff 12 CA_BacklightCheck 13 SyncPowerOff 14 DisablePowerOff 15 EnablePowerOff 16 StatusPowerOff 17 ApoCountReset 18 SoftReset 19 SetPowerOnA
Streszczenie treści zawartej na stronie nr. 3
7.7 Method of Describing Pathname 48 7.8 Conditions at Communication Partner 50 7.8.1 Rules of Naming File and Directory Pathname 50 7.9 Setting Up Registry 51 7.9.1 Setting Up Items 51 7.9.2 Setting Up Registry with User Application 52 7.10 Termination Codes 54 7.11 Log File 56 7.12 Precautions 57 7.13 Details of Command and Option 58 FLCE /Y 58 FLCE /S 59 FLCE /R 60 FLCE /A 61 FLCE /D 62 FLCE /N 63 FLCE /T 64 FLCE (Idle Start) 65 7.14 Command and Status 66 7.15 Retry Process When Downloading F
Streszczenie treści zawartej na stronie nr. 4
Preface This manual describes the C language-dedicated library functions and utilities that run on the CASIO PA-2400W (hereinafter referred to as "H/PC", which stands for Handheld PC). The PA-2400W uses the Windows CE operating system (Ver. 2.11), and uses the Win32 API functions to generate user application programs. However, more functions may be required if generating a business application, etc. The C language-dedicated library functions and utilities described in this manual are used to sup
Streszczenie treści zawartej na stronie nr. 5
1. Supported Files The following files will be supported by the C-library functions and utilities described in this manual. Table 1.1 File Function Description System Library CA_BacklightOn CasioSys.lib Turns on the backlight. CasioSys.h CA_BacklightOff Turns off the backlight. CA_BacklightCheck Acquires the status of the backlight. SyncPowerOff Turns off the power after completion of access to card. DisablePowerOff Disables power off with the power button. EnablePowerOff Enables power off with
Streszczenie treści zawartej na stronie nr. 6
Notes: 1. Since the “SIPanel.dll” and “SIPanel.exe” in English version are pre-installed in the ROM, you do not need to install it every time you use the software input panel. However, if you use other language versions of the SIPanel, you need to replace them. 2. Each library function or utility command can be made available to the user when the DLL/EXE file is copied into the Windows directory on the PA-2400W (see the figure below). Host PC PA-2400W Copy Fig. 1.1 System configuration 6
Streszczenie treści zawartej na stronie nr. 7
1.1 Dedicated Library and Utility 1.1.1 System Library Table 1.2 No. Function Description Page CA_BacklightOn 1 Turns on the backlight. 11 CA_BacklightOff 2 Turns off the backlight. 12 CA_BacklightCheck 3 Acquires the status of backlight. 13 SyncPowerOff 4 Turns off after completion of access to a card. 14 DisablePowerOff 5 Disables power off with the power button. 15 EnablePowerOff 6 Enables power on with the power button. 16 StatusPowerOff 7 Acquires the status of enable/disable power off wi
Streszczenie treści zawartej na stronie nr. 8
1.1.4 File Transfer Utility Table 1.5 File transfer utility No. Command Description Page 1 FLCE /Y Communication environment setup/Idle start 58 2 FLCE /S File transmission 59 3 FLCE /R File reception 60 4 FLCE /A File transmission (append) 61 5 FLCE /D File deletion 62 6 FLCE /N File move/File name modification 63 7 FLCE /T Time transmission 64 8 FLCE Idle start 65 1.1.5 File Check Utility Table 1.6 File check utility No. Command Description Page 1 FCHKCE /G Generation of a list file 81 2
Streszczenie treści zawartej na stronie nr. 9
2. Development Environment Your own application program can be developed by implementing the CASIO’s dedicated library functions and utility commands listed in the previous pages under the following software development environment. Microsoft Visual C/C++ version 6.0 Microsoft Windows CE Toolkit for Visual C/C++ 6.0 Windows CE version 2.11 SDK (US version) 9
Streszczenie treści zawartej na stronie nr. 10
3. System Library 3.1 Overview This System Library functions can provide you with various dedicated functions such as backlight control, power OFF supplement control, power-ON control with alarm, etc. These functions to be described in the next pages are developed only for the PA-2400W and therefore not guaranteed for use with other hardware platforms. Also, please note that it is not a Windows CE general- purpose library. 10
Streszczenie treści zawartej na stronie nr. 11
3.2 Details of Function CA_BacklightOn Title Function Turns on the backlight. If this function is called while the backlight is already on, nothing will happen. C Language Interface Calling Sequence BOOL CA_BacklightOn () Parameters None Return Values TRUE : Normal end Header #include Remarks The automatic backlight off will be remained active after this function is called. Duration of the automatic backlight off can be set at the control panel. For example,
Streszczenie treści zawartej na stronie nr. 12
CA_BacklightOff Title Function Turns off the backlight. C Language Interface Calling Sequence BOOL CA_BacklightOff() Parameters None Return Values TRUE : Normal end Header #include Remarks This function can turn off the backlight which is turned on by a keyboard operation. 12
Streszczenie treści zawartej na stronie nr. 13
Title Function CA_BacklightCheck Acquires the status of the backlight if it is set to on or off. C Language Interface Calling Sequence BOOL CA_BacklightCheck() Parameters None Return Values TRUE : Backlight is on. FALSE : Backlight is off. Header #include Remarks 13
Streszczenie treści zawartej na stronie nr. 14
SyncPowerOff Title Function Turns off the power after access to an installed card is complete. C Language Interface Calling Sequence BOOL SyncPowerOff() Parameters None Return Values TRUE : Normal end. Header #include Remarks 14
Streszczenie treści zawartej na stronie nr. 15
DisablePowerOff Title Function Disables power-off with the power button. This setting is cleared when the power is turned on. C Language Interface Calling Sequence BOOL DisablePowerOff() Parameters None Return Values TRUE : Normal end. Header #include Remarks 15
Streszczenie treści zawartej na stronie nr. 16
EnablePowerOff Title Function Enables the power to be turned off with the power button. C Language Interface Calling Sequence BOOL EnablePowerOff() Parameters None Return Values TRUE : Normal end. Header #include Remarks 16
Streszczenie treści zawartej na stronie nr. 17
StatusPowerOff Title Function Acquires the status of “enable/disable the power to be turned off with the power button”. C Language Interface Calling Sequence BOOL StatusPowerOff() Parameters None Return Values FALSE : Disable “the power to be turned off with the power button.” TRUE : Enable “the power to be turned off with the power button.” Header #include Remarks 17
Streszczenie treści zawartej na stronie nr. 18
ApoCountReset Title Function Resets the counter of APO time. By calling this function before elapse of the APO time set at the control panel, APO can be disabled. C Language Interface Calling Sequence BOOL ApoCountReset() Parameters None Return Values TRUE : Normal end. Header #include Remarks 18
Streszczenie treści zawartej na stronie nr. 19
SoftReset Title Function Resets the system. After this function is called, a worm-bootup is performed. C Language Interface Calling Sequence void SoftReset() Parameters None Return Values None Header #include Remarks When this function is called, a warm-bootup is immediately performed. This will cause file and data being accessed to be erased. All files and devices being currently opened must be closed before this function is activated. 19
Streszczenie treści zawartej na stronie nr. 20
SetPowerOnAlarm Title Function Enables or disables “the automatic power-on to be activated with the alarm”. C Language Interface Calling Sequence BOOL SetPowerOnAlarm ( BOOL bMode); Parameters BOOL bMode FALSE : Disables “automatic power-on with the alarm”. TRUE : Enables “automatic power-on with the alarm”. (default) Return Values TRUE : Normal end FALSE : Internal error Header #include Remarks Related operations to the “automatic power-on” after this funct