Prusa MINI Firmware overview
SCSI_CDB6 Struct Reference

#include <UHS_SCSI.h>

Collaboration diagram for SCSI_CDB6:

Public Member Functions

 SCSI_CDB6 (uint8_t _Opcode, uint8_t _LUN, uint32_t LBA, uint8_t _AllocationLength, uint8_t _Control)
 
 SCSI_CDB6 (uint8_t _Opcode, uint8_t _LUN, uint8_t _AllocationLength, uint8_t _Control)
 

Public Attributes

uint8_t Opcode
 
unsigned LBAMSB: 5
 
unsigned LUN: 3
 
uint8_t LBAHB
 
uint8_t LBALB
 
uint8_t AllocationLength
 
uint8_t Control
 

Constructor & Destructor Documentation

◆ SCSI_CDB6() [1/2]

SCSI_CDB6::SCSI_CDB6 ( uint8_t  _Opcode,
uint8_t  _LUN,
uint32_t  LBA,
uint8_t  _AllocationLength,
uint8_t  _Control 
)
148  :
149  Opcode(_Opcode), LBAMSB(UHS_UINT8_BYTE2(LBA) & 0x1f), LUN(_LUN), LBAHB(UHS_UINT8_BYTE1(LBA)), LBALB(UHS_UINT8_BYTE0(LBA)),
150  AllocationLength(_AllocationLength), Control(_Control) {
151  }

◆ SCSI_CDB6() [2/2]

SCSI_CDB6::SCSI_CDB6 ( uint8_t  _Opcode,
uint8_t  _LUN,
uint8_t  _AllocationLength,
uint8_t  _Control 
)
153  :
154  Opcode(_Opcode), LBAMSB(0), LUN(_LUN), LBAHB(0), LBALB(0),
155  AllocationLength(_AllocationLength), Control(_Control) {
156  }

Member Data Documentation

◆ Opcode

uint8_t SCSI_CDB6::Opcode

◆ LBAMSB

unsigned SCSI_CDB6::LBAMSB

◆ LUN

unsigned SCSI_CDB6::LUN

◆ LBAHB

uint8_t SCSI_CDB6::LBAHB

◆ LBALB

uint8_t SCSI_CDB6::LBALB

◆ AllocationLength

uint8_t SCSI_CDB6::AllocationLength

◆ Control

uint8_t SCSI_CDB6::Control
SCSI_CDB6::LBAHB
uint8_t LBAHB
Definition: UHS_SCSI.h:141
SCSI_CDB6::Control
uint8_t Control
Definition: UHS_SCSI.h:144
UHS_UINT8_BYTE1
#define UHS_UINT8_BYTE1(__usi__)
Definition: UHS_macros.h:349
SCSI_CDB6::LUN
unsigned LUN
Definition: UHS_SCSI.h:139
SCSI_CDB6::LBAMSB
unsigned LBAMSB
Definition: UHS_SCSI.h:138
SCSI_CDB6::LBALB
uint8_t LBALB
Definition: UHS_SCSI.h:142
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
SCSI_CDB6::AllocationLength
uint8_t AllocationLength
Definition: UHS_SCSI.h:143
SCSI_CDB6::Opcode
uint8_t Opcode
Definition: UHS_SCSI.h:136