Public Member Functions | Private Attributes

cdb_LoadUnload Class Reference
[SCSI Library]

#include <cdb.h>

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

List of all members.

Public Member Functions

 cdb_LoadUnload (bool load)
virtual ~cdb_LoadUnload ()
virtual const UInt8_tGetCmdPointer () const
virtual UInt32_t GetCmdSize () const
virtual Direction_e GetTransferDirection () const

Private Attributes

 log_CLASSID_m
cdb_LoadUnload_t m_loadUnloadCmd

Detailed Description

Definition at line 181 of file cdb.h.


Constructor & Destructor Documentation

cdb_LoadUnload::cdb_LoadUnload ( bool  load  ) 

Definition at line 32 of file cdb_loadunload.cpp.

References cdb_LoadUnload_t::load, m_loadUnloadCmd, and cdb_LoadUnload_t::opcode.

                                         {
    memset(&m_loadUnloadCmd, 0, sizeof(m_loadUnloadCmd));

    m_loadUnloadCmd.opcode = op_START_STOP;

    // opcode for load/unload, as defined in scsi.h
    m_loadUnloadCmd.load = (a_load == true)
        ? 1
        : 0;
}

cdb_LoadUnload::~cdb_LoadUnload (  )  [virtual]

Definition at line 43 of file cdb_loadunload.cpp.

                               {
}


Member Function Documentation

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

Reimplemented from scsi_CDB.

Definition at line 46 of file cdb_loadunload.cpp.

References m_loadUnloadCmd.

                                                   {
    return reinterpret_cast<UInt8_t*>(
        const_cast<cdb_LoadUnload_t*>(&m_loadUnloadCmd));
}

UInt32_t cdb_LoadUnload::GetCmdSize (  )  const [virtual]

Reimplemented from scsi_CDB.

Definition at line 51 of file cdb_loadunload.cpp.

References m_loadUnloadCmd.

                                          {
    return sizeof(m_loadUnloadCmd);
}

Direction_e cdb_LoadUnload::GetTransferDirection (  )  const [virtual]

Implements scsi_CDB.

Definition at line 55 of file cdb_loadunload.cpp.

                                                       {
    return TRANSFER_NONE;
}


Member Data Documentation

Reimplemented from scsi_CDB.

Definition at line 193 of file cdb.h.

Definition at line 195 of file cdb.h.

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


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