Prusa MINI Firmware overview
SCSI_CDB10 Struct Reference

#include <UHS_SCSI.h>

Collaboration diagram for SCSI_CDB10:

Public Member Functions

 SCSI_CDB10 (uint8_t _Opcode, uint8_t _LUN)
 
 SCSI_CDB10 (uint8_t _Opcode, uint8_t _LUN, uint16_t xflen, uint32_t _LBA)
 

Public Attributes

uint8_t Opcode
 
unsigned Service_Action: 5
 
unsigned LUN: 3
 
uint8_t LBA_L_M_MB
 
uint8_t LBA_L_M_LB
 
uint8_t LBA_L_L_MB
 
uint8_t LBA_L_L_LB
 
uint8_t Misc2
 
uint8_t ALC_MB
 
uint8_t ALC_LB
 
uint8_t Control
 

Constructor & Destructor Documentation

◆ SCSI_CDB10() [1/2]

SCSI_CDB10::SCSI_CDB10 ( uint8_t  _Opcode,
uint8_t  _LUN 
)
180  :
181  Opcode(_Opcode), Service_Action(0), LUN(_LUN),
183  Misc2(0), ALC_MB(0), ALC_LB(0), Control(0) {
184  }

◆ SCSI_CDB10() [2/2]

SCSI_CDB10::SCSI_CDB10 ( uint8_t  _Opcode,
uint8_t  _LUN,
uint16_t  xflen,
uint32_t  _LBA 
)
186  :
187  Opcode(_Opcode), Service_Action(0), LUN(_LUN),
189  Misc2(0), ALC_MB(UHS_UINT8_BYTE1(xflen)), ALC_LB(UHS_UINT8_BYTE0(xflen)), Control(0) {
190  }

Member Data Documentation

◆ Opcode

uint8_t SCSI_CDB10::Opcode

◆ Service_Action

unsigned SCSI_CDB10::Service_Action

◆ LUN

unsigned SCSI_CDB10::LUN

◆ LBA_L_M_MB

uint8_t SCSI_CDB10::LBA_L_M_MB

◆ LBA_L_M_LB

uint8_t SCSI_CDB10::LBA_L_M_LB

◆ LBA_L_L_MB

uint8_t SCSI_CDB10::LBA_L_L_MB

◆ LBA_L_L_LB

uint8_t SCSI_CDB10::LBA_L_L_LB

◆ Misc2

uint8_t SCSI_CDB10::Misc2

◆ ALC_MB

uint8_t SCSI_CDB10::ALC_MB

◆ ALC_LB

uint8_t SCSI_CDB10::ALC_LB

◆ Control

uint8_t SCSI_CDB10::Control
SCSI_CDB10::LBA_L_M_LB
uint8_t LBA_L_M_LB
Definition: UHS_SCSI.h:168
SCSI_CDB10::LBA_L_L_LB
uint8_t LBA_L_L_LB
Definition: UHS_SCSI.h:170
SCSI_CDB10::ALC_MB
uint8_t ALC_MB
Definition: UHS_SCSI.h:174
UHS_UINT8_BYTE3
#define UHS_UINT8_BYTE3(__usi__)
Definition: UHS_macros.h:351
UHS_UINT8_BYTE1
#define UHS_UINT8_BYTE1(__usi__)
Definition: UHS_macros.h:349
SCSI_CDB10::Misc2
uint8_t Misc2
Definition: UHS_SCSI.h:172
SCSI_CDB10::Service_Action
unsigned Service_Action
Definition: UHS_SCSI.h:164
SCSI_CDB10::ALC_LB
uint8_t ALC_LB
Definition: UHS_SCSI.h:175
SCSI_CDB10::Control
uint8_t Control
Definition: UHS_SCSI.h:177
SCSI_CDB10::Opcode
uint8_t Opcode
Definition: UHS_SCSI.h:162
SCSI_CDB10::LBA_L_M_MB
uint8_t LBA_L_M_MB
Definition: UHS_SCSI.h:167
SCSI_CDB10::LBA_L_L_MB
uint8_t LBA_L_L_MB
Definition: UHS_SCSI.h:169
SCSI_CDB10::LUN
unsigned LUN
Definition: UHS_SCSI.h:165
UHS_UINT8_BYTE2
#define UHS_UINT8_BYTE2(__usi__)
Definition: UHS_macros.h:350
UHS_UINT8_BYTE0
#define UHS_UINT8_BYTE0(__usi__)
Definition: UHS_macros.h:348