Interface OsCommandAbortResult

Outcome of aborting the OS command in progress.

See abortOsCommand.

Hierarchy

  • OsCommandAbortResult

Properties

lastErrorCode?: number

OS error code of the last response read from the drive; see errorCode.

lastErrorName?: string

Name of lastErrorCode, when known.

lastStatus?: number

Raw status byte (0x1023:03 Byte 0) of the last response read from the drive.

An aborted command typically reports 3 (command completed with error and with response) together with lastErrorCode 252 (command aborted).

request: RequestStatus

succeeded when the drive no longer reports a command in progress, failed when the command was still running once the timeout elapsed. The OS command mode is reset to EXECUTE_THE_NEXT_COMMAND_IMMEDIATELY in both cases.

timeout?: boolean

Set when the command was still in progress once the timeout elapsed.

wasInProgress: boolean

Whether a command was in progress when the abort was requested. When false, the abort was a no-op for the drive, and the reported last* properties belong to the previously completed command, if any.

Generated using TypeDoc