#include <cdb.h>


Definition at line 549 of file cdb.h.
Public Member Functions | |
| cdb_ReadElementStatus (data_ElementStatus &a_elem) | |
| virtual | ~cdb_ReadElementStatus () |
| virtual const UInt8_t * | GetCmdPointer () const |
| virtual UInt32_t | GetCmdSize () const |
| virtual Direction_e | GetTransferDirection () const |
| virtual UInt8_t * | GetBufferPointer () const |
| virtual UInt32_t | GetBufferSize () const |
| void | SetType (data_ElementStatus::ElemType_t a_type) |
| void | SetStartAddr (UInt16_t a_start) |
| void | SetElementNum (UInt16_t a_num) |
| void | SetDeviceId (bool a_dvcid) |
| void | SetCurData (bool a_curdata) |
| void | SetVolTag (bool a_voltag) |
Private Attributes | |
| log_CLASSID_m | |
| data_ElementStatus & | m_data |
| cdb_ReadElemStatus_t | m_readStatusCmd |
| cdb_ReadElementStatus::cdb_ReadElementStatus | ( | data_ElementStatus & | a_elem | ) |
Definition at line 34 of file cdb_readelementstatus.cpp.
References cdb_ReadElemStatus_t::allocLen, data_ElementStatus::GetBufferSize(), hton24(), m_data, m_readStatusCmd, op_READ_ELEMENT_STATUS, and cdb_ReadElemStatus_t::opcode.
00035 : m_data(a_elem) { 00036 00037 memset (&m_readStatusCmd, 0, sizeof(m_readStatusCmd)); 00038 m_readStatusCmd.opcode = op_READ_ELEMENT_STATUS; 00039 m_readStatusCmd.allocLen = hton24(m_data.GetBufferSize()); 00040 }

| cdb_ReadElementStatus::~cdb_ReadElementStatus | ( | ) | [virtual] |
| const UInt8_t * cdb_ReadElementStatus::GetCmdPointer | ( | ) | const [virtual] |
Reimplemented from scsi_CDB.
Definition at line 53 of file cdb_readelementstatus.cpp.
References m_readStatusCmd.
00053 { 00054 return reinterpret_cast<UInt8_t*>( 00055 const_cast<cdb_ReadElemStatus_t*>(&m_readStatusCmd) ); 00056 }
| UInt32_t cdb_ReadElementStatus::GetCmdSize | ( | ) | const [virtual] |
Reimplemented from scsi_CDB.
Definition at line 58 of file cdb_readelementstatus.cpp.
References m_readStatusCmd.
00058 { 00059 return sizeof(m_readStatusCmd); 00060 }
| Direction_e cdb_ReadElementStatus::GetTransferDirection | ( | ) | const [virtual] |
Implements scsi_CDB.
Definition at line 62 of file cdb_readelementstatus.cpp.
References TRANSFER_IN.
00062 { 00063 return TRANSFER_IN; 00064 }
| UInt8_t * cdb_ReadElementStatus::GetBufferPointer | ( | ) | const [virtual] |
Reimplemented from scsi_CDB.
Definition at line 45 of file cdb_readelementstatus.cpp.
References data_ElementStatus::GetBuffer(), and m_data.

| UInt32_t cdb_ReadElementStatus::GetBufferSize | ( | ) | const [virtual] |
Reimplemented from scsi_CDB.
Definition at line 49 of file cdb_readelementstatus.cpp.
References data_ElementStatus::GetBufferSize(), and m_data.
00049 { 00050 return m_data.GetBufferSize(); 00051 }

| void cdb_ReadElementStatus::SetType | ( | data_ElementStatus::ElemType_t | a_type | ) |
Definition at line 66 of file cdb_readelementstatus.cpp.
References cdb_ReadElemStatus_t::elemType, and m_readStatusCmd.
Referenced by la_SCSILibrary::Status(), and Status().
00066 { 00067 m_readStatusCmd.elemType = a_type; 00068 }

| void cdb_ReadElementStatus::SetStartAddr | ( | UInt16_t | a_start | ) |
Definition at line 70 of file cdb_readelementstatus.cpp.
References hton(), m_readStatusCmd, and cdb_ReadElemStatus_t::startAddr.
Referenced by la_SCSILibrary::Status(), and Status().
00070 { 00071 m_readStatusCmd.startAddr = hton(a_start); 00072 }


| void cdb_ReadElementStatus::SetElementNum | ( | UInt16_t | a_num | ) |
Definition at line 74 of file cdb_readelementstatus.cpp.
References cdb_ReadElemStatus_t::elemNum, hton(), and m_readStatusCmd.
Referenced by la_SCSILibrary::Status(), and Status().
00074 { 00075 m_readStatusCmd.elemNum = hton(a_num); 00076 }


| void cdb_ReadElementStatus::SetDeviceId | ( | bool | a_dvcid | ) |
Definition at line 78 of file cdb_readelementstatus.cpp.
References cdb_ReadElemStatus_t::dvcId, and m_readStatusCmd.
Referenced by la_SCSILibrary::Status(), and Status().
00078 { 00079 if (a_dvcid) { 00080 m_readStatusCmd.dvcId = 1; 00081 } 00082 else { 00083 m_readStatusCmd.dvcId = 0; 00084 } 00085 }

| void cdb_ReadElementStatus::SetCurData | ( | bool | a_curdata | ) |
Definition at line 87 of file cdb_readelementstatus.cpp.
References cdb_ReadElemStatus_t::curData, and m_readStatusCmd.
Referenced by la_SCSILibrary::Status(), and Status().
00087 { 00088 if (a_curdata) { 00089 m_readStatusCmd.curData = 1; 00090 } 00091 else { 00092 m_readStatusCmd.curData = 0; 00093 } 00094 }

| void cdb_ReadElementStatus::SetVolTag | ( | bool | a_voltag | ) |
Definition at line 96 of file cdb_readelementstatus.cpp.
References m_readStatusCmd, and cdb_ReadElemStatus_t::volTag.
Referenced by la_SCSILibrary::Status(), and Status().
00096 { 00097 if (a_voltag) { 00098 m_readStatusCmd.volTag = 1; 00099 } 00100 else { 00101 m_readStatusCmd.volTag = 0; 00102 } 00103 }

cdb_ReadElementStatus::log_CLASSID_m [private] |
data_ElementStatus& cdb_ReadElementStatus::m_data [private] |
Definition at line 573 of file cdb.h.
Referenced by cdb_ReadElementStatus(), GetBufferPointer(), and GetBufferSize().
Definition at line 574 of file cdb.h.
Referenced by cdb_ReadElementStatus(), GetCmdPointer(), GetCmdSize(), SetCurData(), SetDeviceId(), SetElementNum(), SetStartAddr(), SetType(), and SetVolTag().
1.5.6