I-7188XA Series User’s Manual ( Ver1.2, Feb/2014, 7MH-019-10 ) ---
121
and the user manual on the enclosed CD,
which can be found at
CD:\Napdos\minios7\document\ lib_manual_for
_7188xabc\index.htm
for more detailed
information.
TimerOpen()
Function: Opens the timer function for use.
Syntax:
int TimerOpen(void);
Header:
#include ”7188xa.h”
Description: Before any of the timer functions can be used the
TimerOpen() function must be called.
Return Value: On success, returns NoError. If the Timer is already
open, returns 1.
Example:
#include <7188xa.h>
void main()
{
unsigned long time;
int quit=0;
InitLib();
Print("\n\rPress any key to start the timer");
Print("\n\rthen Press '0' to Reset the timer, ’1’~’4’ to insert a delay, 'q' to
quit\n\r");
Getch();
TimerOpen(); /*open the timer function*/
while(!quit){ /*sets the key function*/
if(Kbhit()){
switch(Getch()){
case '0':
TimerResetValue(); /*reset the timer*/
break;
case '1':
DelayMs(1000); /*delay unit is ms, uses system timeticks. */
break;
case '2':
Delay(1000); /*delay unit is ms, uses the Timer 1 feature of the
CPU. */
break;
case '3':
Delay_1(1000); /*delay unit is 0.1 ms, uses the Timer 1 feature
Содержание I-7188XA
Страница 62: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 62 5 6 COM1 RS 232 1 2 232...
Страница 90: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 90 1 2...
Страница 140: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 140...
Страница 146: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 146 Step 8 Make the project...
Страница 153: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 153 Step 8 Rebuild the project...
Страница 158: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 158...
Страница 161: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 161 Below snap shots are steps for install TC 3 0...
Страница 162: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 162...
Страница 164: ...I 7188XA Series User s Manual Ver1 2 Feb 2014 7MH 019 10 164...