#include <cdb.h>


Definition at line 524 of file cdb.h.
Public Member Functions | |
| cdb_MoveMedium () | |
| virtual | ~cdb_MoveMedium () |
| virtual const UInt8_t * | GetCmdPointer () const |
| virtual UInt32_t | GetCmdSize () const |
| virtual Direction_e | GetTransferDirection () const |
| void | SetTransport (UInt16_t a_trans) |
| void | SetSource (UInt16_t a_src) |
| void | SetDestination (UInt16_t a_dest) |
Private Attributes | |
| log_CLASSID_m | |
| cdb_MoveMedium_t | m_moveMediumCmd |
| cdb_MoveMedium::cdb_MoveMedium | ( | ) |
Definition at line 33 of file cdb_movemedium.cpp.
References m_moveMediumCmd, op_MOVE_MEDIUM, and cdb_MoveMedium_t::opcode.
00033 { 00034 memset(&m_moveMediumCmd, 0, sizeof(m_moveMediumCmd)); 00035 m_moveMediumCmd.opcode = op_MOVE_MEDIUM; 00036 }
| cdb_MoveMedium::~cdb_MoveMedium | ( | ) | [virtual] |
| const UInt8_t * cdb_MoveMedium::GetCmdPointer | ( | ) | const [virtual] |
Reimplemented from scsi_CDB.
Definition at line 41 of file cdb_movemedium.cpp.
References m_moveMediumCmd.
00041 { 00042 return reinterpret_cast<UInt8_t*>( 00043 const_cast<cdb_MoveMedium_t*>(&m_moveMediumCmd) ); 00044 }
| UInt32_t cdb_MoveMedium::GetCmdSize | ( | ) | const [virtual] |
Reimplemented from scsi_CDB.
Definition at line 46 of file cdb_movemedium.cpp.
References m_moveMediumCmd.
00046 { 00047 return sizeof(m_moveMediumCmd); 00048 }
| Direction_e cdb_MoveMedium::GetTransferDirection | ( | ) | const [virtual] |
Implements scsi_CDB.
Definition at line 50 of file cdb_movemedium.cpp.
References TRANSFER_NONE.
00050 { 00051 return TRANSFER_NONE; 00052 }
| void cdb_MoveMedium::SetTransport | ( | UInt16_t | a_trans | ) |
Definition at line 54 of file cdb_movemedium.cpp.
References hton(), m_moveMediumCmd, and cdb_MoveMedium_t::transport.
Referenced by la_SCSILibrary::Load(), Mv(), and la_SCSILibrary::Unload().
00054 { 00055 m_moveMediumCmd.transport = hton(a_trans); 00056 }


| void cdb_MoveMedium::SetSource | ( | UInt16_t | a_src | ) |
Definition at line 58 of file cdb_movemedium.cpp.
References hton(), m_moveMediumCmd, and cdb_MoveMedium_t::source.
Referenced by la_SCSILibrary::Load(), Mv(), and la_SCSILibrary::Unload().
00058 { 00059 m_moveMediumCmd.source = hton(a_src); 00060 }


| void cdb_MoveMedium::SetDestination | ( | UInt16_t | a_dest | ) |
Definition at line 62 of file cdb_movemedium.cpp.
References cdb_MoveMedium_t::destination, hton(), and m_moveMediumCmd.
Referenced by la_SCSILibrary::Load(), Mv(), and la_SCSILibrary::Unload().
00062 { 00063 m_moveMediumCmd.destination = hton(a_dest); 00064 }


cdb_MoveMedium::log_CLASSID_m [private] |
Definition at line 541 of file cdb.h.
Referenced by cdb_MoveMedium(), GetCmdPointer(), GetCmdSize(), SetDestination(), SetSource(), and SetTransport().
1.5.6