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);
}
Summary of Contents for Trakker T2090
Page 1: ...TRAKKER T2090Batch Hand HeldComputer P N 067212 003 User s Manual ...
Page 4: ......
Page 14: ......
Page 19: ...Getting Started 1 ...
Page 20: ......
Page 33: ...User Interface 2 ...
Page 34: ......
Page 55: ...Application Development 3 ...
Page 56: ......
Page 61: ...Application Functions 4 ...
Page 62: ......
Page 127: ...Reader Command Reference 5 ...
Page 128: ......
Page 145: ...Configuration Command Reference 6 ...
Page 146: ......
Page 187: ...BIOS Support 7 ...
Page 188: ......
Page 205: ...Hardware Specifications 8 ...
Page 206: ......
Page 212: ......
Page 213: ...Demo Software A ...
Page 214: ......
Page 230: ......
Page 231: ...Microsoft Visual C C Settings B ...
Page 232: ......
Page 237: ...Full ASCII Charts C ...
Page 238: ......