Prusa MINI Firmware overview
USBH_MSC_BOT_Exported_Defines
Collaboration diagram for USBH_MSC_BOT_Exported_Defines:

Macros

#define BOT_CBW_SIGNATURE   0x43425355
 
#define BOT_CBW_TAG   0x20304050
 
#define BOT_CSW_SIGNATURE   0x53425355
 
#define BOT_CBW_LENGTH   31
 
#define BOT_CSW_LENGTH   13
 
#define BOT_SEND_CSW_DISABLE   0
 
#define BOT_SEND_CSW_ENABLE   1
 
#define BOT_DIR_IN   0
 
#define BOT_DIR_OUT   1
 
#define BOT_DIR_BOTH   2
 
#define BOT_PAGE_LENGTH   512
 
#define BOT_CBW_CB_LENGTH   16
 
#define USB_REQ_BOT_RESET   0xFF
 
#define USB_REQ_GET_MAX_LUN   0xFE
 
#define MAX_BULK_STALL_COUNT_LIMIT
 

Detailed Description

Macro Definition Documentation

◆ BOT_CBW_SIGNATURE

#define BOT_CBW_SIGNATURE   0x43425355

◆ BOT_CBW_TAG

#define BOT_CBW_TAG   0x20304050

◆ BOT_CSW_SIGNATURE

#define BOT_CSW_SIGNATURE   0x53425355

◆ BOT_CBW_LENGTH

#define BOT_CBW_LENGTH   31

◆ BOT_CSW_LENGTH

#define BOT_CSW_LENGTH   13

◆ BOT_SEND_CSW_DISABLE

#define BOT_SEND_CSW_DISABLE   0

◆ BOT_SEND_CSW_ENABLE

#define BOT_SEND_CSW_ENABLE   1

◆ BOT_DIR_IN

#define BOT_DIR_IN   0

◆ BOT_DIR_OUT

#define BOT_DIR_OUT   1

◆ BOT_DIR_BOTH

#define BOT_DIR_BOTH   2

◆ BOT_PAGE_LENGTH

#define BOT_PAGE_LENGTH   512

◆ BOT_CBW_CB_LENGTH

#define BOT_CBW_CB_LENGTH   16

◆ USB_REQ_BOT_RESET

#define USB_REQ_BOT_RESET   0xFF

◆ USB_REQ_GET_MAX_LUN

#define USB_REQ_GET_MAX_LUN   0xFE

◆ MAX_BULK_STALL_COUNT_LIMIT

#define MAX_BULK_STALL_COUNT_LIMIT
Value:
0x04 /* If STALL is seen on Bulk
Endpoint continuously, this means
that device and Host has phase error
Hence a Reset is needed */