Echelon i.LON SmartServer User's Guide Page 238

  • Download
  • Add to my manuals
  • Print
  • Page
    / 266
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 237
224 Appendix A - Programmer’s Reference
if (m_oTimer1.lsRunning())
{
//execute code
}
GetMode()
You can use the GetMode()method to check the type of the referenced timer (repeating or one-time)
when it is running. This method may be useful during runtime.
SYNTAX
FPM_TimerFlags_t GetMode()
This method returns the type of timer (repeating or one-time) if the referenced timer is running. If
the referenced timer has been stopped, this method returns UNKNOWN.
EXAMPLE
The following example demonstrates a GetMode()method that checks the type of a timer that is
running.
FPM_TimerFlags_t timerMode;
timerMode = m_oTimer1. GetMode();
GetTimeoutMillis()
You can use the GetTimeoutMillis()method to check the timeout interval of the referenced
timer when it is running. This method may be useful during runtime.
SYNTAX
uint_t GetTimeoutMillis()
This method returns the timeout interval (in milliseconds) of the referenced timer if it is running.
If the referenced timer has been stopped, this method returns ‘~0’.
EXAMPLE
The following example demonstrates a GetTimeoutMillis()method that checks the timeout
interval of a timer that is running.
int timerInterval;
timerInterval = m_oTimer1.GetTimeoutMillis();
Reboot Method
You can use the fnRebootSmartServer() method to reboot your SmartServer.
SYNTAX
STATUS fnRebootSmartServer (int a_nBootFlag);
This method takes an integer that must be set to 0x00.
EXAMPLE
The following example demonstrates how to use the fnRebootSmartServer()method to
reboot your SmartServer.
#ifdef __cplusplus
Page view 237
1 2 ... 233 234 235 236 237 238 239 240 241 242 243 ... 265 266

Comments to this Manuals

No comments