101
Chapter 8: C Programming
RELOAD
Summary:
int reload();
Description:
The reload function returns the reload rate in seconds of the C program. There are no
parameters.
Return value:
The reload rate in seconds of the C program.
Example:
This program will use the reload rate to update a seconds down-timer. When the
timer hits zero, it will turn output number 1 on.
main()
{
rate=reload();
if (timer>0)
{
timer=timer-rate;
}
if (timer<=0)
{
output(1,1);
}
else
{
output(1,0);
}
}
Содержание Sensaphone ISACC
Страница 1: ...Sensaphone ISACC Operator s Manual version 3 49...
Страница 22: ...22 Sensaphone ISACC Instruction Manual...
Страница 52: ...52 Sensaphone ISACC Instruction Manual...
Страница 76: ...76 Sensaphone ISACC Instruction Manual...
Страница 114: ...114 Sensaphone ISACC Instruction Manual...
Страница 120: ...120 Sensaphone ISACC Instruction Manual...
Страница 124: ...124 Sensaphone ISACC Instruction Manual...
Страница 130: ...130 Sensaphone ISACC Instruction Manual...
Страница 132: ...132 Sensaphone ISACC Instruction Manual...
Страница 140: ...140 Sensaphone ISACC Instruction Manual...
Страница 142: ...142 Sensaphone ISACC Instruction Manual...