#include <cdb.h>


Definition at line 167 of file cdb.h.
Public Member Functions | |
| cdb_LoadUnload (bool load) | |
| virtual | ~cdb_LoadUnload () |
| virtual const UInt8_t * | GetCmdPointer () const |
| virtual UInt32_t | GetCmdSize () const |
| virtual Direction_e | GetTransferDirection () const |
Private Attributes | |
| log_CLASSID_m | |
| cdb_LoadUnload_t | m_loadUnloadCmd |
| cdb_LoadUnload::cdb_LoadUnload | ( | bool | load | ) |
Definition at line 18 of file cdb_loadunload.cpp.
References cdb_LoadUnload_t::load, m_loadUnloadCmd, op_START_STOP, and cdb_LoadUnload_t::opcode.
00018 { 00019 memset(&m_loadUnloadCmd, 0, sizeof(m_loadUnloadCmd)); 00020 00021 m_loadUnloadCmd.opcode = op_START_STOP; 00022 00023 // opcode for load/unload, as defined in scsi.h 00024 m_loadUnloadCmd.load = (a_load == true) 00025 ? 1 00026 : 0; 00027 }
| cdb_LoadUnload::~cdb_LoadUnload | ( | ) | [virtual] |
| const UInt8_t * cdb_LoadUnload::GetCmdPointer | ( | ) | const [virtual] |
Reimplemented from scsi_CDB.
Definition at line 32 of file cdb_loadunload.cpp.
References m_loadUnloadCmd.
00032 { 00033 return reinterpret_cast<UInt8_t*>( 00034 const_cast<cdb_LoadUnload_t*>(&m_loadUnloadCmd)); 00035 }
| UInt32_t cdb_LoadUnload::GetCmdSize | ( | ) | const [virtual] |
Reimplemented from scsi_CDB.
Definition at line 37 of file cdb_loadunload.cpp.
References m_loadUnloadCmd.
00037 { 00038 return sizeof(m_loadUnloadCmd); 00039 }
| Direction_e cdb_LoadUnload::GetTransferDirection | ( | ) | const [virtual] |
Implements scsi_CDB.
Definition at line 41 of file cdb_loadunload.cpp.
References TRANSFER_NONE.
00041 { 00042 return TRANSFER_NONE; 00043 }
cdb_LoadUnload::log_CLASSID_m [private] |
Definition at line 181 of file cdb.h.
Referenced by cdb_LoadUnload(), GetCmdPointer(), and GetCmdSize().
1.5.6