Prusa MINI Firmware overview
|
Go to the documentation of this file.
29 #ifndef __USBH_MSC_BOT_H
30 #define __USBH_MSC_BOT_H
154 #define BOT_CBW_SIGNATURE 0x43425355
155 #define BOT_CBW_TAG 0x20304050
156 #define BOT_CSW_SIGNATURE 0x53425355
157 #define BOT_CBW_LENGTH 31
158 #define BOT_CSW_LENGTH 13
162 #define BOT_SEND_CSW_DISABLE 0
163 #define BOT_SEND_CSW_ENABLE 1
166 #define BOT_DIR_OUT 1
167 #define BOT_DIR_BOTH 2
169 #define BOT_PAGE_LENGTH 512
172 #define BOT_CBW_CB_LENGTH 16
175 #define USB_REQ_BOT_RESET 0xFF
176 #define USB_REQ_GET_MAX_LUN 0xFE
178 #define MAX_BULK_STALL_COUNT_LIMIT 0x04
BOT_StateTypeDef
Definition: usbh_msc_bot.h:87
uint32_t DataResidue
Definition: usbh_msc_bot.h:124
uint8_t LUN
Definition: usbh_msc_bot.h:110
Definition: usbh_msc_bot.h:63
BOT_StatusTypeDef
Definition: usbh_msc_bot.h:62
uint8_t CBLength
Definition: usbh_msc_bot.h:111
Header file for usbh_core.c.
uint8_t Reserved1
Definition: usbh_msc_bot.h:138
USBH_StatusTypeDef USBH_MSC_BOT_Init(USBH_HandleTypeDef *phost)
USBH_MSC_BOT_Init The function Initializes the BOT protocol.
Definition: usbh_msc_bot.c:151
USBH_StatusTypeDef USBH_MSC_BOT_Process(USBH_HandleTypeDef *phost, uint8_t lun)
USBH_MSC_BOT_Process The function handle the BOT protocol.
Definition: usbh_msc_bot.c:173
Definition: usbh_msc_bot.h:96
uint32_t Tag
Definition: usbh_msc_bot.h:107
Definition: usbh_msc_bot.h:91
Definition: usbh_msc_bot.h:95
uint8_t data[8]
Definition: masstorage.h:49
BOT_CBWTypeDef cbw
Definition: usbh_msc_bot.h:137
Definition: usbh_msc_bot.h:102
Definition: usbh_msc_bot.h:120
BOT_CMDStateTypeDef cmd_state
Definition: usbh_msc_bot.h:136
USBH_StatusTypeDef USBH_MSC_BOT_Error(USBH_HandleTypeDef *phost, uint8_t lun)
Definition: usbh_msc_bot.h:104
Definition: usbh_def.h:450
Definition: usbh_msc_bot.h:118
Definition: usbh_msc_bot.h:94
uint32_t Signature
Definition: usbh_msc_bot.h:122
Definition: usbh_msc_bot.h:64
Definition: usbh_msc_bot.h:92
BOT_StateTypeDef prev_state
Definition: usbh_msc_bot.h:135
Definition: usbh_msc_bot.h:81
Definition: usbh_msc_bot.h:83
Definition: usbh_msc_bot.h:72
uint8_t Status
Definition: usbh_msc_bot.h:125
uint8_t Flags
Definition: usbh_msc_bot.h:109
uint32_t Signature
Definition: usbh_msc_bot.h:106
USBH_StatusTypeDef USBH_MSC_BOT_REQ_Reset(USBH_HandleTypeDef *phost)
USBH_MSC_BOT_REQ_Reset The function the MSC BOT Reset request.
Definition: usbh_msc_bot.c:109
BOT_CSWTypeDef csw
Definition: usbh_msc_bot.h:139
Definition: usbh_msc_bot.h:71
BOT_CSWStatusTypeDef
Definition: usbh_msc_bot.h:78
const uint8_t[]
Definition: 404_html.c:3
Definition: usbh_msc_bot.h:97
USBH_StatusTypeDef
Definition: usbh_def.h:302
Definition: usbh_msc_bot.h:90
Header file for usbh_msc_bot.c.
BOT_StateTypeDef state
Definition: usbh_msc_bot.h:134
uint8_t * pbuf
Definition: usbh_msc_bot.h:141
Definition: usbh_msc_bot.h:131
Definition: usbh_msc_bot.h:66
Definition: usbh_msc_bot.h:98
USBH_StatusTypeDef USBH_MSC_BOT_REQ_GetMaxLUN(USBH_HandleTypeDef *phost, uint8_t *Maxlun)
USBH_MSC_BOT_REQ_GetMaxLUN The function the MSC BOT GetMaxLUN request.
Definition: usbh_msc_bot.c:130
BOT_CMDStateTypeDef
Definition: usbh_msc_bot.h:70
Definition: usbh_msc_bot.h:82
Definition: usbh_msc_bot.h:89
uint32_t DataTransferLength
Definition: usbh_msc_bot.h:108
Definition: usbh_msc_bot.h:88
uint32_t Tag
Definition: usbh_msc_bot.h:123
Definition: usbh_msc_bot.h:65
Definition: usbh_msc_bot.h:73
Definition: usbh_msc_bot.h:93