Public Member Functions | Private Attributes

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.

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

Detailed Description

Definition at line 277 of file cdb.h.


Constructor & Destructor Documentation

cdb_Space::cdb_Space (  ) 

Definition at line 32 of file cdb_space.cpp.

References m_spaceCmd, and cdb_Space_t::opcode.

                     {
    memset (&m_spaceCmd, 0, sizeof(m_spaceCmd));
    m_spaceCmd.opcode = op_SPACE;
}

cdb_Space::cdb_Space ( UInt8_t  a_unit,
UInt32_t  a_amount 
)

Definition at line 37 of file cdb_space.cpp.

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

                                                      {
    memset (&m_spaceCmd, 0, sizeof(m_spaceCmd));
    m_spaceCmd.opcode = op_SPACE;

    m_spaceCmd.code = a_unit;
    m_spaceCmd.addr = hton24(a_amount);
}

Here is the call graph for this function:

cdb_Space::~cdb_Space (  )  [virtual]

Definition at line 45 of file cdb_space.cpp.

                     {
}


Member Function Documentation

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

Reimplemented from scsi_CDB.

Definition at line 48 of file cdb_space.cpp.

References m_spaceCmd.

                                              {
    return reinterpret_cast<UInt8_t*>(
        const_cast<cdb_Space_t*>(&m_spaceCmd) );
}

UInt32_t cdb_Space::GetCmdSize (  )  const [virtual]

Reimplemented from scsi_CDB.

Definition at line 53 of file cdb_space.cpp.

References m_spaceCmd.

                                     {
    return sizeof(m_spaceCmd);
}

Direction_e cdb_Space::GetTransferDirection (  )  const [virtual]

Implements scsi_CDB.

Definition at line 57 of file cdb_space.cpp.

                                                  {
    return TRANSFER_NONE;
}


Member Data Documentation

Reimplemented from scsi_CDB.

Definition at line 288 of file cdb.h.

Definition at line 290 of file cdb.h.

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


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