Prusa MINI Firmware overview
CDB10 Struct Reference

#include <masstorage.h>

Collaboration diagram for CDB10:

Public Member Functions

 CDB10 (uint8_t _Opcode, uint8_t _LUN)
 
 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

◆ CDB10() [1/2]

CDB10::CDB10 ( uint8_t  _Opcode,
uint8_t  _LUN 
)
248  :
249  Opcode(_Opcode), Service_Action(0), LUN(_LUN),
251  Misc2(0), ALC_MB(0), ALC_LB(0), Control(0) {
252  }

◆ CDB10() [2/2]

CDB10::CDB10 ( uint8_t  _Opcode,
uint8_t  _LUN,
uint16_t  xflen,
uint32_t  _LBA 
)
254  :
255  Opcode(_Opcode), Service_Action(0), LUN(_LUN),
256  LBA_L_M_MB(BGRAB3(_LBA)), LBA_L_M_LB(BGRAB2(_LBA)), LBA_L_L_MB(BGRAB1(_LBA)), LBA_L_L_LB(BGRAB0(_LBA)),
257  Misc2(0), ALC_MB(BGRAB1(xflen)), ALC_LB(BGRAB0(xflen)), Control(0) {
258  }

Member Data Documentation

◆ Opcode

uint8_t CDB10::Opcode

◆ Service_Action

unsigned CDB10::Service_Action

◆ LUN

unsigned CDB10::LUN

◆ LBA_L_M_MB

uint8_t CDB10::LBA_L_M_MB

◆ LBA_L_M_LB

uint8_t CDB10::LBA_L_M_LB

◆ LBA_L_L_MB

uint8_t CDB10::LBA_L_L_MB

◆ LBA_L_L_LB

uint8_t CDB10::LBA_L_L_LB

◆ Misc2

uint8_t CDB10::Misc2

◆ ALC_MB

uint8_t CDB10::ALC_MB

◆ ALC_LB

uint8_t CDB10::ALC_LB

◆ Control

uint8_t CDB10::Control
CDB10::LBA_L_L_MB
uint8_t LBA_L_L_MB
Definition: masstorage.h:237
CDB10::LUN
unsigned LUN
Definition: masstorage.h:233
CDB10::ALC_LB
uint8_t ALC_LB
Definition: masstorage.h:243
BGRAB0
#define BGRAB0(__usi__)
Definition: macros.h:57
BGRAB3
#define BGRAB3(__usi__)
Definition: macros.h:60
CDB10::Control
uint8_t Control
Definition: masstorage.h:245
CDB10::Misc2
uint8_t Misc2
Definition: masstorage.h:240
CDB10::Opcode
uint8_t Opcode
Definition: masstorage.h:230
CDB10::ALC_MB
uint8_t ALC_MB
Definition: masstorage.h:242
CDB10::LBA_L_M_LB
uint8_t LBA_L_M_LB
Definition: masstorage.h:236
CDB10::Service_Action
unsigned Service_Action
Definition: masstorage.h:232
BGRAB2
#define BGRAB2(__usi__)
Definition: macros.h:59
CDB10::LBA_L_L_LB
uint8_t LBA_L_L_LB
Definition: masstorage.h:238
CDB10::LBA_L_M_MB
uint8_t LBA_L_M_MB
Definition: masstorage.h:235
BGRAB1
#define BGRAB1(__usi__)
Definition: macros.h:58