User Manual

Boomer II User Manual & Integrator’s Guide
________________________________
____________
SDK – SCR API
BM210012WT09 55 Wavenet Technology
Description:
Register an application for wakeup when specified events occur.
Input:
Ø usAppName Pointer to a buffer specifying the full path name (Null terminated)
of the application to execute on a wakeup.
Ø usWakeupReason Logical OR the required reasons for wakeup from the following
values (exclude unwanted reasons):
WAKE_MODEM_INSERTION – Wakeup application when
modem is attached
WAKE_MESSAGE_RECEIVED – Wakeup application when a
message is received but no client applications are running
Output:
× Return value = 0 Operation was successful
× Return value 0 Operation failed. Value specifies the error type
q Deregister Wakeup Application
The application can call this function to deregister an application that
was previously registered to wakeup.
Prototype:
int nclDeregWakeupApp (WCHAR *usAppName);
Description:
Deregister a wakeup application.
Input:
Ø usAppName Pointer to a buffer specifying the full path name (Null terminated)
of the application to execute on a wakeup.
Output:
× Return value = 0 Operation was successful
× Return value 0 Operation failed. Value specifies the error type