im_tm_callback_register
4-58
Example
#include <time.h>
#include <stdio.h>
#include “imt209x.h”
void printHello(void)
{
im_sound(1000,50,IM_NORMAL_VOLUME);
im_puts("hello world! ",IM_NORMAL);
}
void main(void)
{
IM_UCHAR input[300];
IM_ORIGIN source;
IM_STATUS iStatus = 11;
PTIMERCALLBACK pFunction;
IM_USHORT iIndex = 0;
time_t timeToStart;
IM_BOOL fDisplay;
IM_USHORT iRepeatCount;
IM_ULONG iPeriod;
//initialize
// callback 10 times
iRepeatCount = 10;
// 10-second period
iPeriod = IM_CALLBK_SECOND*10;
//print hello
pFunction = printHello;
//enable callback
fDisplay = IM_FALSE;
//time to first callback
time(&timeToStart); //get current time
timeT= 16; //future after 16seconds or
//timeToStart -= 20; // or pass current 20 seconds
//timeToStart = IM_CALLBK_NOW;
//register the callback function
iStatus = im_tm_callback_register(pFunction, timeToStart,
iRepeatCount, iPeriod, fDisplay, &iIndex);
//cancel the callback function
iStatus = im_tm_callback_cancel(iIndex);
}
Содержание Trakker T2090
Страница 1: ...TRAKKER T2090Batch Hand HeldComputer P N 067212 003 User s Manual ...
Страница 4: ......
Страница 14: ......
Страница 19: ...Getting Started 1 ...
Страница 20: ......
Страница 33: ...User Interface 2 ...
Страница 34: ......
Страница 55: ...Application Development 3 ...
Страница 56: ......
Страница 61: ...Application Functions 4 ...
Страница 62: ......
Страница 127: ...Reader Command Reference 5 ...
Страница 128: ......
Страница 145: ...Configuration Command Reference 6 ...
Страница 146: ......
Страница 187: ...BIOS Support 7 ...
Страница 188: ......
Страница 205: ...Hardware Specifications 8 ...
Страница 206: ......
Страница 212: ......
Страница 213: ...Demo Software A ...
Страница 214: ......
Страница 230: ......
Страница 231: ...Microsoft Visual C C Settings B ...
Страница 232: ......
Страница 234: ...TRAKKER T2090 Hand Held Batch Computer User s Manual B 4 Compiler Options Code Generation Select CPU 80186 80188 ...
Страница 237: ...Full ASCII Charts C ...
Страница 238: ......