PT-20 Programming Guide
98
Syntax
:
void SetAutoPWOff(int slTimer);
Example call
:
SetAutoPWOff(0);//Always on
Includes
:
#include “SDK.h ”
Description
:
This function can set auto power off timer. The range is from 30 to
65535(s),
If the value is 0, that means always on.
Returns
:
None
GetAutoPWOff
Purpose
:
Get auto power off timer.
Syntax
:
int GetAutoPWOff(void);
Example call
:
int slAPO;
slAPO = GetAutoPWOff( );
Includes
:
#include “SDK.h ”
Description
:
This function can get auto power off timer.
Returns
:
Auto power off timer(s).
SetStatusBAR
Purpose
:
Set statusbar display/no display.
Syntax
:
void SetStatusBAR(int slStatus);
Example call
:
SetStatusBAR(TRUE);//Statusbar on.
Includes
:
#include “SDK.h ”
Description
:
This function can set statusbar display or on display.
If use this function, all of the TextBlock setting will be reset.
Returns
:
None.
GetStatausBAR
Purpose
:
Get statusbar display status.
Syntax
:
int GetStatusBAR(void);
Example call
:
if (GetStatusBAR())
_printf_color(COLOR_BLACK, “Statusbar on”);
Includes
:
#include “SDK.h ”
Description
:
This function can get statusbar display status.
Returns
:
TRUE: Statusbar display
FALSE: Statusbar no display
SN_Get
Purpose
:
To get the SN of PT10/12.
Syntax
:
void SN_Get(char *pssSNBuffer);
Example call
:
SN_Get(SNBuffer);
Includes
:
#include “SDK.h ”
Description
:
The function cab get the SN of PA-20 /PA-2010 / PA-21 / PA-2110. The