Home  /  Autodocs  /  mfm.device

NAME

TD_MOTOR/ETD_MOTOR - control the on/off state of a drive motor.

FUNCTION

This command gives control over the disk motor. The motor may be turned on or off. When it is on, the drive light automatically turns on as well.

This command is directly forwarded to the trackdisk.device.

INPUTS

io_Device
preset by the call to OpenDevice()

io_Unit
preset by the call to OpenDevice()

io_Command
TD_MOTOR or ETD_MOTOR

io_Flags
0 or IOF_QUICK

io_Length
the requested state of the motor, 0 to turn the motor off, and 1 to turn the motor on.

iotd_Count
(ETD_MOTOR only) maximum allowable change counter value.

RESULT

io_Error
0 for success, or an error code as defined in <devices/trackdisk.h>

io_Actual
if io_Error is 0 this contains the previous state of the drive motor.