Public Member Functions | Private Attributes

cdb_TestUnitReady Class Reference
[SCSI Library]

Implementation of Test Unit Ready SCSI command. More...

#include <cdb.h>

Inheritance diagram for cdb_TestUnitReady:
Inheritance graph
[legend]
Collaboration diagram for cdb_TestUnitReady:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 cdb_TestUnitReady ()
virtual ~cdb_TestUnitReady ()
virtual const UInt8_tGetCmdPointer () const
virtual UInt32_t GetCmdSize () const
virtual Direction_e GetTransferDirection () const

Private Attributes

 log_CLASSID_m
cdb_TestUnitReady_t m_testUnitReadyCmd

Detailed Description

Implementation of Test Unit Ready SCSI command.

Definition at line 161 of file cdb.h.


Constructor & Destructor Documentation

cdb_TestUnitReady::cdb_TestUnitReady (  ) 

Definition at line 47 of file cdb_testunitready.cpp.

References m_testUnitReadyCmd, and cdb_TestUnitReady_t::opcode.

                                     {

    memset(&m_testUnitReadyCmd, 0, sizeof(m_testUnitReadyCmd));
    m_testUnitReadyCmd.opcode = op_TEST_UNIT_READY;
}

cdb_TestUnitReady::~cdb_TestUnitReady (  )  [virtual]

Definition at line 53 of file cdb_testunitready.cpp.

                                      {
}


Member Function Documentation

const UInt8_t * cdb_TestUnitReady::GetCmdPointer (  )  const [virtual]

Reimplemented from scsi_CDB.

Definition at line 56 of file cdb_testunitready.cpp.

References m_testUnitReadyCmd.

                                                      {
    return reinterpret_cast<UInt8_t*>(
        const_cast<cdb_TestUnitReady_t*>(&m_testUnitReadyCmd) );
}

UInt32_t cdb_TestUnitReady::GetCmdSize (  )  const [virtual]

Reimplemented from scsi_CDB.

Definition at line 61 of file cdb_testunitready.cpp.

References m_testUnitReadyCmd.

                                             {
    return sizeof(m_testUnitReadyCmd);
}

Direction_e cdb_TestUnitReady::GetTransferDirection (  )  const [virtual]

Implements scsi_CDB.

Definition at line 65 of file cdb_testunitready.cpp.

                                                          {
    return TRANSFER_NONE;
}


Member Data Documentation

Reimplemented from scsi_CDB.

Definition at line 172 of file cdb.h.

Definition at line 174 of file cdb.h.

Referenced by cdb_TestUnitReady(), GetCmdPointer(), and GetCmdSize().


The documentation for this class was generated from the following files: