cdb_Space Class Reference
[SCSI Library]

#include <cdb.h>

Inheritance diagram for cdb_Space:

Inheritance graph
[legend]
Collaboration diagram for cdb_Space:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 263 of file cdb.h.


Public Member Functions

 cdb_Space ()
 cdb_Space (UInt8_t a_unit, UInt32_t a_amount)
virtual ~cdb_Space ()
virtual const UInt8_tGetCmdPointer () const
virtual UInt32_t GetCmdSize () const
virtual Direction_e GetTransferDirection () const

Private Attributes

 log_CLASSID_m
cdb_Space_t m_spaceCmd

Constructor & Destructor Documentation

cdb_Space::cdb_Space (  ) 

Definition at line 18 of file cdb_space.cpp.

References m_spaceCmd, op_SPACE, and cdb_Space_t::opcode.

00018                      {
00019     memset (&m_spaceCmd, 0, sizeof(m_spaceCmd));
00020     m_spaceCmd.opcode = op_SPACE;
00021 }

cdb_Space::cdb_Space ( UInt8_t  a_unit,
UInt32_t  a_amount 
)

Definition at line 23 of file cdb_space.cpp.

References cdb_Space_t::addr, cdb_Space_t::code, hton24(), m_spaceCmd, op_SPACE, and cdb_Space_t::opcode.

00023                                                       {
00024     memset (&m_spaceCmd, 0, sizeof(m_spaceCmd));
00025     m_spaceCmd.opcode = op_SPACE;
00026 
00027     m_spaceCmd.code = a_unit;
00028     m_spaceCmd.addr = hton24(a_amount);
00029 }

Here is the call graph for this function:

cdb_Space::~cdb_Space (  )  [virtual]

Definition at line 31 of file cdb_space.cpp.

00031                      {
00032 }


Member Function Documentation

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

Reimplemented from scsi_CDB.

Definition at line 34 of file cdb_space.cpp.

References m_spaceCmd.

00034                                               {
00035     return reinterpret_cast<UInt8_t*>(
00036         const_cast<cdb_Space_t*>(&m_spaceCmd) );
00037 }

UInt32_t cdb_Space::GetCmdSize (  )  const [virtual]

Reimplemented from scsi_CDB.

Definition at line 39 of file cdb_space.cpp.

References m_spaceCmd.

00039                                      {
00040     return sizeof(m_spaceCmd);
00041 }

Direction_e cdb_Space::GetTransferDirection (  )  const [virtual]

Implements scsi_CDB.

Definition at line 43 of file cdb_space.cpp.

References TRANSFER_NONE.

00043                                                   {
00044     return TRANSFER_NONE;
00045 }


Member Data Documentation

Reimplemented from scsi_CDB.

Definition at line 274 of file cdb.h.

Definition at line 276 of file cdb.h.

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


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

Generated on Mon Feb 27 19:02:49 2012 for OPENARCHIVE by  doxygen 1.5.6