Apple PowerBook 520 Technical Information Page 117

  • Download
  • Add to my manuals
  • Print
  • Page
    / 144
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 116
CHAPTER 6
Power Manager Interface
About the Power Manager Interface 103
SpinDownHardDisk 6
You can use the SpinDownHardDisk routine to force the hard disk to spin down.
void SpinDownHardDisk();
DESCRIPTION
The SpinDownHardDisk routine immediately forces the hard disk to spin down and
power off if it was previously spinning. Calling SpinDownHardDisk will not spin
down the hard disk if spindown is disabled by calling SetSpindownDisable (defined
later in this section).
ASSEMBLY-LANGUAGE INFORMATION
The trap is _PowerMgrDispatch ($A09E). The selector value for SpinDownHardDisk
is 7 ($07) in the low word of register D0.
IsSpindownDisabled 6
You can use the IsSpindownDisabled routine to find out whether hard disk
spindown is enabled.
Boolean IsSpindownDisabled();
DESCRIPTION
The IsSpindownDisabled routine returns a Boolean true if hard disk spindown is
disabled, or false if spindown is enabled.
ASSEMBLY-LANGUAGE INFORMATION
The trap is _PowerMgrDispatch ($A09E). The selector value for
IsSpindownDisabled is 8 ($08) in the low word of register D0. The Boolean
result is passed in the low byte of register D0.
SetSpindownDisable 6
You can use the SetSpindownDisable routine to disable hard disk spindown.
void SetSpindownDisable(Boolean setDisable);
Page view 116
1 2 ... 112 113 114 115 116 117 118 119 120 121 122 ... 143 144

Comments to this Manuals

No comments