Syntax
unsigned int GetAPDTime (void);
Parameters
NoneReturn value
Returns the setting value for the time until the power is turned off.
Value | Description |
---|---|
0 | Power off will not be executed. |
250 or more | Indicates the setting value for the time until the power is turned off. |
- The valid setting range is 0, 250 to 4,294,967,295.
- 20msec per unit.
- Example: If time is 250, 250 x 20 msec is 5 seconds.
Remarks
This API is compatible with OS version TH15J10 or later.Requirements
Header file:
lib.hLibrary file:
libSTARTUPOPH5000.aOS version:
TH15J10 or later.
Sample
#include <stdio.h>
#include <stdlib.h>
#include "lib.h"
void main(void)
{
unsigned int apdTime;
Cursor(NOWRAP);
printf("\fAPDTime:");
apdTime = (long)GetAPDTime();
GotoXY(0,1);
//Display the set value of time until power off in msec units.
printf("%dmsec",apdTime*50);
Sound(TCLICK,VMEDIUM,SHIGH,0);
GoodReadLed(GREEN,TCLICK);
Delay(TIME_100MS * 50);
for(;;)
{
Idle();
}
}
Last updated: 2024/01/26