Zitat von
TurboMartin:
ACHTUNG!!! Bei allen muss noch eine wdm.h oder ntddk.h eingebunden werden, unter Delphi ist es nicht drin (hab ich jedenfals nicht gefunden).
Jo, Delphi hat zwar eine teilweise übersetzte
WinAPI SDK dabei, aber die werden bestimmt keine
DDK übersetzen und beipacken. Das
DDK kannste nicht umsonst auch nur als registrierter Entwickler und Lizenznehmer runterladen (
MSDN Abo).
Sleep Command:
Zitat:
This command is the only way to cause the device to enter Sleep mode.
This command shall cause the device to set the BSY bit to one, prepare to enter Sleep mode, clear the BSY
bit to zero and assert INTRQ. The host shall read the Status register in order to clear the Interrupt Pending
and allow the device to enter Sleep mode. In Sleep mode, the device shall only respond to the assertion of
the RESET- signal and the writing of the SRST bit in the Device Control register and shall release the device
driven signal lines (See Figure 4). The host shall not attempt to
access the Command Block registers while
the device is in Sleep mode.
Because some host systems may not read the Status register and clear the Interrupt Pending, a device may
release INTRQ and enter Sleep mode after a vendor specific time period of not less than 2 s.
The only way to recover from Sleep mode is with a software reset, a hardware reset, or a DEVICE RESET
command.
A device shall not power-on in Sleep mode nor remain in Sleep mode following a reset sequence.
Standby Command:
Zitat:
This command causes the device to enter the Standby mode.
If the Sector Count register is non-zero then the Standby timer shall be enabled. The value in the Sector
Count register shall be used to determine the time programmed into the Standby timer (See Table 19).
If the Sector Count register is zero then the Standby timer is disabled.
Standby Immediatly Command:
Zitat:
This command causes the device to immediately enter the Standby mode.
Idle Command:
Zitat:
The IDLE command allows the host to place the device in the Idle mode and also set the Standby timer.
INTRQ may be asserted even though the device may not have fully transitioned to Idle mode.
If the Sector Count register is non-zero then the Standby timer shall be enabled. The value in the Sector
Count register shall be used to determine the time programmed into the Standby timer (See 4.5). If the
Sector Count register is zero then the Standby timer is disabled.
Idle Immediatly Command:
Zitat:
Default Fuction:
The IDLE IMMEDIATE command allows the host to immediately place the device in the Idle mode. INTRQ
may be asserted even though the device may not have fully transitioned to Idle mode (See 4.5).
Unload Feature:
The UNLOAD FEATURE of the IDLE IMMEDIATE command allows the host to immediately unload/park the
heads. The device shall stop read look-ahead if it is in process. If the device is performing a write operation,
the device shall suspend writing cached data onto the media as soon as possible, and keep unwritten
sectors stored in the buffer until receiving a new command.
A device that supports load/unload technology shall retract the head(s) onto the ramp position as soon as
receiving this command. INTRQ shall be asserted and BSY shall be cleared after the head(s) is(are)
completely retracted onto the ramp position and latched if available. The time to complete the unload
operation is vendor specific, this typically would be within 500 milliseconds of receiving the command. The
unload controlling method by the Unload Feature of the Idle Immediate command shall be the same as that
by Power mode transition, and shall not effect the specification of normal load/unload times per device life.
A device that supports contact start/stop technology shall seek to the landing zone. INTRQ shall be asserted
and BSY shall be cleared after seek completion. The time to complete the seek operation is vendor specific,
this typically would be within 300 milliseconds of receiving this command.
The device shall stay at Low Power Idle mode, shall not go into Standby mode and shall not load the head(s)
onto the media until receiving a new command. Power consumption of the device is not an issue for this
case. If a device receives this command while the head(s) is(are) currently on ramp/parked no physical
action is needed.
The device shall retain data in the write cache and resume writing the cached data onto the media after
receiving a Software Reset, a Hardware Reset, or any new command except IDLE IMMEDIATE with
UNLOAD FEATURE.