Apple PowerBook 520 Technical Information Page 127

  • Download
  • Add to my manuals
  • Print
  • Page
    / 144
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 126
CHAPTER 6
Power Manager Interface
About the Power Manager Interface 113
DESCRIPTION
The GetWakeupTimer routine returns the time when the computer will wake up from
sleep mode.
If the PowerBook model doesn’t support the wakeup timer, GetWakeupTimer returns a
value of 0. The time and the enable flag are returned in the following structure:
typedef struct WakeupTime {
unsigned long wakeTime; /* wakeup time (same format as the time) */
char wakeEnabled; /* 1=enable timer, 0=disable timer */
} WakeupTime;
ASSEMBLY-LANGUAGE INFORMATION
The trap is _PowerMgrDispatch ($A09E). The selector value for GetWakeupTimer
is 22 ($16) in the low word of register D0. The pointer to WakeupTime is passed in
register A0.
SetWakeupTimer 6
You can use the SetWakeupTimer routine to set the time when the computer will wake
up from sleep mode.
void SetWakeupTimer(WakeupTime *theTime);
DESCRIPTION
The SetWakeupTimer routine sets the time when the computer will wake up from
sleep mode and enables or disables the timer. On a PowerBook model that doesn’t
support the wakeup timer, SetWakeupTimer does nothing.
ASSEMBLY-LANGUAGE INFORMATION
The trap is _PowerMgrDispatch ($A09E). The selector value for SetWakeupTimer
is 23 ($17) in the low word of register D0. The pointer to WakeupTime is passed in
register A0.
Page view 126
1 2 ... 122 123 124 125 126 127 128 129 130 131 132 ... 143 144

Comments to this Manuals

No comments